Browse Source

Fix Direct Lights

sebavan 6 years ago
parent
commit
114cfb4972
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Shaders/ShadersInclude/lightFragment.fx

+ 1 - 1
src/Shaders/ShadersInclude/lightFragment.fx

@@ -82,7 +82,7 @@
                 
                 #ifdef CLEARCOAT_TINT
                     // Absorption
-                    absorption = computeClearCoatLightingAbsorption(clearCoatNdotVRefract, info.L, clearCoatNormalW, clearCoatColor, clearCoatThickness, clearCoatIntensity);
+                    absorption = computeClearCoatLightingAbsorption(clearCoatNdotVRefract, preInfo.L, clearCoatNormalW, clearCoatColor, clearCoatThickness, clearCoatIntensity);
                     info.diffuse *= absorption;
                     #ifdef SPECULARTERM
                         info.specular *= absorption;