cutSphereSdf
sdf
cutSphereSdf
RayTK
v0.42
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 |
| |||
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
- Coordinate Types:
-
Thickness Field
: (optional)- Coordinate Types:
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
- Supports Variables From Inputs:
radiusField
- Coordinate Types:
-
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
- Coordinate Types:
-
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
- Coordinate Types: