diff options
| -rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -28,7 +28,7 @@ static constexpr int WindowHeight = 480; | |||
| 28 | static constexpr sgVec2i WindowDims = (sgVec2i){.x = WindowWidth, .y = WindowHeight}; | 28 | static constexpr sgVec2i WindowDims = (sgVec2i){.x = WindowWidth, .y = WindowHeight}; |
| 29 | 29 | ||
| 30 | static constexpr R Fovy = (R)(90 * TO_RAD); | 30 | static constexpr R Fovy = (R)(90 * TO_RAD); |
| 31 | static constexpr R Near = 0.1f; | 31 | static constexpr R Near = 0.01f; |
| 32 | static constexpr R Far = 100.0f; | 32 | static constexpr R Far = 100.0f; |
| 33 | 33 | ||
| 34 | static constexpr size_t MaxTextures = 256; | 34 | static constexpr size_t MaxTextures = 256; |
| @@ -215,7 +215,7 @@ static void RenderModel(swgfx* gfx, const sgImage* textures, const Model* model) | |||
| 215 | // single model. Generalize later. | 215 | // single model. Generalize later. |
| 216 | assert((size_t)object->material < MaxTextures); | 216 | assert((size_t)object->material < MaxTextures); |
| 217 | const sgImage* texture = &textures[object->material]; | 217 | const sgImage* texture = &textures[object->material]; |
| 218 | sgTexture(gfx, texture); | 218 | sgTexture(gfx, texture, sgBilinear); |
| 219 | switch (model->type) { | 219 | switch (model->type) { |
| 220 | case ModelTypeIndexed: RenderIndexedModel(gfx, &model->indexed, object); break; | 220 | case ModelTypeIndexed: RenderIndexedModel(gfx, &model->indexed, object); break; |
| 221 | case ModelTypeFlat: /* TODO: Render flat models. */ break; | 221 | case ModelTypeFlat: /* TODO: Render flat models. */ break; |
