Skip to content

Commit

Permalink
Use precision qualifiers only in GL ES shaders (#2217)
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl authored Mar 10, 2024
1 parent e80e198 commit 1cbdcd3
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions jme3-core/src/main/resources/Common/ShaderLib/GLSLCompat.glsllib
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
#ifdef FRAGMENT_SHADER
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

#ifdef GL_ES
#ifdef FRAGMENT_SHADER
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

#if defined GL_ES
Expand Down

0 comments on commit 1cbdcd3

Please sign in to comment.