v4k-git-backup/engine/art/shaders/vs_324_24_sprite.glsl

15 lines
244 B
Plaintext
Raw Permalink Normal View History

2023-08-10 21:53:51 +00:00
uniform mat4 u_mvp;
2023-09-10 14:46:07 +00:00
2023-08-10 21:53:51 +00:00
in vec3 att_Position;
in vec2 att_TexCoord;
in vec4 att_Color;
out vec2 vTexCoord;
out vec4 vColor;
2023-09-10 14:46:07 +00:00
2023-08-10 21:53:51 +00:00
void main() {
vColor = att_Color;
vTexCoord = att_TexCoord;
gl_Position = u_mvp * vec4(att_Position, 1.0);
}