Documentation
    Preparing search index...

    Class HemisphereLightUniforms

    One shaded pipeline's hemisphere uniforms: the four locations, and the CPU mirror that keeps a scene without a hemisphere emitting no GL call at all.

    Shared by LitProgram, gl-standard.ts's StandardProgram, and the skinned lit program for the same reason PunctualLightUniforms is shared: the skip rule must not drift.

    #enabled starts at false, which is what GL initializes a bool uniform to. A frame whose SceneLights.hasHemisphereLight is false while the mirror is false therefore uploads nothing.

    Index
    • Uploads the frame's hemisphere, or nothing at all — see the class header. Call once per viewport, beside the ambient upload.

      Parameters

      Returns void

    • Looks the four locations up on a linked program, throwing the §89 SHADER_COMPILATION_FAILED requireUniform throws if a driver optimised one away.

      Parameters

      Returns HemisphereLightUniforms