summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2021-05-05 20:20:34 -0400
committerDavid Thompson <dthompson2@worcester.edu>2021-05-05 20:20:34 -0400
commitc774b0b801624843c2e0c162514582562d261809 (patch)
tree332c827493b009444b01045f4bd34458967402b6
parent1a36cd13c97e2648f8f8bcfb261d9ead13f55976 (diff)
graphics: model: Do not flip glTF textures.
The texture coordinates are based on a top-left origin in glTF, so we want to leave the pixels as-is.
-rw-r--r--chickadee/graphics/model.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/chickadee/graphics/model.scm b/chickadee/graphics/model.scm
index b0150af..43f7c3d 100644
--- a/chickadee/graphics/model.scm
+++ b/chickadee/graphics/model.scm
@@ -874,7 +874,8 @@
#:mag-filter (texture-filter
(number-ref/optional sampler "magFilter"))
#:wrap-s (texture-wrap (number-ref/optional sampler "wrapS"))
- #:wrap-t (texture-wrap (number-ref/optional sampler "wrapT")))))
+ #:wrap-t (texture-wrap (number-ref/optional sampler "wrapT"))
+ #:flip? #f)))
(define (parse-material obj textures)
(let* ((name (or (string-ref/optional obj "name") "anonymous"))
(pbrmr (or (object-ref/optional obj "pbrMetallicRoughness") '()))