Skip to content

Commit

Permalink
Merge pull request #13548 from BabylonJS/Popov72-patch-1
Browse files Browse the repository at this point in the history
PBR: Don't apply radiance occlusion to clearcoat
  • Loading branch information
sebavan committed Feb 20, 2023
2 parents cfa4a15 + eaa923d commit 9611369
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,6 @@ struct clearcoatOutParams
#if defined(ENVIRONMENTBRDF) && !defined(REFLECTIONMAP_SKYBOX)
vec3 clearCoatEnvironmentReflectance = getReflectanceFromBRDFLookup(vec3(vClearCoatRefractionParams.x), environmentClearCoatBrdf);

#ifdef RADIANCEOCCLUSION
float clearCoatSeo = environmentRadianceOcclusion(ambientMonochrome, clearCoatNdotVUnclamped);
clearCoatEnvironmentReflectance *= clearCoatSeo;
#endif

#ifdef HORIZONOCCLUSION
#ifdef BUMP
#ifdef REFLECTIONMAP_3D
Expand Down

0 comments on commit 9611369

Please sign in to comment.