浏览代码

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
 #endif