scripts reorganize

This commit is contained in:
djaidjai committed 2026-10-06 22:38:28 +02:00
1 parent 0734bee219
commit d6674ac55d
14 files changed
+2 -59

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
// 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) {
// average brightness
float luma = dot(vec3(color.r, color.g, color.b), LumaFactors);
if (color.r < color.b) {
color = vec4(luma, luma, color.b, color.a);
} else {
color = vec4(color.r, luma, luma, color.a);
}
// color = vec4(color.r, luma, color.b, 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.