Scale Y coordinate in matrix
This commit is contained in:
parent
a0507d3ea6
commit
4a3dfeafdc
1 changed files with 2 additions and 2 deletions
|
|
@ -4,11 +4,11 @@ uniform vec4 uniform_color;
|
|||
out vec4 vertex_color;
|
||||
const mat4 to_draw_coordinates_matrix = mat4(
|
||||
1., 0., 0., 0.,
|
||||
0., 1., 0., 0.,
|
||||
0., -1., 0., 0.,
|
||||
0., 0., 1., 0.,
|
||||
-1, 1, 0, 1);
|
||||
void main()
|
||||
{
|
||||
gl_Position = to_draw_coordinates_matrix*vec4(pos.x,-pos.y,pos.z, 1.0f);
|
||||
gl_Position = to_draw_coordinates_matrix*vec4(pos, 1.0f);
|
||||
vertex_color = uniform_color;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue