rhombusSdf2d

rhombusSdf2d

sdf2d
rhombusSdf2d
RayTK
v0.42

SDF for a 2D rhombus (diamond), with its corners aligned to the axes.

Parameters

Name Description Regular Handling Read-Only Handling
Scale

The size of the rhombus along the X and Y axes.

Runtime Baked

Inputs

  • Scale Field: (optional)
    • Coordinate Types: vec2
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4