discSdf

discSdf

sdf
discSdf
RayTK
v0.42

A flat disc facing the Y axis.

Because the disc is infinitely thin, it will only appear as a line when viewed from the side.

Parameters

Name Description Regular Handling Read-Only Handling
Translate

Shifts the center of the disc.

Runtime Baked
Radius

The radius of the disc.

Runtime Baked
Axis Runtime Semi-Baked
  • X:
  • Y:
  • Z:
Thickness Runtime Baked

Inputs

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

Variables

  • Angle Around Axis (Deg):
  • Normalized Angle (0..1):
  • Normalized Distance From Axis (0..1):