Skip to main content Link Menu Expand (external link) Document Search Copy Copied
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

  • 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
  • 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

Variables

  • angle:
  • normangle: