text almost works
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user