Documentation
    Preparing search index...

    Interface PunctualLightSourceBase

    What the collector reads from any of §68's positional lights — the half @fourjs/scene's PunctualLight base class satisfies (R-17, 2026-08-09).

    Structural, exactly like DirectionalLightSource and for exactly the same reason: @fourjs/render-webgl may depend on core, math, and render only, so its unit tests build lights as typed doubles.

    interface PunctualLightSourceBase {
        color: readonly [number, number, number];
        intensity: number;
        isPunctualLight: true;
        range: number;
        getWorldPosition(out: Vector3): Vector3;
    }

    Hierarchy (View Summary)

    Index
    color: readonly [number, number, number]

    Straight RGB in §60a's linear-light working space (§68).

    intensity: number

    Scalar multiplier on the colour: the irradiance, over π, at unit distance (§68; see @fourjs/scene's light.ts for the convention).

    isPunctualLight: true

    The brand collectSceneLights recognises. A literal true, not a method, so the check is one property load per node per frame.

    range: number

    Distance at which the contribution reaches zero, or 0 for unbounded — the KHR_lights_punctual window @fourjs/scene's PunctualLight documents.

    • Writes this light's world-space position into out and returns it.

      Parameters

      Returns Vector3