Fix fade test shader

This commit is contained in:
James Seibel
2026-02-24 22:03:43 -06:00
parent d1ba402f4d
commit 9f483ee07a
@@ -11,14 +11,14 @@ uniform sampler2D uDhDepthTexture;
void main()
{
float dhFragmentDepth = texture(uDhDepthTexture, TexCoord).r;
if (dhFragmentDepth == 0)
if (dhFragmentDepth == 1)
{
// no MC depth
fragColor = fColor;
fragColor = fColor;
}
else
{
// MC depth drawn
fragColor = vec4(0, 0, 1, 1); // green
fragColor = vec4(1, 1, 1, 1); // white
}
}