API

Interface EnvironmentTextures

GPU-resident environment textures.

interface EnvironmentTextures {
    brdfLut: GPUTexture;
    brdfLutView: GPUTextureView;
    brdfSampler: GPUSampler;
    cubeSampler: GPUSampler;
    irradianceSH: Float32Array;
    lodGenerationOffset?: number;
    lodGenerationScale: number;
    specularCube: GPUTexture;
    specularCubeView: GPUTextureView;
    sphericalHarmonics: Float32Array;
}
Index
brdfLut: GPUTexture
brdfLutView: GPUTextureView
brdfSampler: GPUSampler
cubeSampler: GPUSampler
irradianceSH: Float32Array
lodGenerationOffset?: number

LOD generation offset for prefiltered cubemap sampling. Default 0.

lodGenerationScale: number

LOD generation scale for specular IBL sampling. Default 0.8 (matches BJS BaseTexture).

specularCube: GPUTexture
specularCubeView: GPUTextureView
sphericalHarmonics: Float32Array

Pre-scaled SH coefficients for shader, 36 floats in stride-4 layout: [L00.rgb, 0, L1_1.rgb, 0, L10.rgb, 0, L11.rgb, 0, L2_2.rgb, 0, L2_1.rgb, 0, L20.rgb, 0, L21.rgb, 0, L22.rgb, 0]