use an ortho projection matrix to keep the quad square
This commit is contained in:
1 parent
63a9a5cd4b
commit
3450798278
2 files changed
+22
-2
No files matched your search
@@ -1,10 +1,11 @@
|
||||
|
||||
uniform mat4 projection;
|
||||
attribute vec3 pos;
|
||||
attribute vec3 color;
|
||||
varying vec3 color_i;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(pos * 0.75, 1);
|
||||
gl_Position = projection * vec4(pos * 0.75, 1);
|
||||
color_i = color;
|
||||
}
|
||||
Reference in new issue
Block a user