Explorar o código

Fix bug when no reflection texture + sheen

Popov72 %!s(int64=5) %!d(string=hai) anos
pai
achega
eb07a8f4c8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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