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

quadSdf2d

SDF for a 2D quad with arbitrary corners.

Based on Sierpinski Fractal Cubes by Shane.

Parameters

  • Point 1:
  • Point 2:
  • Point 3:
  • Point 4:

Inputs

  • Point 1-2 Coords Field: (optional)
    • Coordinate Types: vec2
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: vec4
  • Point 3-4 Coords Field: (optional)
    • Coordinate Types: vec2
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: vec4