fieldVolume

beta
raytkVolumes
volume
fieldVolume
RayTK
v0.42

Creates a Volume based on a density field, and an optional color field.

Volumes must have a density, so the density input is required, but color is optional.

Parameters

Name Description Regular Handling Read-Only Handling
Enable Color

Whether to assign a color, using either the parameter or the color field input.

Runtime Baked
Color Runtime Baked

Inputs

  • Density Field: (required) Float field that provides the density for the volume.
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
  • Color Field: (optional) Vector field that provides the color for the volume.
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4