pieSdf2d
Keywords:
- arc
- ring
- slice
sdf2d
pieSdf2d
RayTK
v0.42
SDF for a 2D pie-slice shape.
Parameters
| Name | Description | Regular Handling | Read-Only Handling |
|---|---|---|---|
Radius | The distance from the center to the outer edge. | ||
Angle | The width of the slice in degrees. | Runtime | Baked |
Rotate | Rotation for the slice in degrees. | Runtime | Baked |
Shape | Runtime | Semi-Baked | |
| |||
Inner Radius | |||
Inputs
-
Angle Field: (optional)- Coordinate Types:
vec2 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
float
- Coordinate Types:
-
Radius Field: (optional) Radius field, either a float, or a vector with outer and inner radius- Coordinate Types:
vec2 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
floatvec4 - Supports Variables:
normangle - Supports Variables From Inputs:
angleField
- Coordinate Types:
Variables
-
Normalized Angle (0..1):