Merge pull request #377 from davidB/fix_opengl3

opengl3: add GLSLCompat into Gui.j3md
This commit is contained in:
Kirill Vainer 2015-11-09 20:44:50 -05:00
commit 79638b7434
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;