crossSdf2d

crossSdf2d

2D cross shape SDF, with 4 arms and option rounding of the intersections.

Parameters

  • Outer Size: The length of the arms.
  • Inner Size: Thickness of the arms.
  • Roundness: How much to round out the intersection corners.

Inputs

  • Outer Size Field: (optional)
    • Coordinate Types: vec2
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float
  • Inner Size Field: (optional)
    • Coordinate Types: vec2
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float
  • Roundness Field: (optional)
    • Coordinate Types: vec2
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float