Variable getIBLIndirectIrradianceConst
getIBLIndirectIrradiance: "\nfn getIBLIndirectIrradiance(\n normal: vec3f,\n diffuseColor: vec3f,\n clampSampler: sampler,\n envDiffuseTexture: texture_cube<f32>,\n envRotation: mat3x3f,\n envDiffuseIntensity: f32,\n) -> vec3f {\n // IBL diffuse (irradiance)\n let diffuseLight: vec4f = textureSample(\n envDiffuseTexture,\n clampSampler,\n normal * envRotation\n );\n\n return diffuseLight.rgb * envDiffuseIntensity;\n}\n" = ...
Helper function chunk appended internally and used to compute the indirect irradiance based on environment diffuse map.