mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-17 03:15:35 -04:00
shader: add DISABLE_MIPMAPS
This commit is contained in:
parent
bd0c54f105
commit
7a74bf432a
@ -98,7 +98,7 @@ class ChunkRenderer(
|
|||||||
|
|
||||||
override fun postInit(latch: AbstractLatch) {
|
override fun postInit(latch: AbstractLatch) {
|
||||||
shader.load()
|
shader.load()
|
||||||
textShader.native.defines["FIXED_MIPMAP_LEVEL"] = 0
|
textShader.native.defines["DISABLE_MIPMAPS"] = ""
|
||||||
textShader.load()
|
textShader.load()
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
#version 330 core
|
#version 330 core
|
||||||
|
|
||||||
#define FIXED_MIPMAP_LEVEL 0
|
#define DISABLE_MIPMAPS
|
||||||
|
|
||||||
out vec4 foutColor;
|
out vec4 foutColor;
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
#version 330 core
|
#version 330 core
|
||||||
|
|
||||||
#define FIXED_MIPMAP_LEVEL 0
|
#define DISABLE_MIPMAPS
|
||||||
|
|
||||||
out vec4 foutColor;
|
out vec4 foutColor;
|
||||||
|
|
||||||
|
@ -13,6 +13,9 @@
|
|||||||
#ifndef INCLUDE_MINOSOFT_TEXTURE
|
#ifndef INCLUDE_MINOSOFT_TEXTURE
|
||||||
#define INCLUDE_MINOSOFT_TEXTURE
|
#define INCLUDE_MINOSOFT_TEXTURE
|
||||||
|
|
||||||
|
#ifdef DISABLE_MIPMAPS
|
||||||
|
#define FIXED_MIPMAP_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
uniform sampler2DArray uTextures[10];
|
uniform sampler2DArray uTextures[10];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user