Explorar o código

Fix missing extension declaration in pbr fragment shader when normals are not provided

Gary Hsu %!s(int64=8) %!d(string=hai) anos
pai
achega
75c9c87077
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Shaders/pbr.fragment.fx

+ 1 - 1
src/Shaders/pbr.fragment.fx

@@ -1,4 +1,4 @@
-#ifdef BUMP
+#if defined(BUMP)|| !defined(NORMAL)
 #extension GL_OES_standard_derivatives : enable
 #endif