mirror of
https://github.com/processing/processing4.git
synced 2026-01-30 03:41:15 +01:00
Added propper Y-axis inversion in ortho()
This commit is contained in:
@@ -4946,7 +4946,7 @@ return width * (1 + ox) / 2.0f;
|
||||
glprojection[3] = 0.0f;
|
||||
|
||||
glprojection[4] = 0.0f;
|
||||
glprojection[5] = y;
|
||||
glprojection[5] = -y; // The minus here inverts the Y axis in order to use Processing's convention
|
||||
glprojection[6] = 0.0f;
|
||||
glprojection[7] = 0.0f;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user