generalizedPolyhedronSdf
Keywords:
- dodecahedron
- icosahedron
- octahedron
- polyhedron
sdf
generalizedPolyhedronSdf
RayTK
v0.42
Generates one of several different types of polyhedra.
Based on “Generalized Distance Functions” by Akleman and Chen.
Parameters
| Name | Description | Regular Handling | Read-Only Handling |
|---|---|---|---|
Shape | Chooses between several different predefined types of polyhedra, or | Semi-Baked | Semi-Baked |
| |||
Begin | Only used when the | Runtime | Baked |
End | Used along with | Runtime | Baked |
Translate | Shifts the center of the shape. | Runtime | Baked |
Radius | The size of the shape. | Runtime | Baked |
Use Exponent | Enables the use of the | Semi-Baked | Semi-Baked |
Exponent | Controls the sharpness or smoothness of the edges. | Runtime | Baked |
Inputs
-
Radius Field: (optional)- Coordinate Types:
vec3 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
float
- Coordinate Types:
-
Begin End Field: (optional)- Coordinate Types:
vec3 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
vec4 - Supports Variables From Inputs:
radiusField
- Coordinate Types:
-
Exponent Field: (optional)- Coordinate Types:
vec3 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
float - Supports Variables From Inputs:
radiusFieldbeginEndField
- Coordinate Types: