summaryrefslogtreecommitdiff
path: root/chickadee
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2021-09-23 07:17:56 -0400
committerDavid Thompson <dthompson2@worcester.edu>2021-09-23 07:17:56 -0400
commite5f3c6e2a7583dbc25323563eb26547c91cb760e (patch)
tree12354685fa2aa2cd06e59ebb85ccb5e34149690f /chickadee
parent0ccd85fe9a44bfb8920bfa0c9302d68b8675659d (diff)
graphics: model: Use keyword arguments in draw-model.
Diffstat (limited to 'chickadee')
-rw-r--r--chickadee/graphics/model.scm7
1 files changed, 6 insertions, 1 deletions
diff --git a/chickadee/graphics/model.scm b/chickadee/graphics/model.scm
index 11e90d5..92d5a28 100644
--- a/chickadee/graphics/model.scm
+++ b/chickadee/graphics/model.scm
@@ -150,8 +150,13 @@
(%make-model name scenes default-scene render-state))
(define %depth-test (make-depth-test))
+(define %identity-matrix (make-identity-matrix4))
+(define %origin (vec3 0.0 0.0 0.0))
-(define* (draw-model model model-matrix view-matrix camera-position #:key
+(define* (draw-model model #:key
+ (model-matrix %identity-matrix)
+ (view-matrix %identity-matrix)
+ (camera-position %origin)
(skybox (default-skybox))
(lights '()))
(with-graphics-state ((g:depth-test %depth-test)