mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 22:04:56 +00:00
- Extract spotlight logic from render.prepare into dedicated spotlight.update step - render.prepare now only handles camera, shadow, and lighting uniforms - spotlight.update runs per-frame after render.prepare, reads spotlight.state from context - Aim distance configurable via JSON (aim_distance parameter) - Camera-local offset for spotlight origin (matches viewmodel position) - Direction computed from torch position toward camera aim point (natural beam alignment) - Add distance fog to whole room (exponential, dark blue-grey) - Volumetric beam: 48 steps, UE4 interleaved gradient noise, cubic cone falloff - Fog density increased for visible beam effect Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>