bend
filter
bend
RayTK
v0.42
Bends space, along a main axis, towards a second axis.
For example, bends sideways (towards X) depending on the vertical position (along Y).
Parameters
Name | Description | Regular Handling | Read-Only Handling |
---|---|---|---|
Enable | |||
Direction | Chooses the axis to bend along and the axis to bend towards. | Semi-Baked | Semi-Baked |
| |||
Amount | Amount of bending. | Runtime | Baked |
Shift | Shifts the axis to bend along and the axis to bend towards. | Runtime | Baked |
Side | Semi-Baked | Semi-Baked | |
|
Inputs
-
Input
: (optional)- Coordinate Types:
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
vec4
Sdf
Volume
Ray
Light
Particle
- Supports Variables:
axispos
bendpos
- Supports Variables From Inputs:
definition_in_2
- 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
VertexContext
PixelContext
- Return Types:
float
Sdf
- Supports Variables:
axispos
bendpos
- Coordinate Types:
-
Shift Field
: (optional)- Coordinate Types:
float
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
Sdf
- Supports Variables:
axispos
bendpos
- Supports Variables From Inputs:
bendField
- Coordinate Types:
Variables
-
Position Along Axis
: -
Position On Bend Axis
: