shader: add DISABLE_MIPMAPS

This commit is contained in:
Moritz Zwerger 2023-12-16 01:21:14 +01:00
parent bd0c54f105
commit 7a74bf432a
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
4 changed files with 6 additions and 3 deletions

View File

@ -98,7 +98,7 @@ class ChunkRenderer(
override fun postInit(latch: AbstractLatch) {
shader.load()
textShader.native.defines["FIXED_MIPMAP_LEVEL"] = 0
textShader.native.defines["DISABLE_MIPMAPS"] = ""
textShader.load()

View File

@ -13,7 +13,7 @@
#version 330 core
#define FIXED_MIPMAP_LEVEL 0
#define DISABLE_MIPMAPS
out vec4 foutColor;

View File

@ -13,7 +13,7 @@
#version 330 core
#define FIXED_MIPMAP_LEVEL 0
#define DISABLE_MIPMAPS
out vec4 foutColor;

View File

@ -13,6 +13,9 @@
#ifndef INCLUDE_MINOSOFT_TEXTURE
#define INCLUDE_MINOSOFT_TEXTURE
#ifdef DISABLE_MIPMAPS
#define FIXED_MIPMAP_LEVEL 0
#endif
uniform sampler2DArray uTextures[10];