Log inGet started
World

The House Wears a Face

Branchmain
Branchesmain
Commit8e7f3baa4a

README.md

lightshaft

A shaft of lit air for THE HOUSE WEARS A FACE. The mesh a material of this shader is worn by is a bounding proxy only: the fragment raymarches a tapered cone between the camera and the surface the frame already drew, so the shaft thickens through its middle, thins to nothing at its rim, stops at the floor it lands on, and carries a drifting dust field inside it.

Draw it additive, front-culled, with no depth write and depth_compare: always — the scene-depth clamp inside the shader is what makes it respect geometry, so the pipeline test would only cut the proxy's own far face away.

flow is the film clock (seconds × drift speed) and is pushed every frame by the air slice's AirClock, which is what keeps two takes of the same second drawing the same dust. Per-instance lane 0 adds to it: x offsets the clock, y scales the shaft's brightness, so one material serves several shafts that brighten independently.