Log inGet started
Package

underwater.renderFeature

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

README.md

underwater (render feature)

Tidewater's per-frame driver for the view from inside any water. It enqueues no GPU pass itself; every rendered frame it calls Underwater.step(), which reads Physics.water at the camera and, when the camera is below (or within the waterline band of) any Tidewater body, enables and feeds the underwaterPost post-process effect: depth fog in the body's colour, caustics on submerged surfaces fading with depth, light shafts, a wobble and the waterline split. It also flips the body's surface materials to their underside (underwater_mode).

Created on demand by modules/underwater the first time a kind registers a body.