pieSdf2d

pieSdf2d

sdf2d
pieSdf2d
RayTK
v0.36

SDF for a 2D pie-slice shape.

Parameters

  • Radius: The distance from the center to the outer edge.
  • Angle: The width of the slice in degrees.
  • Rotate: Rotation for the slice in degrees.
  • Shape:
    • Slice:
    • Ring:
    • Infinite:
  • Inner Radius:

Inputs

  • Angle Field: (optional)
    • Coordinate Types: vec2
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • 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
    • Return Types: float vec4

Variables

  • normangle: