Skip to content

Commit 1cbdcd3

Browse files
authored
Use precision qualifiers only in GL ES shaders (#2217)
1 parent e80e198 commit 1cbdcd3

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

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

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
#ifdef FRAGMENT_SHADER
2-
precision highp float;
3-
precision highp int;
4-
precision highp sampler2DArray;
5-
precision highp sampler2DShadow;
6-
precision highp samplerCube;
7-
precision highp sampler3D;
8-
precision highp sampler2D;
9-
#if __VERSION__ >= 310
10-
precision highp sampler2DMS;
11-
#endif
12-
1+
#ifdef GL_ES
2+
#ifdef FRAGMENT_SHADER
3+
precision highp float;
4+
precision highp int;
5+
precision highp sampler2DArray;
6+
precision highp sampler2DShadow;
7+
precision highp samplerCube;
8+
precision highp sampler3D;
9+
precision highp sampler2D;
10+
#if __VERSION__ >= 310
11+
precision highp sampler2DMS;
12+
#endif
13+
#endif
1314
#endif
1415

1516
#if defined GL_ES

0 commit comments

Comments
 (0)