Jelajahi Sumber

Update GLSLCompat.glsllib

Ryan McDonough 10 bulan lalu
induk
melakukan
a9bafe3192

+ 14 - 3
jme3-core/src/main/resources/Common/ShaderLib/GLSLCompat.glsllib

@@ -1,8 +1,19 @@
 #ifdef GL_ES
+
+  #ifndef lowp
+    #define lowp
+  #endif
+  
   #ifdef FRAGMENT_SHADER
-    #if __VERSION__ >= 130
-      precision highp float;
-      precision highp int;
+    precision highp float;
+    precision highp int;
+    precision highp sampler2DArray;
+    precision highp sampler2DShadow;
+    precision highp samplerCube;
+    precision highp sampler3D;
+    precision highp sampler2D;
+    #if __VERSION__ >= 310
+      precision highp sampler2DMS;
     #endif
   #endif
 #endif