moved hypr scripts

This commit is contained in:
djaidjai committed 2026-10-02 02:06:46 +02:00
1 parent 37fb63549e
commit f338147907
22 files changed
+610 -5

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
#version 300 es
precision mediump float;
in vec2 v_texcoord;
uniform sampler2D tex;
out vec4 FragColor;
// Values obtained from: http://en.wikipedia.org/wiki/Grayscale#Luma_coding_in_video_systems
vec3 LumaFactors = vec3(0.299, 0.587, 0.114);
void main() {
vec4 c = texture(tex, v_texcoord);
// average brightness
float luma = dot(vec3(c.r, c.g, c.b), LumaFactors);
if (c.r < c.b) {
FragColor = vec4(luma, luma, c.b, c.a);
} else {
FragColor = vec4(c.r, luma, luma, c.a);
}
// FragColor = vec4(c.r, luma, c.b, c.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.