Browse Source

Fix Spec AA and Clear coat

sebavan 6 năm trước cách đây
mục cha
commit
3367d2f796
1 tập tin đã thay đổi với 2 bổ sung4 xóa
  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);