From 7ec8c11835e99279ca998e64f09aa911b9e0cfa1 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 6 Aug 2021 08:57:53 -0400 Subject: model: Add mipmapping support to glTF models. --- chickadee/graphics/model.scm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/chickadee/graphics/model.scm b/chickadee/graphics/model.scm index 6837ddb..ca14e63 100644 --- a/chickadee/graphics/model.scm +++ b/chickadee/graphics/model.scm @@ -889,11 +889,10 @@ (match n (9728 'nearest) ((or #f 9729) 'linear) - ;; TODO: Support mip-mapping - ;; (9984 'nearest-mipmap-nearest) - ;; (9985 'linear-mipmap-nearest) - ;; (9986 'nearest-mipmap-linear) - ;; (9987 'linear-mipmap-linear) + (9984 'nearest-mipmap-nearest) + (9985 'linear-mipmap-nearest) + (9986 'nearest-mipmap-linear) + (9987 'linear-mipmap-linear) (_ 'linear))) (define (texture-wrap n) (match n -- cgit v1.2.3