pieSdf2d

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
  • Slice:
  • Ring:
  • Infinite:
Inner Radius

Inputs

  • Angle Field: (optional)
    • Coordinate Types: vec2
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
  • Radius Field: (optional) Radius field, either a float, or a vector with outer and inner radius
    • Coordinate Types: vec2
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
    • Supports Variables: normangle
    • Supports Variables From Inputs: angleField

Variables

  • Normalized Angle (0..1):