opengl3: add GLSLCompat into Gui.j3md

cleanup_build_scripts
David Bernard 9 years ago
parent 8752c42aa6
commit 2938acec51
  1. 2
      jme3-core/src/main/resources/Common/MatDefs/Gui/Gui.frag
  2. 15
      jme3-core/src/main/resources/Common/MatDefs/Gui/Gui.j3md
  3. 2
      jme3-core/src/main/resources/Common/MatDefs/Gui/Gui.vert

@ -1,3 +1,5 @@
#import "Common/ShaderLib/GLSLCompat.glsllib"
#ifdef TEXTURE #ifdef TEXTURE
uniform sampler2D m_Texture; uniform sampler2D m_Texture;
varying vec2 texCoord; varying vec2 texCoord;

@ -7,8 +7,8 @@ MaterialDef Default GUI {
} }
Technique { Technique {
VertexShader GLSL100: Common/MatDefs/Gui/Gui.vert VertexShader GLSL150: Common/MatDefs/Gui/Gui.vert
FragmentShader GLSL100: Common/MatDefs/Gui/Gui.frag FragmentShader GLSL150: Common/MatDefs/Gui/Gui.frag
WorldParameters { WorldParameters {
WorldViewProjectionMatrix WorldViewProjectionMatrix
@ -21,6 +21,17 @@ MaterialDef Default GUI {
} }
Technique { Technique {
VertexShader GLSL100: Common/MatDefs/Gui/Gui.vert
FragmentShader GLSL100: Common/MatDefs/Gui/Gui.frag
WorldParameters {
WorldViewProjectionMatrix
}
Defines {
TEXTURE : Texture
VERTEX_COLOR : VertexColor
}
} }
} }

@ -1,3 +1,5 @@
#import "Common/ShaderLib/GLSLCompat.glsllib"
uniform mat4 g_WorldViewProjectionMatrix; uniform mat4 g_WorldViewProjectionMatrix;
uniform vec4 m_Color; uniform vec4 m_Color;

Loading…
Cancel
Save