@pmndrs/reflections
    Preparing search index...

    Interface FrameConventions

    interface FrameConventions {
        depthInverted: boolean;
        depthLinear: boolean;
        motionVectorScale: readonly [number, number];
        normalUnpackAdd: number;
        normalUnpackMul: number;
        roughnessIsPerceptual: boolean;
        roughnessUnpack?: { add: number; mul: number };
        sceneColorSpecular: "none" | "direct";
    }
    Index
    depthInverted: boolean

    Reverse-Z: 1 at the near plane, 0 at far.

    depthLinear: boolean

    depth holds linear view distance (r32float) instead of hardware depth.

    motionVectorScale: readonly [number, number]

    Maps the stored motion to a uv-space offset: uvPrevious = uv - motion.xy * motionVectorScale (uv: x right, y down, [0, 1]). A uv-space target uses [1, 1]; three's NDC velocity (current - previous, y up) uses [0.5, -0.5].

    normalUnpackAdd: number
    normalUnpackMul: number

    normal = texel.xyz * normalUnpackMul + normalUnpackAdd (FFX's normalUnPackMul/Add). Raw float: 1, 0. Unorm-packed: 2, -1.

    roughnessIsPerceptual: boolean

    Roughness is perceptual (artist) roughness; alpha = roughness². three: true.

    roughnessUnpack?: { add: number; mul: number }

    roughness = texel[channel] * mul + add, applied before roughnessIsPerceptual squares it (like the normal unpack). Default identity { mul: 1, add: 0 }. A glossiness channel (Babylon's microSurface = 1 - perceptual roughness) is { mul: -1, add: 1 }.

    sceneColorSpecular: "none" | "direct"

    What sceneColor holds:

    • 'none': emissive + direct diffuse + indirect diffuse. No specular lobe at all.
    • 'direct': as 'none' plus direct (punctual-light) specular; only indirect specular is left out.