opengl3: add GLSLCompat into Gui.j3md

This commit is contained in:
David Bernard 2015-11-09 21:19:59 +01:00
parent 8752c42aa6
commit 2938acec51
3 changed files with 18 additions and 3 deletions

View File

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

View File

@ -6,6 +6,20 @@ MaterialDef Default GUI {
Boolean VertexColor (UseVertexColor)
}
Technique {
VertexShader GLSL150: Common/MatDefs/Gui/Gui.vert
FragmentShader GLSL150: Common/MatDefs/Gui/Gui.frag
WorldParameters {
WorldViewProjectionMatrix
}
Defines {
TEXTURE : Texture
VERTEX_COLOR : VertexColor
}
}
Technique {
VertexShader GLSL100: Common/MatDefs/Gui/Gui.vert
FragmentShader GLSL100: Common/MatDefs/Gui/Gui.frag
@ -20,7 +34,4 @@ MaterialDef Default GUI {
}
}
Technique {
}
}

View File

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