MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / lightSystem

Function lightSystem

examples/scene-graph/room.ts:214–221  ·  view source on GitHub ↗
(dt: number)

Source from the content-addressed store, hash-verified

212
213// LightSystem (priority 5) — sets up lighting each frame
214function lightSystem(dt: number): void {
215 // Main directional light (sun-like)
216 addDirectionalLight(0.5, 1.0, 0.3, 1.0, 0.95, 0.9, 0.7);
217 // Fill light
218 addDirectionalLight(-0.3, 0.5, -0.7, 0.8, 0.85, 0.95, 0.3);
219 // Rim light
220 addDirectionalLight(0.0, -0.2, 1.0, 0.9, 0.9, 1.0, 0.15);
221}
222
223// ============================================================
224// Scene setup

Callers

nothing calls this directly

Calls 1

addDirectionalLightFunction · 0.90

Tested by

no test coverage detected