summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2014-10-28 22:15:54 -0400
committerDavid Thompson <dthompson2@worcester.edu>2014-10-28 22:15:54 -0400
commitcf061c18435ca545d75c1082f6e627afbfd36b77 (patch)
treeff645e873b6b5162a2d20bcd48d03343d6acf708
parent1f34cce2689057f54f5c5fd4c09f7bcfd2e6ec16 (diff)
renderer: Apply camera viewport before rendering.
* sly/render/renderer.scm (render): Apply camera viewports.
-rw-r--r--sly/render/renderer.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/sly/render/renderer.scm b/sly/render/renderer.scm
index a0ac2ca..76cc4aa 100644
--- a/sly/render/renderer.scm
+++ b/sly/render/renderer.scm
@@ -114,6 +114,7 @@ uniform variable 'mvp'."
"Apply all of the render operations in RENDERER. The render
operations are applied once for each camera."
(define (render-with-camera camera)
+ (apply-viewport (camera-viewport camera))
(let ((view (transform* (camera-projection camera)
(camera-location camera))))
(for-each (cut apply-render-op view <>)