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:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
Sdf - Supports Variables:
anglenormangle - Supports Variables From Inputs:
cross_section_definition_inrotate_field_inscale_field_intranslate_field_in
- Coordinate Types:
-
Rotate Field: (optional) Optional field that controls rotation of the cross-section as it goes around the axis.- Coordinate Types:
floatvec3 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
float - Supports Variables:
anglenormangle - Supports Variables From Inputs:
radialOffsetFieldaxisOffsetField
- Coordinate Types:
-
Scale Field: (optional) Optional field that controls scale of the cross-section as it goes around the axis.- Coordinate Types:
floatvec3 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
float - Supports Variables:
anglenormangle - Supports Variables From Inputs:
rotateFieldradialOffsetFieldaxisOffsetField
- Coordinate Types:
-
Translate Field: (optional) Optional field that controls translate of the cross-section as it goes around the axis.- Coordinate Types:
floatvec3 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
vec4 - Supports Variables:
anglenormangle - Supports Variables From Inputs:
scaleFieldrotateFieldradialOffsetFieldaxisOffsetField
- Coordinate Types:
-
Radial Offset Field: (optional)- Coordinate Types:
vec3 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
float - Supports Variables:
anglenormangle
- Coordinate Types:
-
Axis Offset Field: (optional)- Coordinate Types:
vec3 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
float - Supports Variables:
anglenormangle - Supports Variables From Inputs:
radialOffsetField
- Coordinate Types:
Variables
-
Angle: -
Normalized Angle: