scripts reorganize
This commit is contained in:
14
scripts/hypr-shaders/rbinvert.frag
Normal file
14
scripts/hypr-shaders/rbinvert.frag
Normal file
@@ -0,0 +1,14 @@
|
||||
//modified version of [this shader](https://github.com/wessles/GLSL-CRT/blob/master/shader.frag)
|
||||
#version 300 es
|
||||
|
||||
precision mediump float;
|
||||
in vec2 v_texcoord;
|
||||
uniform sampler2D tex;
|
||||
out vec4 FragColor;
|
||||
|
||||
|
||||
// [0,1]
|
||||
void main() {
|
||||
vec4 cta = texture(tex, v_texcoord);
|
||||
FragColor = vec4(cta.z, cta.y, cta.x, cta.a);
|
||||
}
|
||||
Reference in New Issue
Block a user