starSdf2d
sdf2d
starSdf2d
RayTK
v0.42
SDF for a 2D star shape.
Parameters
Name | Description | Regular Handling | Read-Only Handling |
---|---|---|---|
Radius | The distance from the center to each outer point on the star. | Runtime | Baked |
Points | The number of points for the star. When this is a non-integer value there will be one point that is partially cut off at the bottom. | Runtime | Baked |
Tightness | How much the inner points of the start are pulled towards the center. At zero this will produce a polygon with two sides for each point. At one it will produce thin lines radiating from the center. | Runtime | Baked |
UV Mode | Semi-Baked | Semi-Baked | |
|
Inputs
-
Radius Field
: (optional)- Coordinate Types:
vec2
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
- Supports Variables:
normangle
- Supports Variables From Inputs:
pointsField
- Coordinate Types:
-
Tightness Field
: (optional)- Coordinate Types:
vec2
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
- Supports Variables:
normangle
- Supports Variables From Inputs:
radiusField
- Coordinate Types:
-
Points Field
: (optional)- Coordinate Types:
vec2
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
- Supports Variables:
normangle
- Supports Variables From Inputs:
radiusField
tightnessField
- Coordinate Types:
Variables
-
Normalized Angle (0..1)
: