springSdf
sdf
springSdf
RayTK
v0.42
A coiled spring shape.
This is similar to helixSdf, but with the fixed height rather than infinite.
Parameters
| Name | Description | Regular Handling | Read-Only Handling |
|---|---|---|---|
Axis | Runtime | Semi-Baked | |
| |||
Reverse | Runtime | Semi-Baked | |
Radius | The radius of the spring, i.e. the distance of the spring from the center axis. | Runtime | Baked |
Height | Height or length of the spring. | Runtime | Baked |
Coils | The number of rotations in the spring. Larger values mean a tighter coil. | Runtime | Baked |
Thickness | Thickness of the spring, used when no cross-section SDF is attached. | Runtime | Baked |
Inputs
-
Height Field: (optional)- Coordinate Types:
vec3 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
float - Supports Variables:
axisoffsetanglenormangle
- Coordinate Types:
-
Radius Field: (optional)- Coordinate Types:
vec3 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
float - Supports Variables:
axisoffsetnormoffsetanglenormangle - Supports Variables From Inputs:
heightField
- Coordinate Types:
-
Coils Field: (optional)- Coordinate Types:
vec3 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
float - Supports Variables:
axisoffsetnormoffsetanglenormangle - Supports Variables From Inputs:
heightFieldradiusField
- Coordinate Types:
-
Thickness Field: (optional)- Coordinate Types:
vec3 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
float - Supports Variables:
axisoffsetnormoffsetanglenormangle - Supports Variables From Inputs:
heightFieldradiusFieldcoilsField
- Coordinate Types:
-
Cross Section Shape: (optional) Optional 2D SDF used as the cross-section for the shape.- Coordinate Types:
vec2 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
Sdf - Supports Variables:
axisoffsetnormoffsetanglenormangle - Supports Variables From Inputs:
heightFieldradiusFieldcoilsField
- Coordinate Types:
Variables
-
Offset Along Axis: -
Normalized Offset (0..1): -
Angle Around Axis (Deg): -
Normalized Angle (0..1):