Browse Source

Update GLSLCompat.glsllib

Ryan McDonough 1 year ago
parent
commit
771592c26b
1 changed files with 15 additions and 14 deletions
  1. 15 14
      jme3-core/src/main/resources/Common/ShaderLib/GLSLCompat.glsllib

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

@@ -1,17 +1,18 @@
-#ifdef FRAGMENT_SHADER
-      precision highp float;
-      precision highp int;
-      #if __VERSION__ >= 130
-	    precision highp sampler2DArray;        
-      #endif
-      precision highp sampler2DShadow;
-      precision highp samplerCube;
-      precision highp sampler3D;
-      precision highp sampler2D;
-      #if __VERSION__ >= 310
-        precision highp sampler2DMS;
-      #endif
-
+#ifdef GL_ES
+  #ifdef FRAGMENT_SHADER
+    precision highp float;
+    precision highp int;
+    #if __VERSION__ >= 130
+      precision highp sampler2DArray;        
+    #endif
+    precision highp sampler2DShadow;
+    precision highp samplerCube;
+    precision highp sampler3D;
+    precision highp sampler2D;
+    #if __VERSION__ >= 310
+      precision highp sampler2DMS;
+    #endif
+  #endif
 #endif
 
 #if defined GL_ES