Mojira Archive
MC-234030

Debug Markers colors not working

Hello,

 

The debug markers are really useful for developers to debug the game or even add new things to the game. Unfortunately since 1.17 the Blue and Red values of the color are no longer working.

 

What causes the issue?

The line:

 fragColor = color * ColorModulator;

in the original assets assets/minecraft/shaders/core/position_color.fsh file:

#version 150
in vec4 vertexColor;
uniform vec4 ColorModulator;
out vec4 fragColor;
void main() {
 vec4 color = vertexColor;
 if (color.a == 0.0) {
 discard;
 }
 fragColor = color * ColorModulator;
}

 Working fix (tested with a resourcepack), thanks to @DeltaEvo :

#version 150
in vec4 vertexColor;
uniform vec4 ColorModulator;
out vec4 fragColor;
void main() {
 vec4 color = vertexColor;
 if (color.a == 0.0) {
 discard;
 }
 if (ColorModulator == vec4(0.0f, 1.0f, 0.0f, 0.75f))
 fragColor = color;
 else
 fragColor = color * ColorModulator;
}

 

Please use the fixed version or similar in a future update!

Thank you,

Thomas

Awaiting Response

Thomas Marchand

2021-08-08, 06:05 PM

2024-07-26, 02:12 AM

2024-07-26, 02:12 AM

5

5

Community Consensus

(Unassigned)

1.17.1, 1.18 Pre-release 4, 1.18 Release Candidate 1

-