123456789101112131415161718192021222324252627282930 |
- // Do not edit.
- import { ShaderStore } from "../../Engines/shaderStore.js";
- const name = "pbrBlockReflectance";
- const shader = `#if defined(ENVIRONMENTBRDF) && !defined(REFLECTIONMAP_SKYBOX)
- vec3 specularEnvironmentReflectance=getReflectanceFromBRDFLookup(clearcoatOut.specularEnvironmentR0,specularEnvironmentR90,environmentBrdf);
- #ifdef RADIANCEOCCLUSION
- specularEnvironmentReflectance*=seo;
- #endif
- #ifdef HORIZONOCCLUSION
- #ifdef BUMP
- #ifdef REFLECTIONMAP_3D
- specularEnvironmentReflectance*=eho;
- #endif
- #endif
- #endif
- #else
- vec3 specularEnvironmentReflectance=getReflectanceFromAnalyticalBRDFLookup_Jones(NdotV,clearcoatOut.specularEnvironmentR0,specularEnvironmentR90,sqrt(microSurface));
- #endif
- #ifdef CLEARCOAT
- specularEnvironmentReflectance*=clearcoatOut.conservationFactor;
- #if defined(CLEARCOAT_TINT)
- specularEnvironmentReflectance*=clearcoatOut.absorption;
- #endif
- #endif
- `;
- // Sideeffect
- ShaderStore.IncludesShadersStore[name] = shader;
- /** @internal */
- export const pbrBlockReflectance = { name, shader };
- //# sourceMappingURL=pbrBlockReflectance.js.map
|