text almost works

This commit is contained in:
2021-08-15 23:29:25 +02:00
parent 40aa7f635e
commit fb045f210a
10 changed files with 30 additions and 25 deletions

View File

@@ -25,8 +25,15 @@ out gl_PerVertex {
};
void main() {
mat4 invert = mat4(
1., 0., 0., 0.,
0., -1., 0., 0.,
0., 0., 1., 0.,
0., 0., 0., 1.
);
// Vertex position in camera
gl_Position = ubo.projection * ubo.view * push.model * vec4(position, 1.0);
gl_Position = ubo.projection * ubo.view * invert * push.model * vec4(position, 1.0);
// Just interpolate UV coords, no transformation needed
tex_coords = uv;