Log inGet started
Package

volume.renderFeature

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

volume (render feature)

Runs the passes of every volume standing in the scene (Volume:draw, which the Volume and VolumeSequence components call each frame; a smoke plume or a voxel volume in a world is one of those components on an entity): for each view the frame draws, a volume_draw march against that view's camera and depth into a screen-sized target, then volume_draw_composite blending it over the frame, draw after draw. Both passes of a draw state the centre of its box as their sortPoint, so each view runs the draws farthest from its own camera first and the volume nearest that view ends in front. Every draw marches into the same target, each one composited before the next marches. It runs in the medium stage, after the cloud layer's surfaces and ahead of the aerial perspective and the height fog.

The volume module brings it up with the first draw and takes it down with the last Volume.withdraw, so a scene with no volume standing runs none of its passes. Volume.draws() lists what stands.