sebavan 6 лет назад
Родитель
Сommit
3367d2f796
1 измененных файлов с 2 добавлено и 4 удалено
  1. 2 4
      src/Shaders/pbr.fragment.fx

+ 2 - 4
src/Shaders/pbr.fragment.fx

@@ -874,10 +874,8 @@ void main(void) {
             clearCoatNormalW = gl_FrontFacing ? clearCoatNormalW : -clearCoatNormalW;
         #endif
 
-        #ifdef SPECULARAA
-            // Clear Coat AA
-            vec2 clearCoatAARoughnessFactors = getAARoughnessFactors(clearCoatNormalW.xyz);
-        #endif
+        // Clear Coat AA
+        vec2 clearCoatAARoughnessFactors = getAARoughnessFactors(clearCoatNormalW.xyz);
 
         // Compute N dot V.
         float clearCoatNdotVUnclamped = dot(clearCoatNormalW, viewDirectionW);