summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2021-05-14 21:26:28 -0400
committerDavid Thompson <dthompson2@worcester.edu>2021-05-14 21:32:11 -0400
commit3b1c1b64a46619d3d69ab6fa9aea7b4692c95205 (patch)
treef8d24ad392dcaa3bfc7c6d0f3335482e58d21c18
parent54b96b2bac0b4f0b31e5ddac79ca7e9f67c6985e (diff)
graphics: model: Use multisampling.
-rw-r--r--chickadee/graphics/model.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/chickadee/graphics/model.scm b/chickadee/graphics/model.scm
index 2b500c7..cdb8119 100644
--- a/chickadee/graphics/model.scm
+++ b/chickadee/graphics/model.scm
@@ -33,6 +33,7 @@
#:use-module (chickadee graphics depth)
#:use-module (chickadee graphics engine)
#:use-module (chickadee graphics light)
+ #:use-module (chickadee graphics multisample)
#:use-module (chickadee graphics pbr)
#:use-module (chickadee graphics phong)
#:use-module (chickadee graphics shader)
@@ -223,7 +224,8 @@
(define* (draw-model model model-matrix view-matrix camera-position #:key
(lights '())
(ambient-light-color %default-ambient-light-color))
- (with-graphics-state ((g:depth-test %depth-test))
+ (with-graphics-state ((g:depth-test %depth-test)
+ (g:multisample? #t))
(let ((state (model-render-state model)))
(render-state-reset! state)
(render-state-view-matrix-mult! state view-matrix)