Skip to content

Commit

Permalink
ShaderChunk: Fixed clearcoat reflections.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Aug 8, 2019
1 parent eaa4c2b commit 93668f7
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/renderers/shaders/ShaderChunk/lights_fragment_maps.glsl.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,7 @@ export default /* glsl */`
#ifndef STANDARD
#ifdef USE_CLEARCOAT_NORMALMAP
clearCoatRadiance += getLightProbeIndirectRadiance( /*specularLightProbe,*/ geometry.viewDir, geometry.clearCoatNormal, Material_ClearCoat_BlinnShininessExponent( material ), maxMipLevel );
#else
clearCoatRadiance += getLightProbeIndirectRadiance( /*specularLightProbe,*/ geometry.viewDir, geometry.normal, Material_ClearCoat_BlinnShininessExponent( material ), maxMipLevel );
#endif
clearCoatRadiance += getLightProbeIndirectRadiance( /*specularLightProbe,*/ geometry.viewDir, geometry.clearCoatNormal, Material_ClearCoat_BlinnShininessExponent( material ), maxMipLevel );
#endif
Expand Down

0 comments on commit 93668f7

Please sign in to comment.