
bend
filter
bend
RayTK
v0.36
Bends space, along a main axis, towards a second axis.
For example, bends sideways (towards X) depending on the vertical position (along Y).
Parameters
-
Enable
: -
Direction
: Chooses the axis to bend along and the axis to bend towards.-
Along X Toward Y
: -
Along X Toward Z
: -
Along Y Toward X
: -
Along Y Toward Z
: -
Along Z Toward X
: -
Along Z Toward Y
:
-
-
Amount
: Amount of bending. -
Shift
: Shifts the axis to bend along and the axis to bend towards.
Inputs
-
Input
: (optional)- Coordinate Types:
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
vec4
Sdf
Ray
Light
Particle
- Coordinate Types:
-
Bend Field
: (optional) Value field that determines how much to bend. If this accepts 1D coords, it is passed the position along the bend axis. For 2D coords, both the bend axis and the bend direction are passed. For 3D coords, the relative XYZ position is passed.- Coordinate Types:
float
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
Sdf
- Coordinate Types:
-
Shift Field
: (optional)- Coordinate Types:
float
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
Sdf
- Coordinate Types:
Variables
-
axispos
: -
bendpos
:
Images







