From 08504ec924a0d6c78f615d8c449a47954e36ab61 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Thu, 5 Feb 2026 17:17:03 -0800 Subject: Pass in texture filter --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 225af5f..6d7a72d 100644 --- a/src/main.c +++ b/src/main.c @@ -28,7 +28,7 @@ static constexpr int WindowHeight = 480; static constexpr sgVec2i WindowDims = (sgVec2i){.x = WindowWidth, .y = WindowHeight}; static constexpr R Fovy = (R)(90 * TO_RAD); -static constexpr R Near = 0.1f; +static constexpr R Near = 0.01f; static constexpr R Far = 100.0f; static constexpr size_t MaxTextures = 256; @@ -215,7 +215,7 @@ static void RenderModel(swgfx* gfx, const sgImage* textures, const Model* model) // single model. Generalize later. assert((size_t)object->material < MaxTextures); const sgImage* texture = &textures[object->material]; - sgTexture(gfx, texture); + sgTexture(gfx, texture, sgBilinear); switch (model->type) { case ModelTypeIndexed: RenderIndexedModel(gfx, &model->indexed, object); break; case ModelTypeFlat: /* TODO: Render flat models. */ break; -- cgit v1.2.3