cutSphereSdf

cutSphereSdf

Sphere with part of it cut off, either solid or hollow.

Based on CutSphere - distance 3D by iq.

Parameters

Name Description Regular Handling Read-Only Handling
Shape

Whether the sphere should be solid or a hollow shell.

Runtime Semi-Baked
  • Solid:
  • Hollow:
Radius

Radius of the sphere.

Runtime Baked
Cut Offset

How far across the sphere the cut plane should be.

Runtime Baked
Thickness

Thickness of the shape if using hollow mode.

Rotate Runtime Baked

Inputs

  • Radius Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
  • Thickness Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables From Inputs: radiusField
  • Offset Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables From Inputs: radiusField thicknessField
  • Rotate Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: vec4
    • Supports Variables From Inputs: radiusField thicknessField offsetField