sdfVolume
beta
raytkVolumes volume
sdfVolume
RayTK
v0.42
Creates a Volume with density based on an SDF.
Parameters
Name | Description | Regular Handling | Read-Only Handling |
---|---|---|---|
Use SDF Density | Use the density attribute of the SDF if it has one. When enabled, the area of the SDF is ignored. | Runtime | Baked |
Density | Density value used to fill the SDF area. | Runtime | Baked |
Fill Mode | How the density value (or field input) should fill the area of the SDF. | Runtime | Baked |
| |||
Offset | Surface offset (equivalent to inserting a round operator). | Runtime | Baked |
Thickness | Thickness of the hollow shell. | Runtime | Baked |
Blending | Amount of blending between the filled and non-filled areas. | Runtime | Baked |
Color Source | Where to get the color to assign to the volume. | Runtime | Baked |
| |||
Color | Constant color for the volume. | ||
Apply Density To Color | Whether to multiply the color by the density, which causes it to be darker in areas with lower density. | Runtime | Semi-Baked |
Inputs
-
SDF
: (required)- Coordinate Types:
float
vec2
vec3
vec4
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
Sdf
- Coordinate Types:
-
Density Field
: (optional)- Coordinate Types:
float
vec2
vec3
vec4
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
- Supports Variables:
sdf
- Supports Variables From Inputs:
sdf
- Coordinate Types:
Variables
-
SDF
: