medium_physical.shaderModule
- README.md914 B
- module.wgsl789 B
This package holds more than this page lists. See all of its files in its world.
README.md
medium_physical
The light response every medium takes unless it names another: the cloud
layer (VolumetricSky), a Volume draw (Volume, VolumeSequence, Smoke,
Fire) and the participating media (ParticipatingMedium). It keeps the
density the medium holds (medium_shape), the light the engine works out for
each sample (medium_light answers s.physical) and the engine's blackbody
flame (medium_flame answers s.flame).
Every marcher includes it by this name; a medium that names a response of its
own (lightResponse) is drawn by a program in which the response's module
stands in its place. medium_light states the functions a response defines
and what each is handed.
It states MEDIUM_AUTHORED false and medium_light states it true, so a
marcher drawing a medium with the engine's own light runs none of a
response's work: it draws at the cost it draws at with no response named.