From: outfrost Date: Tue, 29 Jan 2019 19:28:29 +0000 (+0100) Subject: Make textures render nicely X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=bb02af908886238a872b417423f10f680a2cc9ad;p=shadowclad.git Make textures render nicely --- diff --git a/level.c b/level.c index 787461d..edcaa23 100644 --- a/level.c +++ b/level.c @@ -36,6 +36,7 @@ void initLevel() { for (unsigned int i = 0; i < numTextures; ++i) { glBindTexture(GL_TEXTURE_2D, blockWall01.textureIds[i]); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); AiString originalTexturePath; if (aiGetMaterialTexture(sceneData->mMaterials[sceneData->mMeshes[i]->mMaterialIndex],