
rhombusSdf2d
sdf2d
rhombusSdf2d
RayTK
v0.36
SDF for a 2D rhombus (diamond), with its corners aligned to the axes.
Parameters
-
Scale
: The size of the rhombus along the X and Y axes.
Inputs
-
Scale Field
: (optional)- Coordinate Types:
vec2
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
vec4
- Coordinate Types: