فهرست منبع

Update GLSLCompat.glsllib

Ryan McDonough 10 ماه پیش
والد
کامیت
a9bafe3192
1فایلهای تغییر یافته به همراه14 افزوده شده و 3 حذف شده
  1. 14 3
      jme3-core/src/main/resources/Common/ShaderLib/GLSLCompat.glsllib

+ 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