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

sdfField

Value field based on an SDF shape.

This can be used to apply effects only within certain shaped areas of space.

Parameters

  • Field Type:
    • Distance:
    • Inside:
    • Outside:
    • Surface:
    • Surface Inside:
    • Surface Outside:
    • Surface Primary UV:
    • Surface Secondary UV:
  • Offset: Offsets the surface of the shape. Positive values expand the shape and negative values contract it. This is equivalent to the `round` operator.
  • Thickness: For surface-based fields, this is the thickness of the area where the value is 1.
  • Blending: The distance over which the 1 area transitions to the 0 area.

Inputs

  • SDF: (required)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float Sdf