sdfField

sdfField

field
sdfField
RayTK
v0.42

Value field based on an SDF shape.

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

Parameters

Name Description Regular Handling Read-Only Handling
Field Type Baked Baked
  • 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.

Runtime Baked
Thickness

For surface-based fields, this is the thickness of the area where the value is 1.

Runtime Baked
Blending

The distance over which the 1 area transitions to the 0 area.

Runtime Baked

Inputs

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