summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2021-05-05 19:10:46 -0400
committerDavid Thompson <dthompson2@worcester.edu>2021-05-05 19:10:46 -0400
commitd04b3a83883dc4313addd8171c194524873ffe05 (patch)
treee86dcde3985fa87fc5c25422b29d52d518038763
parenta2b8006c27d6ad8d7af701b94e869ab39c3a7ad4 (diff)
graphics: model: Use default material when primtive doesn't specify.
-rw-r--r--chickadee/graphics/model.scm3
1 files changed, 1 insertions, 2 deletions
diff --git a/chickadee/graphics/model.scm b/chickadee/graphics/model.scm
index 3024673..7abd352 100644
--- a/chickadee/graphics/model.scm
+++ b/chickadee/graphics/model.scm
@@ -942,9 +942,8 @@
(indices (match (number-ref/optional obj "indices")
(#f #f)
(n (vector-ref accessors n))))
- ;; TODO: Set a default material when none is given.
(material (match (number-ref/optional obj "material")
- (#f #f)
+ (#f default-pbr-material)
(n (vector-ref materials n))))
(mode (match (or (number-ref/optional obj "mode") 4)
(0 'points)