mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 03:44:54 -04:00
disable mipmaps in hud, 1 in #49
This commit is contained in:
parent
547e754245
commit
3e66b57461
@ -22,7 +22,7 @@ in vec4 finTintColor;
|
|||||||
#include "minosoft:texture"
|
#include "minosoft:texture"
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
vec4 texelColor = getTexture(finTextureIndex, finTextureCoordinates);
|
vec4 texelColor = getTexture(finTextureIndex, finTextureCoordinates, 0.0f);
|
||||||
|
|
||||||
//texelColor = vec4(1.0f, 0.0f, 1.0f, 1.0f);
|
//texelColor = vec4(1.0f, 0.0f, 1.0f, 1.0f);
|
||||||
|
|
||||||
|
@ -29,3 +29,20 @@ vec4 getTexture(uint textureId, vec3 uv) { // ToDo: This method is just stupid a
|
|||||||
return texture(uTextures[0], uv);
|
return texture(uTextures[0], uv);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vec4 getTexture(uint textureId, vec3 uv, float mipmapLevel) { // ToDo: This method is just stupid and workarounds a opengl crash with mesa drivers
|
||||||
|
#if defined __NVIDIA || defined __AMD
|
||||||
|
return textureLod(uTextures[textureId], uv, mipmapLevel);
|
||||||
|
#else
|
||||||
|
switch (textureId) {
|
||||||
|
case 1u: return textureLod(uTextures[1], uv, mipmapLevel);
|
||||||
|
case 2u: return textureLod(uTextures[2], uv, mipmapLevel);
|
||||||
|
case 3u: return textureLod(uTextures[3], uv, mipmapLevel);
|
||||||
|
case 4u: return textureLod(uTextures[4], uv, mipmapLevel);
|
||||||
|
case 5u: return textureLod(uTextures[5], uv, mipmapLevel);
|
||||||
|
case 6u: return textureLod(uTextures[6], uv, mipmapLevel);
|
||||||
|
}
|
||||||
|
return textureLod(uTextures[0], uv, mipmapLevel);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user