added perspective

This commit is contained in:
2026-04-16 02:04:32 +02:00
parent 71753ea29b
commit af1e96ce6d
3 changed files with 18 additions and 8 deletions

View File

@@ -7,10 +7,10 @@ layout(location = 2) in vec4 a_color;
out vec4 v_color;
out vec2 v_texCoord;
uniform mat4 u_model;
uniform mat4 u_modelViewProj;
void main() {
gl_Position = u_model * vec4(a_position, 1.0f);
gl_Position = u_modelViewProj * vec4(a_position, 1.0f);
v_color = a_color;
v_texCoord = a_texCoord;
}