Browse Source

Fix bug when no reflection texture + sheen

Popov72 5 năm trước cách đây
mục cha
commit
eb07a8f4c8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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