scripts reorganize

This commit is contained in:
2026-10-06 22:38:28 +02:00
parent 0734bee219
commit d6674ac55d
14 changed files with 2 additions and 59 deletions

View File

@@ -0,0 +1,9 @@
// Values obtained from: http://en.wikipedia.org/wiki/Grayscale#Luma_coding_in_video_systems
vec3 LumaFactors = vec3(0.299, 0.587, 0.114);
void windowShader(inout vec4 color) {
// Desaturate to luma only
float luma = dot(vec3(color.r, color.g, color.b), LumaFactors);
color.rgb = vec3(luma, luma, luma);
}