瀏覽代碼

Fix bug when no reflection texture + sheen

Popov72 5 年之前
父節點
當前提交
eb07a8f4c8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Shaders/ShadersInclude/pbrBRDFFunctions.fx

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

@@ -60,7 +60,7 @@ float getBRDFLookupCharlieSheen(float NdotV, float perceptualRoughness)
     }
 #endif
 
-#if defined(SHEEN) && defined(REFLECTION)
+#if defined(SHEEN) && defined(ENVIRONMENTBRDF)
     /**
      * The sheen BRDF not containing F can be easily stored in the blue channel of the BRDF texture.
      * The blue channel contains DCharlie * VAshikhmin * NdotL as a lokkup table