瀏覽代碼

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

Gary Hsu 8 年之前
父節點
當前提交
75c9c87077
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
 #extension GL_OES_standard_derivatives : enable
 #endif
 #endif