summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2018-09-10 21:27:51 -0400
committerDavid Thompson <dthompson2@worcester.edu>2018-09-10 21:30:21 -0400
commit1a344160d425f54b23c2235a31b4d6ab352d9131 (patch)
tree4cbe198944d9b07ed4883e2858133cb797f18374
parent372abd79211d84fa9a9b4e7cd90925109614a730 (diff)
render: framebuffer: Flip UV coordinates.
* chickadee/render/framebuffer.scm (make-framebuffer): Flip the texture now that the texture origin is top-left.
-rw-r--r--chickadee/render/framebuffer.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/chickadee/render/framebuffer.scm b/chickadee/render/framebuffer.scm
index f96d6ba..a4c98f7 100644
--- a/chickadee/render/framebuffer.scm
+++ b/chickadee/render/framebuffer.scm
@@ -94,6 +94,7 @@ dimensions WIDTH x HEIGHT."
(let* ((framebuffer-id (generate-framebuffer))
(renderbuffer-id (generate-renderbuffer))
(texture (make-texture #f width height
+ #:flip? #t
#:min-filter min-filter
#:mag-filter mag-filter
#:wrap-s wrap-s