From de0c79c143ddcc3fcad5f40a861d35a898ae812b Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 30 Nov 2014 13:13:27 -0500 Subject: render: camera: Fix orthographic camera such that the y-axis points up. * sly/render/camera.scm (orthographic-camera): Reverse y-axis. --- sly/render/camera.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sly/render/camera.scm b/sly/render/camera.scm index 3ec7089..a9b8e41 100644 --- a/sly/render/camera.scm +++ b/sly/render/camera.scm @@ -107,5 +107,5 @@ size WIDTH x HEIGHT. Optionally, z-axis clipping planes Z-NEAR and Z-FAR can be specified, but default to 0 and 1, respectively. By default, the camera's VIEWPORT is WIDTH x HEIGHT, which is convenient if the dimensions are measured in pixels." - (let ((projection (orthographic-projection 0 width 0 height z-near z-far))) + (let ((projection (orthographic-projection 0 width height 0 z-near z-far))) (make-camera identity-transform projection viewport))) -- cgit v1.2.3