Browse Source

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

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