diff options
author | vaxerski <[email protected]> | 2022-12-01 13:36:07 +0000 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-12-01 13:36:07 +0000 |
commit | 7b020ffa84e64d0734709b2489e1da5463689e61 (patch) | |
tree | 8d66b4951862fd67a1de828b7cfec75a6a2d6132 /example | |
parent | b8ccf3dc3a03352bccae4cd01dcdd5bc3438c49f (diff) | |
download | Hyprland-7b020ffa84e64d0734709b2489e1da5463689e61.tar.gz Hyprland-7b020ffa84e64d0734709b2489e1da5463689e61.zip |
Added screen shaders
Diffstat (limited to 'example')
-rw-r--r-- | example/screenShader.frag | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/example/screenShader.frag b/example/screenShader.frag new file mode 100644 index 00000000..5eeac17a --- /dev/null +++ b/example/screenShader.frag @@ -0,0 +1,16 @@ +// +// Example blue light filter shader. +// + +precision mediump float; +varying vec2 v_texcoord; +uniform sampler2D tex; + +void main() { + + vec4 pixColor = texture2D(tex, v_texcoord); + + pixColor[2] *= 0.8; + + gl_FragColor = pixColor; +} |