瀏覽代碼

Fix Spec AA and Clear coat

sebavan 6 年之前
父節點
當前提交
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);