axmol/tests/cpp-tests/Resources/MeshRendererTest/simple_shadow.vert

16 lines
359 B
GLSL
Raw Normal View History

attribute vec4 a_position;
attribute vec2 a_texCoord;
2014-12-19 15:31:06 +08:00
varying vec2 v_texture_coord;
varying vec4 v_position;
uniform mat4 u_model_matrix;
uniform mat4 u_MVPMatrix;
void main(void)
{
gl_Position = u_MVPMatrix * a_position;
2014-12-19 15:31:06 +08:00
v_texture_coord = a_texCoord;
v_texture_coord.y = (1.0 - v_texture_coord.y);
v_position = u_model_matrix * a_position;
}