fx: noblue windowshader

This commit is contained in:
2026-10-16 18:38:44 +02:00
parent 234f368196
commit 1b75c62b49

View File

@@ -5,10 +5,6 @@ void windowShader(inout vec4 color) {
// average brightness
float luma = dot(vec3(color.r, color.g, color.b), LumaFactors);
if (color.r < color.g) {
color = vec4(luma, c.g, luma, color.a);
} else {
color = vec4(color.r, luma, luma, color.a);
}
// color = vec4(color.r, color.g, luma, color.a);
float blend = smoothstep(0.0, 1.0, color.r - color.g);
color.rgb = mix(vec3(color.r, luma, luma), vec3(luma, color.g, luma), blend);
}