From 25e8fbbde87cd88db39a28a75cd3179bb82be513 Mon Sep 17 00:00:00 2001 From: Moritz Zwerger Date: Wed, 26 Mar 2025 16:47:18 +0100 Subject: [PATCH] shaders: add lowp or mediump when possible This allows the gpu to use less bits for the floats when it is not needed at all, thus using less resources. --- .../minosoft/rendering/shader/chunk/chunk.fsh | 2 +- .../shader/entities/features/block/block.fsh | 2 +- .../entities/features/block/flashing/flashing.fsh | 2 +- .../shader/entities/features/text/text.fsh | 2 +- .../rendering/shader/entities/player/arm/arm.fsh | 2 +- .../rendering/shader/entities/player/player.fsh | 2 +- .../rendering/shader/framebuffer/gui/gui.fsh | 2 +- .../world/fun/black_white/black_white.fsh | 2 +- .../shader/framebuffer/world/fun/flip/flip.fsh | 2 +- .../shader/framebuffer/world/fun/gray/gray.fsh | 2 +- .../shader/framebuffer/world/fun/invert/invert.fsh | 2 +- .../shader/framebuffer/world/fun/tint/tint.fsh | 2 +- .../rendering/shader/framebuffer/world/world.fsh | 2 +- .../rendering/shader/generic/color/color.fsh | 2 +- .../rendering/shader/generic/texture/texture.fsh | 2 +- .../shader/generic/texture_2d/texture_2d.fsh | 2 +- .../assets/minosoft/rendering/shader/gui/gui.fsh | 2 +- .../rendering/shader/includes/animation.glsl | 14 +++++++------- .../minosoft/rendering/shader/includes/color.glsl | 4 ++-- .../minosoft/rendering/shader/includes/light.glsl | 2 +- .../rendering/shader/includes/texture.glsl | 6 +++--- .../minosoft/rendering/shader/includes/tint.glsl | 4 ++-- .../minosoft/rendering/shader/includes/uv.glsl | 2 +- .../minosoft/rendering/shader/includes/vsh.glsl | 2 +- .../rendering/shader/particle/particle.fsh | 2 +- .../shader/skeletal/lightmap/lightmap.fsh | 2 +- .../rendering/shader/skeletal/normal/normal.fsh | 2 +- .../rendering/shader/sky/clouds/clouds.fsh | 2 +- .../rendering/shader/sky/planet/planet.fsh | 2 +- .../rendering/shader/sky/scatter/sun/sun.fsh | 2 +- .../rendering/shader/sky/skybox/skybox.fsh | 2 +- .../shader/sky/skybox/texture/texture.fsh | 2 +- .../rendering/shader/weather/overlay/overlay.fsh | 2 +- .../rendering/shader/world/border/border.fsh | 2 +- 34 files changed, 44 insertions(+), 44 deletions(-) diff --git a/src/main/resources/assets/minosoft/rendering/shader/chunk/chunk.fsh b/src/main/resources/assets/minosoft/rendering/shader/chunk/chunk.fsh index 90882ac87..a3aa07e76 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/chunk/chunk.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/chunk/chunk.fsh @@ -15,7 +15,7 @@ #define FOG -out vec4 foutColor; +out lowp vec4 foutColor; #include "minosoft:tint" diff --git a/src/main/resources/assets/minosoft/rendering/shader/entities/features/block/block.fsh b/src/main/resources/assets/minosoft/rendering/shader/entities/features/block/block.fsh index 4ea8273eb..b805bd391 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/entities/features/block/block.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/entities/features/block/block.fsh @@ -14,7 +14,7 @@ #version 330 core -out vec4 foutColor; +out lowp vec4 foutColor; #include "minosoft:tint" diff --git a/src/main/resources/assets/minosoft/rendering/shader/entities/features/block/flashing/flashing.fsh b/src/main/resources/assets/minosoft/rendering/shader/entities/features/block/flashing/flashing.fsh index 51e290361..c5022d09d 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/entities/features/block/flashing/flashing.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/entities/features/block/flashing/flashing.fsh @@ -14,7 +14,7 @@ #version 330 core -out vec4 foutColor; +out lowp vec4 foutColor; uniform float uFlashProgress; diff --git a/src/main/resources/assets/minosoft/rendering/shader/entities/features/text/text.fsh b/src/main/resources/assets/minosoft/rendering/shader/entities/features/text/text.fsh index 6be2292a6..152c88b69 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/entities/features/text/text.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/entities/features/text/text.fsh @@ -15,7 +15,7 @@ #define DISABLE_MIPMAPS -out vec4 foutColor; +out lowp vec4 foutColor; #include "minosoft:tint" diff --git a/src/main/resources/assets/minosoft/rendering/shader/entities/player/arm/arm.fsh b/src/main/resources/assets/minosoft/rendering/shader/entities/player/arm/arm.fsh index 6b78cf1dc..b1beb33ac 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/entities/player/arm/arm.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/entities/player/arm/arm.fsh @@ -16,7 +16,7 @@ #define FOG #define DISABLE_ALPHA_DISCARD -out vec4 foutColor; +out lowp vec4 foutColor; #include "minosoft:tint" diff --git a/src/main/resources/assets/minosoft/rendering/shader/entities/player/player.fsh b/src/main/resources/assets/minosoft/rendering/shader/entities/player/player.fsh index 6b78cf1dc..b1beb33ac 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/entities/player/player.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/entities/player/player.fsh @@ -16,7 +16,7 @@ #define FOG #define DISABLE_ALPHA_DISCARD -out vec4 foutColor; +out lowp vec4 foutColor; #include "minosoft:tint" diff --git a/src/main/resources/assets/minosoft/rendering/shader/framebuffer/gui/gui.fsh b/src/main/resources/assets/minosoft/rendering/shader/framebuffer/gui/gui.fsh index 0f88ca297..8fcfdd995 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/framebuffer/gui/gui.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/framebuffer/gui/gui.fsh @@ -15,7 +15,7 @@ in vec2 finUV; -out vec4 foutColor; +out lowp vec4 foutColor; uniform sampler2D uTexture; diff --git a/src/main/resources/assets/minosoft/rendering/shader/framebuffer/world/fun/black_white/black_white.fsh b/src/main/resources/assets/minosoft/rendering/shader/framebuffer/world/fun/black_white/black_white.fsh index 653a3d3b1..a4d91cb2b 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/framebuffer/world/fun/black_white/black_white.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/framebuffer/world/fun/black_white/black_white.fsh @@ -15,7 +15,7 @@ in vec2 finUV; -out vec4 foutColor; +out lowp vec4 foutColor; uniform sampler2D uTexture; diff --git a/src/main/resources/assets/minosoft/rendering/shader/framebuffer/world/fun/flip/flip.fsh b/src/main/resources/assets/minosoft/rendering/shader/framebuffer/world/fun/flip/flip.fsh index 503ebfe43..cc0940139 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/framebuffer/world/fun/flip/flip.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/framebuffer/world/fun/flip/flip.fsh @@ -15,7 +15,7 @@ in vec2 finUV; -out vec4 foutColor; +out lowp vec4 foutColor; uniform sampler2D uTexture; diff --git a/src/main/resources/assets/minosoft/rendering/shader/framebuffer/world/fun/gray/gray.fsh b/src/main/resources/assets/minosoft/rendering/shader/framebuffer/world/fun/gray/gray.fsh index a00262496..3a0765679 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/framebuffer/world/fun/gray/gray.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/framebuffer/world/fun/gray/gray.fsh @@ -15,7 +15,7 @@ in vec2 finUV; -out vec4 foutColor; +out lowp vec4 foutColor; uniform sampler2D uTexture; diff --git a/src/main/resources/assets/minosoft/rendering/shader/framebuffer/world/fun/invert/invert.fsh b/src/main/resources/assets/minosoft/rendering/shader/framebuffer/world/fun/invert/invert.fsh index fa64c6c5f..ac8f905cf 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/framebuffer/world/fun/invert/invert.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/framebuffer/world/fun/invert/invert.fsh @@ -15,7 +15,7 @@ in vec2 finUV; -out vec4 foutColor; +out lowp vec4 foutColor; uniform sampler2D uTexture; diff --git a/src/main/resources/assets/minosoft/rendering/shader/framebuffer/world/fun/tint/tint.fsh b/src/main/resources/assets/minosoft/rendering/shader/framebuffer/world/fun/tint/tint.fsh index 2dd6eb654..6a083d15a 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/framebuffer/world/fun/tint/tint.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/framebuffer/world/fun/tint/tint.fsh @@ -15,7 +15,7 @@ in vec2 finUV; -out vec4 foutColor; +out lowp vec4 foutColor; uniform sampler2D uTexture; uniform vec4 uTintColor; diff --git a/src/main/resources/assets/minosoft/rendering/shader/framebuffer/world/world.fsh b/src/main/resources/assets/minosoft/rendering/shader/framebuffer/world/world.fsh index a0f88d4b6..9de319ab2 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/framebuffer/world/world.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/framebuffer/world/world.fsh @@ -15,7 +15,7 @@ in vec2 finUV; -out vec4 foutColor; +out lowp vec4 foutColor; uniform sampler2D uTexture; diff --git a/src/main/resources/assets/minosoft/rendering/shader/generic/color/color.fsh b/src/main/resources/assets/minosoft/rendering/shader/generic/color/color.fsh index 95b24c8e5..c2a5a98e8 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/generic/color/color.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/generic/color/color.fsh @@ -16,7 +16,7 @@ in vec4 finTintColor; -out vec4 foutColor; +out lowp vec4 foutColor; void main() { diff --git a/src/main/resources/assets/minosoft/rendering/shader/generic/texture/texture.fsh b/src/main/resources/assets/minosoft/rendering/shader/generic/texture/texture.fsh index d8d24e479..b00ac4099 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/generic/texture/texture.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/generic/texture/texture.fsh @@ -13,7 +13,7 @@ #version 330 core -out vec4 foutColor; +out lowp vec4 foutColor; in vec2 finUV; diff --git a/src/main/resources/assets/minosoft/rendering/shader/generic/texture_2d/texture_2d.fsh b/src/main/resources/assets/minosoft/rendering/shader/generic/texture_2d/texture_2d.fsh index e3aaad543..36481e0f0 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/generic/texture_2d/texture_2d.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/generic/texture_2d/texture_2d.fsh @@ -14,7 +14,7 @@ #version 330 core -out vec4 foutColor; +out lowp vec4 foutColor; in vec2 finUV; diff --git a/src/main/resources/assets/minosoft/rendering/shader/gui/gui.fsh b/src/main/resources/assets/minosoft/rendering/shader/gui/gui.fsh index 848ca1f84..60a352b38 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/gui/gui.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/gui/gui.fsh @@ -15,7 +15,7 @@ #define DISABLE_MIPMAPS -out vec4 foutColor; +out lowp vec4 foutColor; #include "minosoft:tint" #include "minosoft:texture" diff --git a/src/main/resources/assets/minosoft/rendering/shader/includes/animation.glsl b/src/main/resources/assets/minosoft/rendering/shader/includes/animation.glsl index d74362a0b..c4121ea58 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/includes/animation.glsl +++ b/src/main/resources/assets/minosoft/rendering/shader/includes/animation.glsl @@ -36,23 +36,23 @@ layout(std140) uniform uSpriteBuffer #if defined SHADER_TYPE_VERTEX uint animationArray1; float animationLayer1; uint animationArray2; float animationLayer2; -float animationInterpolation; +lowp float animationInterpolation; #ifndef HAS_GEOMETRY_SHADER flat out uint finAnimationArray1; out float finAnimationLayer1; flat out uint finAnimationArray2; out float finAnimationLayer2; -out vec2 finAnimationUV; -out float finAnimationInterpolation; +out mediump vec2 finAnimationUV; +out lowp float finAnimationInterpolation; #endif #elif defined SHADER_TYPE_GEOMETRY flat out uint finAnimationArray1; out float finAnimationLayer1; flat out uint finAnimationArray2; out float finAnimationLayer2; -out vec2 finAnimationUV; -out float finAnimationInterpolation; +out mediump vec2 finAnimationUV; +out lowp float finAnimationInterpolation; #elif defined SHADER_TYPE_FRAGMENT flat in uint finAnimationArray1; in float finAnimationLayer1; flat in uint finAnimationArray2; in float finAnimationLayer2; -in vec2 finAnimationUV; -in float finAnimationInterpolation; +in mediump vec2 finAnimationUV; +in lowp float finAnimationInterpolation; #endif diff --git a/src/main/resources/assets/minosoft/rendering/shader/includes/color.glsl b/src/main/resources/assets/minosoft/rendering/shader/includes/color.glsl index 60288ad5d..311f9c04b 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/includes/color.glsl +++ b/src/main/resources/assets/minosoft/rendering/shader/includes/color.glsl @@ -12,10 +12,10 @@ */ -vec4 getRGBColor(uint color) { +lowp vec4 getRGBColor(uint color) { return vec4(((color >> 16u) & 0xFFu) / 255.0f, ((color >> 8u) & 0xFFu) / 255.0f, (color & 0xFFu) / 255.0f, 1.0f); } -vec4 getRGBAColor(uint color) { +lowp vec4 getRGBAColor(uint color) { return vec4(((color >> 24u) & 0xFFu) / 255.0f, ((color >> 16u) & 0xFFu) / 255.0f, ((color >> 8u) & 0xFFu) / 255.0f, (color & 0xFFu) / 255.0f); } diff --git a/src/main/resources/assets/minosoft/rendering/shader/includes/light.glsl b/src/main/resources/assets/minosoft/rendering/shader/includes/light.glsl index d4d270937..9d1b2dd05 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/includes/light.glsl +++ b/src/main/resources/assets/minosoft/rendering/shader/includes/light.glsl @@ -17,6 +17,6 @@ layout(std140) uniform uLightMapBuffer }; -vec4 getLight(uint light) { +lowp vec4 getLight(uint light) { return uLightMap[light]; } diff --git a/src/main/resources/assets/minosoft/rendering/shader/includes/texture.glsl b/src/main/resources/assets/minosoft/rendering/shader/includes/texture.glsl index 5acc32087..390026251 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/includes/texture.glsl +++ b/src/main/resources/assets/minosoft/rendering/shader/includes/texture.glsl @@ -22,7 +22,7 @@ uniform sampler2DArray uTextures[10]; // ToDo: Those methods are just stupid and workaround an opengl crash with mesa drivers -vec4 getTexture(uint textureId, vec3 uv, uint mipmapLevel) { +lowp vec4 getTexture(uint textureId, vec3 uv, uint mipmapLevel) { float lod = float(mipmapLevel); #ifdef UNIFORM_ARRAY_AS_ARRAY return textureLod(uTextures[textureId], uv, lod); @@ -43,11 +43,11 @@ vec4 getTexture(uint textureId, vec3 uv, uint mipmapLevel) { #endif } -vec4 getTexture(uint textureId, vec3 uv, int mipmapLevel) { +lowp vec4 getTexture(uint textureId, vec3 uv, int mipmapLevel) { return getTexture(textureId, uv, uint(mipmapLevel)); } -vec4 getTexture(uint textureId, vec3 uv) { +lowp vec4 getTexture(uint textureId, vec3 uv) { #ifdef FIXED_MIPMAP_LEVEL return getTexture(textureId, uv, FIXED_MIPMAP_LEVEL); #else diff --git a/src/main/resources/assets/minosoft/rendering/shader/includes/tint.glsl b/src/main/resources/assets/minosoft/rendering/shader/includes/tint.glsl index f12749143..24fc78bca 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/includes/tint.glsl +++ b/src/main/resources/assets/minosoft/rendering/shader/includes/tint.glsl @@ -15,11 +15,11 @@ #define INCLUDE_MINOSOFT_TINT #ifdef SHADER_TYPE_VERTEX -out vec4 finTintColor; +out lowp vec4 finTintColor; #endif #ifdef SHADER_TYPE_FRAGMENT -in vec4 finTintColor; +in lowp vec4 finTintColor; void applyTint() { diff --git a/src/main/resources/assets/minosoft/rendering/shader/includes/uv.glsl b/src/main/resources/assets/minosoft/rendering/shader/includes/uv.glsl index 345208cbc..745356065 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/includes/uv.glsl +++ b/src/main/resources/assets/minosoft/rendering/shader/includes/uv.glsl @@ -1,4 +1,4 @@ -const vec2 CONST_UV[4] = vec2[]( +const mediump vec2 CONST_UV[4] = vec2[]( vec2(+ 0.0f, + 0.0f), vec2(+ 0.0f, + 1.0f), vec2(+ 1.0f, + 1.0f), diff --git a/src/main/resources/assets/minosoft/rendering/shader/includes/vsh.glsl b/src/main/resources/assets/minosoft/rendering/shader/includes/vsh.glsl index 289ae6e28..e68d9bdef 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/includes/vsh.glsl +++ b/src/main/resources/assets/minosoft/rendering/shader/includes/vsh.glsl @@ -18,7 +18,7 @@ #define UV_UNPACK_BITS 12u #define UV_UNPACK_MASK ((1u << UV_UNPACK_BITS) - 1u) -vec2 uv_unpack(uint raw) { +mediump vec2 uv_unpack(uint raw) { float x = float((raw >> (1u * UV_UNPACK_BITS)) & UV_UNPACK_MASK) * (1.0f / float(UV_UNPACK_MASK)); float y = float((raw >> (0u * UV_UNPACK_BITS)) & UV_UNPACK_MASK) * (1.0f / float(UV_UNPACK_MASK)); diff --git a/src/main/resources/assets/minosoft/rendering/shader/particle/particle.fsh b/src/main/resources/assets/minosoft/rendering/shader/particle/particle.fsh index 8711e0ef8..deb5c9f36 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/particle/particle.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/particle/particle.fsh @@ -13,7 +13,7 @@ #version 330 core -out vec4 foutColor; +out lowp vec4 foutColor; #include "minosoft:tint" #include "minosoft:texture" diff --git a/src/main/resources/assets/minosoft/rendering/shader/skeletal/lightmap/lightmap.fsh b/src/main/resources/assets/minosoft/rendering/shader/skeletal/lightmap/lightmap.fsh index 1ea4f77b2..534117e96 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/skeletal/lightmap/lightmap.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/skeletal/lightmap/lightmap.fsh @@ -15,7 +15,7 @@ #define FOG -out vec4 foutColor; +out lowp vec4 foutColor; #include "minosoft:tint" #include "minosoft:texture" diff --git a/src/main/resources/assets/minosoft/rendering/shader/skeletal/normal/normal.fsh b/src/main/resources/assets/minosoft/rendering/shader/skeletal/normal/normal.fsh index 90882ac87..a3aa07e76 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/skeletal/normal/normal.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/skeletal/normal/normal.fsh @@ -15,7 +15,7 @@ #define FOG -out vec4 foutColor; +out lowp vec4 foutColor; #include "minosoft:tint" diff --git a/src/main/resources/assets/minosoft/rendering/shader/sky/clouds/clouds.fsh b/src/main/resources/assets/minosoft/rendering/shader/sky/clouds/clouds.fsh index 8e1ca2ea7..d98660266 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/sky/clouds/clouds.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/sky/clouds/clouds.fsh @@ -15,7 +15,7 @@ #define DISTANCE_MULTIPLIER 0.03f -out vec4 foutColor; +out lowp vec4 foutColor; uniform vec3 uCloudsColor; diff --git a/src/main/resources/assets/minosoft/rendering/shader/sky/planet/planet.fsh b/src/main/resources/assets/minosoft/rendering/shader/sky/planet/planet.fsh index 34786ac5a..4778fd667 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/sky/planet/planet.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/sky/planet/planet.fsh @@ -13,7 +13,7 @@ #version 330 core -out vec4 foutColor; +out lowp vec4 foutColor; uniform vec4 uTintColor; diff --git a/src/main/resources/assets/minosoft/rendering/shader/sky/scatter/sun/sun.fsh b/src/main/resources/assets/minosoft/rendering/shader/sky/scatter/sun/sun.fsh index 702f5031e..197aa7a48 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/sky/scatter/sun/sun.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/sky/scatter/sun/sun.fsh @@ -16,7 +16,7 @@ precision highp float; -out vec4 foutColor; +out lowp vec4 foutColor; in vec3 finFragmentPosition; diff --git a/src/main/resources/assets/minosoft/rendering/shader/sky/skybox/skybox.fsh b/src/main/resources/assets/minosoft/rendering/shader/sky/skybox/skybox.fsh index f6b7c59fc..5a7c60762 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/sky/skybox/skybox.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/sky/skybox/skybox.fsh @@ -13,7 +13,7 @@ #version 330 core -out vec4 foutColor; +out lowp vec4 foutColor; uniform vec4 uSkyColor; diff --git a/src/main/resources/assets/minosoft/rendering/shader/sky/skybox/texture/texture.fsh b/src/main/resources/assets/minosoft/rendering/shader/sky/skybox/texture/texture.fsh index 8d9e8b54c..2b228e04c 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/sky/skybox/texture/texture.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/sky/skybox/texture/texture.fsh @@ -13,7 +13,7 @@ #version 330 core -out vec4 foutColor; +out lowp vec4 foutColor; uniform vec4 uTintColor; diff --git a/src/main/resources/assets/minosoft/rendering/shader/weather/overlay/overlay.fsh b/src/main/resources/assets/minosoft/rendering/shader/weather/overlay/overlay.fsh index 120211a43..71d6c3a83 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/weather/overlay/overlay.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/weather/overlay/overlay.fsh @@ -13,7 +13,7 @@ #version 330 core -out vec4 foutColor; +out lowp vec4 foutColor; uniform float uIntensity; diff --git a/src/main/resources/assets/minosoft/rendering/shader/world/border/border.fsh b/src/main/resources/assets/minosoft/rendering/shader/world/border/border.fsh index 7be92adaa..d4e0c8005 100644 --- a/src/main/resources/assets/minosoft/rendering/shader/world/border/border.fsh +++ b/src/main/resources/assets/minosoft/rendering/shader/world/border/border.fsh @@ -13,7 +13,7 @@ #version 330 core -out vec4 foutColor; +out lowp vec4 foutColor; uniform vec4 uTintColor;