opengl3: add GLSLCompat into Gui.j3md
This commit is contained in:
parent
8752c42aa6
commit
2938acec51
@ -1,3 +1,5 @@
|
||||
#import "Common/ShaderLib/GLSLCompat.glsllib"
|
||||
|
||||
#ifdef TEXTURE
|
||||
uniform sampler2D m_Texture;
|
||||
varying vec2 texCoord;
|
||||
|
@ -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 {
|
||||
}
|
||||
|
||||
}
|
@ -1,3 +1,5 @@
|
||||
#import "Common/ShaderLib/GLSLCompat.glsllib"
|
||||
|
||||
uniform mat4 g_WorldViewProjectionMatrix;
|
||||
uniform vec4 m_Color;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user