lygia
/sdf
/cubeSDF
)generate the SDF of a cube
Dependencies:
Use:
<float> cubeSDF( in <vec3> pos, in <float> size )
#ifndef FNC_CUBESDF
#define FNC_CUBESDF
float cubeSDF(vec3 p, float s) { return boxSDF(p, vec3(s)); }
#endif
Dependencies:
Use:
<float> cubeSDF( in <float3> pos, in <float> size )
#ifndef FNC_CUBESDF
#define FNC_CUBESDF
float cubeSDF(float3 p, float s) { return boxSDF(p, float3(s, s, s)); }
#endif
Dependencies:
Use:
<float> cubeSDF( <float3> pos, <float> size )
#ifndef FNC_CUBESDF
#define FNC_CUBESDF
float cubeSDF(float3 p, float s) { return boxSDF(p, float3(s)); }
#endif
LYGIA is dual-licensed under the Prosperity License and the Patron License for sponsors and contributors.
Sponsors and contributors are automatically added to the Patron License and they can ignore the any non-commercial rule of the Prosperity Licensed software (please take a look to the exception).
It's also possible to get a permanent comercial license hook to a single and specific version of LYGIA.
Sign up for the news letter bellow, joing the LYGIA's channel on Discord or follow the Github repository