
sdfField
field
sdfField
RayTK
v0.36
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
vec4
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
Sdf
- Coordinate Types: