| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -394,7 +394,7 @@ <h3>Perspective</h3> | |||
| 394 | 394 | float cameraZ = (height/2.0) / tan(fov/2.0); | |
| 395 | 395 | perspective(fov, float(width)/float(height), cameraZ/2.0, cameraZ*2.0); | |
| 396 | 396 | } else { | |
| 397 | - ortho(0, width, 0, height); | ||
| 397 | + ortho(-width/2, width/2, -height/2, height/2); | ||
| 398 | 398 | } | |
| 399 | 399 | translate(width/2, height/2, 0); | |
| 400 | 400 | rotateX(-PI/6); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments