@pmndrs/reflections
    Preparing search index...

    Interface RaytracerHitShading

    Hit shading by the provider's traceHitShade (capabilities.hitShade: createRaytracerTraceProvider): @pmndrs/raytracer's rtShade in its FULL mode, i.e. emission + samples light samples (light picked by power among the scene copy's emissive triangles, sun and environment; one shadow ray each), each through the builtin diffuse + GGX BSDF. That is a path tracer's first bounce at maxDepth 1: no indirect light, no probes (the probes hold the emitters and the sky too, so adding their irradiance would count those twice; D5201). Stochastic: the pixel and setFrame(frame) seed it; the denoiser averages it.

    const shading = raytracerHitShading(device); const rt = createTracedReflections(device, { ..., provider, hitShading: shading }); shading.setFrame(frameIndex); // every frame rt.dispatch(cmd, { ..., hitShadingBindGroup: shading.bindGroup });

    interface RaytracerHitShading {
        bindGroup: GPUBindGroup;
        layout?: GPUBindGroupLayout;
        requiresHitShade?: boolean;
        sampledTextureCount?: number;
        storageBufferCount?: number;
        storageTextureCount?: number;
        wgsl: string;
        destroy(): void;
        setFrame(frame: number): void;
    }

    Hierarchy (View Summary)

    Index
    bindGroup: GPUBindGroup
    layout?: GPUBindGroupLayout

    Layout of @group(3); omit when the snippet has no bindings.

    requiresHitShade?: boolean

    The snippet calls the provider's traceHitShade (capabilities.hitShade); the pass refuses a provider without it.

    sampledTextureCount?: number

    Sampled textures in layout (probes: one atlas per size), likewise (D4900). Default 0.

    storageBufferCount?: number

    Storage buffers in layout, counted against the device's per-stage limit. Default 0.

    storageTextureCount?: number

    Storage textures in layout, likewise. Default 0.

    wgsl: string