Skip to content

Commit

Permalink
chore: switch to nearest neighbour mipmapping
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMcAvoy committed Oct 13, 2024
1 parent 6d9f9db commit 5aa4643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/src/texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Texture::Texture(const char *imagePath, bool alpha) {
// Set texture filtering parameters for minification and magnification
// (mipmapping)
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER,
GL_LINEAR_MIPMAP_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
GL_NEAREST_MIPMAP_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);

// Load the image, then create texture and generate the mipmaps
int w, h, c;
Expand Down

0 comments on commit 5aa4643

Please sign in to comment.