summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2021-08-06 08:35:01 -0400
committerDavid Thompson <dthompson2@worcester.edu>2021-08-06 08:35:01 -0400
commit8c7a0c462544ad41e696890fa912ce3ad9dbe318 (patch)
treedaf3a584c16f42c57a117dc00d6809448aea20d6
parent20a8d2d7b17d5b2239333eb67449e631fa28c7a3 (diff)
graphics: model: Add placeholders for more texcoords in glTF models.
-rw-r--r--chickadee/graphics/model.scm13
1 files changed, 11 insertions, 2 deletions
diff --git a/chickadee/graphics/model.scm b/chickadee/graphics/model.scm
index 8636652..6837ddb 100644
--- a/chickadee/graphics/model.scm
+++ b/chickadee/graphics/model.scm
@@ -1006,11 +1006,20 @@
("TEXCOORD_1"
(attribute-location
(hash-ref (shader-attributes shader) "texcoord1")))
+ ("TEXCOORD_2" 11)
+ ("TEXCOORD_3" 12)
("COLOR_0"
(attribute-location
(hash-ref (shader-attributes shader) "color0")))
- ("JOINTS_0" 12)
- ("WEIGHTS_0" 13))))
+ ("JOINTS_0" 13)
+ ("WEIGHTS_0" 14))))
+ ;; TODO: When normals are not specified, generate flat normals.
+ ;;
+ ;; TODO: When positions are not specified, skip the entire
+ ;; primitive.
+ ;;
+ ;; TODO: When tangents are not specified, calculate them using
+ ;; default MikkTSpace algorithms. http://www.mikktspace.com/
(define (parse-primitive obj materials accessors)
(let ((attributes (map (match-lambda
((name . n)