torusSdf

torusSdf

Keywords:
  • donut
  • ring
  • torus

SDF for a torus.

Parameters

Name Description Regular Handling Read-Only Handling
Axis Semi-Baked Semi-Baked
  • X:
  • Y:
  • Z:
Radius Runtime Baked
Thickness Runtime Baked
Translate Runtime Baked
Enable Caps Semi-Baked Semi-Baked
Angle Width Runtime Baked
Angle Offset Runtime Baked
UV Mode Semi-Baked Semi-Baked
  • None:
  • Torus:

Inputs

  • Angle Width Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
  • Angle Offset Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables From Inputs: angleWidthField
  • Radius Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables: angle normangle
    • Supports Variables From Inputs: angleWidthField angleOffsetField
  • Thickness Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables: angle normangle
    • Supports Variables From Inputs: angleWidthField angleOffsetField radiusField

Variables

  • Angle (0-360):
  • Normalized Angle (0-1):