revolve
convert
revolve
RayTK
v0.42
Creates a 3D SDF by revolving a 2D cross-section SDF around an axis.
Parameters
Name | Description | Regular Handling | Read-Only Handling |
---|---|---|---|
Axis | Semi-Baked | Semi-Baked | |
| |||
Radial Offset | Moves the cross-section shape closer or further from the axis. | Runtime | Baked |
Axis Offset | Moves the resulting shape along the axis. | Runtime | Baked |
Iteration Type | Semi-Baked | Semi-Baked | |
|
Inputs
-
Cross-Section SDF
: (required) The 2D shape that is revolved around the axis.- Coordinate Types:
vec2
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
Sdf
- Supports Variables:
angle
normangle
- Supports Variables From Inputs:
cross_section_definition_in
rotate_field_in
scale_field_in
translate_field_in
- Coordinate Types:
-
Rotate Field
: (optional) Optional field that controls rotation of the cross-section as it goes around the axis.- Coordinate Types:
float
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
- Supports Variables:
angle
normangle
- Supports Variables From Inputs:
radialOffsetField
axisOffsetField
- Coordinate Types:
-
Scale Field
: (optional) Optional field that controls scale of the cross-section as it goes around the axis.- Coordinate Types:
float
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
- Supports Variables:
angle
normangle
- Supports Variables From Inputs:
rotateField
radialOffsetField
axisOffsetField
- Coordinate Types:
-
Translate Field
: (optional) Optional field that controls translate of the cross-section as it goes around the axis.- Coordinate Types:
float
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
vec4
- Supports Variables:
angle
normangle
- Supports Variables From Inputs:
scaleField
rotateField
radialOffsetField
axisOffsetField
- Coordinate Types:
-
Radial Offset Field
: (optional)- Coordinate Types:
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
- Supports Variables:
angle
normangle
- Coordinate Types:
-
Axis Offset Field
: (optional)- Coordinate Types:
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
- Supports Variables:
angle
normangle
- Supports Variables From Inputs:
radialOffsetField
- Coordinate Types:
Variables
-
Angle
: -
Normalized Angle
: