fx: noblue windowshader

This commit is contained in:
djaidjai committed 2026-10-16 18:38:44 +02:00
1 parent 234f368196
commit 1b75c62b49
1 file changed
+2 -6
+2 -6
View File
@@ -5,10 +5,6 @@ void windowShader(inout vec4 color) {
// average brightness // average brightness
float luma = dot(vec3(color.r, color.g, color.b), LumaFactors); float luma = dot(vec3(color.r, color.g, color.b), LumaFactors);
if (color.r < color.g) { float blend = smoothstep(0.0, 1.0, color.r - color.g);
color = vec4(luma, c.g, luma, color.a); color.rgb = mix(vec3(color.r, luma, luma), vec3(luma, color.g, luma), blend);
} else {
color = vec4(color.r, luma, luma, color.a);
}
// color = vec4(color.r, color.g, luma, color.a);
} }
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.