Interface EnvironmentTextures
interface EnvironmentTextures {
brdfLut: GPUTexture;
brdfLutView: GPUTextureView;
brdfSampler: GPUSampler;
cubeSampler: GPUSampler;
irradianceSH: Float32Array;
lodGenerationOffset?: number;
lodGenerationScale: number;
specularCube: GPUTexture;
specularCubeView: GPUTextureView;
sphericalHarmonics: Float32Array;
}
brdfLut: GPUTexture;
brdfLutView: GPUTextureView;
brdfSampler: GPUSampler;
cubeSampler: GPUSampler;
irradianceSH: Float32Array;
lodGenerationOffset?: number;
lodGenerationScale: number;
specularCube: GPUTexture;
specularCubeView: GPUTextureView;
sphericalHarmonics: Float32Array;
}
Properties
brdf Lut
brdfLut: GPUTexture
brdf Lut View
brdfLutView: GPUTextureView
brdf Sampler
brdfSampler: GPUSampler
cube Sampler
cubeSampler: GPUSampler
irradiance SH
irradianceSH: Float32Array
Optionallod Generation Offset
lodGenerationOffset?: number
LOD generation offset for prefiltered cubemap sampling. Default 0.
lod Generation Scale
lodGenerationScale: number
LOD generation scale for specular IBL sampling. Default 0.8 (matches BJS BaseTexture).
specular Cube
specularCube: GPUTexture
specular Cube View
specularCubeView: GPUTextureView
spherical Harmonics
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]
GPU-resident environment textures.