mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Merge pull request #954 from Rishab87/unexpected-y-axis
Fixed unexpected Y-axis translation when using ```ortho()``` and ```resetMatrix()```
This commit is contained in:
@@ -4481,7 +4481,7 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
|
||||
// The minus sign is needed to invert the Y axis.
|
||||
projection.set(x, 0, 0, tx,
|
||||
0, -y, 0, ty,
|
||||
0, -y, 0, -ty,
|
||||
0, 0, z, tz,
|
||||
0, 0, 0, 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user