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
Comments 4
We do not have enough information to reproduce this issue.
Please include the following information to help us understand your problem:
Steps to Reproduce:
1. (Explain what needs to be done for the issue to happen)
2.
3.Observed Results:
(Briefly describe what happens)Expected Results:
(Briefly describe what should happen)
Please also attach any needed commands, datapacks, resourcepacks, screenshots, videos, or worlds needed to help reproduce this issue.
Refer to the Bug Tracker Guidelines for more information about how to write helpful bug reports. Bug reports with insufficient information may be closed as Incomplete.
This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Still not working on 1.18 pre-release 4... 😔