Skip to main content Link Menu Expand (external link) Document Search Copy Copied
rhombusSdf2d

rhombusSdf2d

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