From 8c7a0c462544ad41e696890fa912ce3ad9dbe318 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 6 Aug 2021 08:35:01 -0400 Subject: graphics: model: Add placeholders for more texcoords in glTF models. --- chickadee/graphics/model.scm | 13 +++++++++++-- 1 file 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) -- cgit v1.2.3