-
Bug
-
Resolution: Unresolved
-
None
-
1.17.1, 1.18 Pre-release 4, 1.18 Release Candidate 1
-
None
-
Community Consensus
-
(Unassigned)
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