@pmndrs/reflections
    Preparing search index...

    Interface HitMaterial

    Linear diffuse albedo and emitted radiance of a traced hit (WGSL HitMaterial), and its specular lobe (WGSL HitSpecular, W41, D3510): F0 (linear), perceptual roughness, clear coat factor and roughness. Without specular the hit is diffuse only (as before W41).

    interface HitMaterial {
        albedo: readonly [number, number, number];
        baseColor?: readonly [number, number, number];
        clearcoat?: number;
        clearcoatRoughness?: number;
        emissive: readonly [number, number, number];
        map?: Texture<unknown, TextureEventMap>;
        metalness?: number;
        roughness?: number;
        specular?: readonly [number, number, number];
        transmission?: number;
    }
    Index
    albedo: readonly [number, number, number]
    baseColor?: readonly [number, number, number]

    Linear base colour before metalness / transmission (color x mean(map)), for physical providers (@pmndrs/raytracer, P1.5).

    clearcoat?: number
    clearcoatRoughness?: number
    emissive: readonly [number, number, number]
    map?: Texture<unknown, TextureEventMap>

    W97: a base colour texture the trace reads at the hit's uv (bvhTraceSceneFromObjects decodes it once); baseColor is then the factor alone (three's color), while albedo / specular keep the map's mean.

    metalness?: number
    roughness?: number
    specular?: readonly [number, number, number]
    transmission?: number