@pmndrs/reflections
    Preparing search index...

    Interface ScreenSpaceTraceOptions

    interface ScreenSpaceTraceOptions {
        environment?: Texture<unknown, TextureEventMap> | null;
        environmentIntensity?: number;
        lights?: boolean;
        probes?: ReflectionProbes | null;
        provider: TraceProvider;
        raytracerHitShading?: boolean | { samples?: number };
        settings?: TracedReflectionsSettings;
    }
    Index
    environment?: Texture<unknown, TextureEventMap> | null

    Environment the hit shading lights hits with (an equirect 2-D texture or a CubeTexture). Default: the scene's environment at render(); black if none.

    environmentIntensity?: number

    Default: the scene's environmentIntensity at render() (1 if trace() is called directly).

    lights?: boolean

    Light traced hits with the scene's visible directional and hemisphere lights too (Lambert; up to 4 + 2), gathered at render(). Directional lights are shadowed by one ray each through the provider (settings.hitShadows, default on; every traced mesh casts, castShadow is not read); hemisphere lights and the environment are not. Default true.

    probes?: ReflectionProbes | null

    Reflection probes the hit shading lights hits with (the lookup at the hit along N at roughness 1, the environment slot for the rest; D901), instead of the environment's hemisphere mean. Default: the scene's, when scene.environmentNode is reflectionProbes(probes) at render() (what three lights the same surfaces with on screen). null: always the environment.

    provider: TraceProvider

    The BVH walk, e.g. (await createRaytracerTraceProviderFromObjects(pass.device, meshes)).provider.

    raytracerHitShading?: boolean | { samples?: number }

    W82 (T70, D5201): shade traced hits with @pmndrs/raytracer's one bounce (rtShade: emission + light samples with a shadow ray each, through its diffuse + GGX BSDF) instead of the probe / environment lookup. Opt-in: the default stays the probes. Needs the provider from createRaytracerTraceProviderFromObjects (capabilities.hitShade; it binds 7 storage buffers with the packed scene copy, D5450, so WebGPU's default 8 suffice); with another provider it warns once and the probes shade. Stochastic (one light sample per hit per frame): meant for a denoised frame. true = 1 sample; { samples } = more. The on-screen re-shade (settings.hitShading) keeps the probes either way.

    Ray budget, length cap, origin offset, on-screen reuse, hit shadows.