/**
 * ALGA ARENA — Lighting System
 * Orchestrates studio key, fill, and cyan rim lights
 */

'use strict';

window.CinematicLighting = (() => {
    let ambient, key, rim, fill;

    const init = (scene) => {
        ambient = new THREE.AmbientLight(0x050b1a, 0.85);
        scene.add(ambient);

        key = new THREE.DirectionalLight(0xffffff, 2.5);
        key.position.set(6, 8, 6);
        scene.add(key);

        rim = new THREE.DirectionalLight(0x00d4ff, 4.0);
        rim.position.set(-6, 0, -6);
        scene.add(rim);

        fill = new THREE.DirectionalLight(0x7c5cfc, 1.2);
        fill.position.set(0, -6, 6);
        scene.add(fill);
    };

    const getRimLight = () => rim;

    return { init, getRimLight };
})();
