From b8fe36ed7650473097cc0f8fb58648d4cb725d1b Mon Sep 17 00:00:00 2001 From: Kirill Vainer Date: Thu, 18 Jun 2015 23:00:17 -0400 Subject: [PATCH] glsllib with macros to convert glsl 1.1 shaders to 1.5 --- .../Common/ShaderLib/GLSL150Compat.glsllib | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 jme3-core/src/main/resources/Common/ShaderLib/GLSL150Compat.glsllib diff --git a/jme3-core/src/main/resources/Common/ShaderLib/GLSL150Compat.glsllib b/jme3-core/src/main/resources/Common/ShaderLib/GLSL150Compat.glsllib new file mode 100644 index 000000000..336490696 --- /dev/null +++ b/jme3-core/src/main/resources/Common/ShaderLib/GLSL150Compat.glsllib @@ -0,0 +1,14 @@ +#if _VERSION_ >= 150 +out vec4 outFragColor; +# define texture1D texture +# define texture2D texture +# define texture3D texture +# define texture2DLod texture +# if defined VERTEX_SHADER +# define varying out +# define attribute in +# elif defined FRAGMENT_SHADER +# define varying in +# define gl_FragColor outFragColor +# endif +#endif \ No newline at end of file