Pārlūkot izejas kodu

Fix Spec AA and Clear coat

sebavan 6 gadi atpakaļ
vecāks
revīzija
3367d2f796
1 mainītis faili ar 2 papildinājumiem un 4 dzēšanām
  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;
             clearCoatNormalW = gl_FrontFacing ? clearCoatNormalW : -clearCoatNormalW;
         #endif
         #endif
 
 
-        #ifdef SPECULARAA
-            // Clear Coat AA
-            vec2 clearCoatAARoughnessFactors = getAARoughnessFactors(clearCoatNormalW.xyz);
-        #endif
+        // Clear Coat AA
+        vec2 clearCoatAARoughnessFactors = getAARoughnessFactors(clearCoatNormalW.xyz);
 
 
         // Compute N dot V.
         // Compute N dot V.
         float clearCoatNdotVUnclamped = dot(clearCoatNormalW, viewDirectionW);
         float clearCoatNdotVUnclamped = dot(clearCoatNormalW, viewDirectionW);