Skip to content

Commit

Permalink
🐛 Fix text color shaders for versions 24w05a and above
Browse files Browse the repository at this point in the history
  • Loading branch information
nebuIr committed Feb 29, 2024
1 parent 4d4b24d commit 524f2f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions assets/minecraft/shaders/core/rendertype_text.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions assets/minecraft/shaders/core/rendertype_text_intensity.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 524f2f2

Please sign in to comment.