From 524f2f2f4b8aa1dd2ba5f6ff4b1e506b5eb88531 Mon Sep 17 00:00:00 2001 From: Fabian Brendli Date: Fri, 1 Mar 2024 00:12:54 +0100 Subject: [PATCH] :bug: Fix text color shaders for versions 24w05a and above --- assets/minecraft/shaders/core/rendertype_text.fsh | 3 +-- assets/minecraft/shaders/core/rendertype_text_intensity.fsh | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/assets/minecraft/shaders/core/rendertype_text.fsh b/assets/minecraft/shaders/core/rendertype_text.fsh index 43abba93..2cf09c16 100644 --- a/assets/minecraft/shaders/core/rendertype_text.fsh +++ b/assets/minecraft/shaders/core/rendertype_text.fsh @@ -21,8 +21,7 @@ void main() { discard; } - if (vertexDistance > 800.0 - && color.r > 0.2479 && color.r < 0.2481 + if (color.r > 0.2479 && color.r < 0.2481 && color.g > 0.2479 && color.g < 0.2481 && color.b > 0.2479 && color.b < 0.2481) { color = vec4(0.6667, 0.6667, 0.6667, 1.0); diff --git a/assets/minecraft/shaders/core/rendertype_text_intensity.fsh b/assets/minecraft/shaders/core/rendertype_text_intensity.fsh index bb84e2e3..f002da17 100644 --- a/assets/minecraft/shaders/core/rendertype_text_intensity.fsh +++ b/assets/minecraft/shaders/core/rendertype_text_intensity.fsh @@ -21,8 +21,7 @@ void main() { discard; } - if (vertexDistance > 800.0 - && color.r > 0.2479 && color.r < 0.2481 + if (color.r > 0.2479 && color.r < 0.2481 && color.g > 0.2479 && color.g < 0.2481 && color.b > 0.2479 && color.b < 0.2481) { color = vec4(0.6667, 0.6667, 0.6667, 1.0);