Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Single-pass post-processing material. See module header for the shader operation order and the bloom/FXAA pre/post-pass contract.

    Hierarchy

    • ShaderMaterial
      • MegaShaderMaterial
    Index
    • Read back the current tone-mapping mode as a THREE constant. Note: THREE.NoToneMapping is aliased to LinearToneMapping on set (to clamp to [0,1] matching old behavior), so this getter returns LinearToneMapping for either input.

      Returns ToneMapping

    • Parameters

      • p: {
            distortion?: Vector2;
            principalPoint?: Vector2;
            focalLength?: Vector2;
            skew?: number;
            dispersion?: number;
        }

      Returns void

    • Parameters

      • p: { readoutSigma?: number; photonGain?: number; fpnSigma?: number }

      Returns void

    • Set the bloom intensity. Disables the bloom branch if texture is null.

      Parameters

      • intensity: number
      • texture: Texture<unknown, TextureEventMap> | null

      Returns void

    • Bypass everything past the initial sample + bloom mix — output pre-EOG linear HDR. Use only during captureHDRPixels 'hdr-effects-pre-tone' mode; callers MUST also disable detector noise / vignette / lens distortion via the regular toggle* methods so they don't pollute the linear HDR output.

      Parameters

      • enabled: boolean

      Returns void

    • Skip ONLY the final sRGB encoding step; the rest of the pipeline (EOG, tone mapping, vignette) runs normally. Output is linear LDR (post-tone-mapped, pre-sRGB). Used by captureHDRPixels 'visible-ldr' mode.

      Parameters

      • enabled: boolean

      Returns void

    • Add or remove a boolean define. Triggers a recompile only when the flag actually changed, so repeated toggles to the same value are free.

      Parameters

      • name: string
      • on: boolean

      Returns void