torusSdf

torusSdf

Keywords:
  • donut
  • ring
  • torus

SDF for a torus.

Parameters

  • Axis:
    • X:
    • Y:
    • Z:
  • Radius:
  • Thickness:
  • Translate:
  • Enable Caps:
  • Angle Width:
  • Angle Offset:
  • UV Mode:
    • None:
    • Torus:

Inputs

  • Angle Width Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float
  • Angle Offset Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float
  • Radius Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float
  • Thickness Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float

Variables

  • angle:
  • normangle: