axmol/tests/cpp-tests/Source/shaders/cylinder.vert

17 lines
383 B
GLSL

#version 310 es
layout(location = 0) in vec4 a_position;
layout(location = 1) in vec2 a_texCoord;
layout(location = 0) out vec2 v_texture_coord;
layout(std140, binding = 0) uniform vs_ub {
float offset;
mat4 u_MVPMatrix;
};
void main(void)
{
gl_Position = u_MVPMatrix * a_position;
v_texture_coord = a_texCoord;
v_texture_coord.y = (1.0 - v_texture_coord.y);
}