summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)