fix vertex shader positioning
This commit is contained in:
1 parent
c7e0b9696d
commit
490f8973d2
2 files changed
+1
-3
No files matched your search
@@ -10,6 +10,6 @@ varying vec2 pos_2d_i;
|
||||
void main()
|
||||
{
|
||||
gl_Position = projection *
|
||||
(modelview * vec4(pos, 0, 1) + vec4(offset, 0, 1));
|
||||
(modelview * vec4(pos, 0, 1) + vec4(offset, 0, 0));
|
||||
pos_2d_i = pos + offset;
|
||||
}
|
||||
Reference in new issue
Block a user