@pmndrs/reflections
    Preparing search index...

    Interface ProbeHitShading

    How the pass shades a traced hit: WGSL defining

    fn shadeTracedHit(hit: Hit, P: vec3f, N: vec3f, dir: vec3f) -> vec3f

    (world hit point, world normal facing the ray (the shading normal if the provider has one, D1700), unit ray direction; returns the radiance leaving P toward the ray origin). It may call traceHitMaterial(hit), traceHitSpecular(hit), hitLayered, the pass's sampleRadianceFallback(P, dir, roughness) and the pass's shadow query

    fn traceLightVisible(P: vec3f, N: vec3f, L: vec3f, tMax: f32) -> bool

    (false if the provider's traceAny finds geometry between P, offset along N like the reflection ray's origin, and P + L x tMax; always true with the pass's hitShadows off; D903). Its own bindings, if any, go in @group(3). The on-screen reuse (a hit visible in the current frame takes its scene colour) happens in the pass before this is called.

    interface ProbeHitShading {
        layout?: GPUBindGroupLayout;
        layoutId: string;
        requiresHitShade?: boolean;
        sampledTextureCount?: number;
        storageBufferCount?: number;
        storageTextureCount?: number;
        wgsl: string;
        createBindGroup(resources: ProbeHitShadingResources): GPUBindGroup;
        destroy(): void;
        setLighting(intensity: number, lights?: HitLights): void;
    }

    Hierarchy (View Summary)

    Index
    layout?: GPUBindGroupLayout

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

    layoutId: string
    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