polygonSdf2d
sdf2d
polygonSdf2d
RayTK
v0.42
SDF for several types of 2D polygons.
Parameters
| Name | Description | Regular Handling | Read-Only Handling |
|---|---|---|---|
Shape | Runtime | Semi-Baked | |
| |||
Radius | The distance from the center to each edge. | Runtime | Baked |
Sides | Runtime | Baked | |
Inputs
-
Radius Field: (optional)- Coordinate Types:
vec2 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
float
- Coordinate Types:
-
Sides Field: (optional)- Coordinate Types:
vec2 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
float - Supports Variables From Inputs:
radiusField
- Coordinate Types: