Pārlūkot izejas kodu

ShaderChunk: Fixed clearcoat reflections.

Mr.doob 6 gadi atpakaļ
vecāks
revīzija
93668f7562

+ 1 - 9
src/renderers/shaders/ShaderChunk/lights_fragment_maps.glsl.js

@@ -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