Builtin Library
- ..
- README.md828 B
- bindings.yaml618 B
- shader.wgsl2.8 KB
README.md
volume_draw
The march of a volume standing in the scene, run as a render-feature pass for
every view the frame draws. Each ray leaves the drawn camera (@frame.camera),
is clipped against the volume's box and ends at the scene's depth
(@scene.depth), so opaque geometry in front of the volume hides it and
geometry inside it cuts the march where it stands. The march itself is the
shared volume_march module's, the one volume_raymarch runs too.
Bindings (see bindings.yaml): volume and occupancy (texture3d), volume_smp
(sampler), out_tex (storage2d rgba16f, sized to the drawn view), U (one
VolumeUniforms), frame_cam (@frame.camera) and scene_depth
(@scene.depth).
The volume module enqueues it, with the composite that lays its output over
the frame, for every draw Volume:draw stands up.