|
@@ -662,7 +662,7 @@ void main(void) {
|
|
clearCoatNormalW = normalize(texture2D(clearCoatBumpSampler, vClearCoatBumpUV + uvOffset).xyz * 2.0 - 1.0);
|
|
clearCoatNormalW = normalize(texture2D(clearCoatBumpSampler, vClearCoatBumpUV + uvOffset).xyz * 2.0 - 1.0);
|
|
clearCoatNormalW = normalize(mat3(normalMatrix) * clearCoatNormalW);
|
|
clearCoatNormalW = normalize(mat3(normalMatrix) * clearCoatNormalW);
|
|
#else
|
|
#else
|
|
- clearCoatNormalW = perturbNormal(TBN, vClearCoatBumpUV + uvOffset, texture2D(clearCoatBumpSampler, uv).xyz, vClearCoatBumpInfos.y);
|
|
|
|
|
|
+ clearCoatNormalW = perturbNormal(TBN, texture2D(clearCoatBumpSampler, vClearCoatBumpUV + uvOffset).xyz, vClearCoatBumpInfos.y);
|
|
#endif
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
|
|
@@ -895,7 +895,7 @@ void main(void) {
|
|
#ifdef CLEARCOAT
|
|
#ifdef CLEARCOAT
|
|
#if defined(ENVIRONMENTBRDF) && !defined(REFLECTIONMAP_SKYBOX)
|
|
#if defined(ENVIRONMENTBRDF) && !defined(REFLECTIONMAP_SKYBOX)
|
|
// BRDF Lookup
|
|
// BRDF Lookup
|
|
- vec3 environmentClearCoatBrdf = getBRDFLookup(clearCoatNdotV, clearCoatRoughness, environmentBrdfSampler);
|
|
|
|
|
|
+ vec3 environmentClearCoatBrdf = getBRDFLookup(clearCoatNdotV, clearCoatRoughness);
|
|
vec3 clearCoatEnvironmentReflectance = getReflectanceFromBRDFLookup(vec3(vClearCoatRefractionParams.x), environmentClearCoatBrdf);
|
|
vec3 clearCoatEnvironmentReflectance = getReflectanceFromBRDFLookup(vec3(vClearCoatRefractionParams.x), environmentClearCoatBrdf);
|
|
|
|
|
|
#ifdef RADIANCEOCCLUSION
|
|
#ifdef RADIANCEOCCLUSION
|