Initial commit
This commit is contained in:
6
client/shaders/default_shader/opengl_fragment.glsl
Normal file
6
client/shaders/default_shader/opengl_fragment.glsl
Normal file
@@ -0,0 +1,6 @@
|
||||
varying lowp vec4 varColor;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
gl_FragColor = varColor;
|
||||
}
|
||||
11
client/shaders/default_shader/opengl_vertex.glsl
Normal file
11
client/shaders/default_shader/opengl_vertex.glsl
Normal file
@@ -0,0 +1,11 @@
|
||||
varying lowp vec4 varColor;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
gl_Position = mWorldViewProj * inVertexPosition;
|
||||
#ifdef GL_ES
|
||||
varColor = inVertexColor.bgra;
|
||||
#else
|
||||
varColor = inVertexColor;
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user