Procházet zdrojové kódy

Update GLSLCompat.glsllib

Ryan McDonough před 1 rokem
rodič
revize
771592c26b

+ 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
 #endif
 
 
 #if defined GL_ES
 #if defined GL_ES