Painted Metropolis
- ..
- .metadata33 B
- README.md1.2 KB
- module.wgsl17.1 KB
README.md
window
A window pane with a room behind it, lit by the module painterly.surface.light. The rooms are FakeInteriors' (systems.FakeInteriors): a furnished room baked into a volume, and this module handles the march through the volume, the walk to the lamp and the daylight, and the shading from the filtered density. It publishes an ink code (painterly.surface.ink), so the frame draws the pane's edge in its reveal.
By day, a pane is glass first: it throws back the sky (upper floors, seen from the street) or the street across (panes at eye level), each pane its own piece, and more of it where the sun lies on it and as it gets farther off. Near, and in the shade, the room shows through: daylit, in a few flat tones. At dusk, lamps come on window by window, by each window's own seed: shops first. At night, the lit rooms carry the street: warm, a little different from window to window (amber, cream, now and then a cold blue screen), brighter than the finish's bloom threshold so the light spills round the opening; the unlit ones are dark glass with the night sky on them.
The pane is a unit quad (uv 0..1) scaled to the opening. The including shader declares the shared block, tShade and surface/window_properties.yaml.