Fix bugs with bump map and normal in pbr shader
@@ -34,6 +34,10 @@ uniform vec2 vAlbedoInfos;
uniform vec3 vAmbientInfos;
#endif
+#ifdef BUMP
+uniform vec3 vBumpInfos;
+#endif
+
#ifdef OPACITY
uniform vec2 vOpacityInfos;
@@ -1,4 +1,4 @@
-#ifdef BUMP
+#if defined(BUMP)|| !defined(NORMAL)
#extension GL_OES_standard_derivatives : enable