summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2021-05-14 21:27:00 -0400
committerDavid Thompson <dthompson2@worcester.edu>2021-05-14 21:32:11 -0400
commit7f3a6267b078cd5b1c8ed4be859cc8c50718c70d (patch)
tree72e27f7c2703ef056b38adca1f3e59f325b4d598
parent97a39d50faaad2fd77329467292dd635f7d37dd8 (diff)
graphics: model: Don't flip pixels of OBJ model textures.
-rw-r--r--chickadee/graphics/model.scm12
1 files changed, 8 insertions, 4 deletions
diff --git a/chickadee/graphics/model.scm b/chickadee/graphics/model.scm
index 4aeb862..37629f3 100644
--- a/chickadee/graphics/model.scm
+++ b/chickadee/graphics/model.scm
@@ -353,7 +353,8 @@
'file-name)))
(texture (load-image file
#:min-filter 'linear
- #:mag-filter 'linear)))
+ #:mag-filter 'linear
+ #:flip? #f)))
(loop (cons* (cons 'ambient-map texture)
(cons 'use-ambient-map? #t)
opts))))
@@ -363,7 +364,8 @@
'file-name)))
(texture (load-image file
#:min-filter 'linear
- #:mag-filter 'linear)))
+ #:mag-filter 'linear
+ #:flip? #f)))
(loop (cons* (cons 'diffuse-map texture)
(cons 'use-diffuse-map? #t)
opts))))
@@ -373,7 +375,8 @@
'file-name)))
(texture (load-image file
#:min-filter 'linear
- #:mag-filter 'linear)))
+ #:mag-filter 'linear
+ #:flip? #f)))
(loop (cons* (cons 'specular-map texture)
(cons 'use-specular-map? #t)
opts))))
@@ -383,7 +386,8 @@
'file-name)))
(texture (load-image file
#:min-filter 'linear
- #:mag-filter 'linear)))
+ #:mag-filter 'linear
+ #:flip? #f)))
(loop (cons* (cons 'bump-map texture)
(cons 'use-bump-map? #t)
opts))))