fx: hypr shader
This commit is contained in:
1 parent
6d5be43198
commit
d40b957107
2 files changed
-12
No files matched your search
@@ -8,12 +8,6 @@ out vec4 FragColor;
|
|||||||
|
|
||||||
const float scaleFactor = 0.7;
|
const float scaleFactor = 0.7;
|
||||||
|
|
||||||
float clamp(float x, float min, float max) {
|
|
||||||
if (x > max) return max;
|
|
||||||
if (x < min) return min;
|
|
||||||
return x;
|
|
||||||
}
|
|
||||||
|
|
||||||
// [0,1]
|
// [0,1]
|
||||||
void main() {
|
void main() {
|
||||||
vec4 cta = texture(tex, v_texcoord);
|
vec4 cta = texture(tex, v_texcoord);
|
||||||
|
|||||||
@@ -1,12 +1,6 @@
|
|||||||
//modified version of [this shader](https://github.com/wessles/GLSL-CRT/blob/master/shader.frag)
|
//modified version of [this shader](https://github.com/wessles/GLSL-CRT/blob/master/shader.frag)
|
||||||
const float scaleFactor = 0.7;
|
const float scaleFactor = 0.7;
|
||||||
|
|
||||||
float clamp(float x, float min, float max) {
|
|
||||||
if (x > max) return max;
|
|
||||||
if (x < min) return min;
|
|
||||||
return x;
|
|
||||||
}
|
|
||||||
|
|
||||||
void windowShader(inout vec4 color) {
|
void windowShader(inout vec4 color) {
|
||||||
// color += vec4(cos(x_TexCoord.x)/4., sin(x_TexCoord.y)/4., 0., 1.);
|
// color += vec4(cos(x_TexCoord.x)/4., sin(x_TexCoord.y)/4., 0., 1.);
|
||||||
color += vec4(cos(v_texcoord.x)/4., cos(v_texcoord.y)/8., sin(v_texcoord.y)/4., 1.);
|
color += vec4(cos(v_texcoord.x)/4., cos(v_texcoord.y)/8., sin(v_texcoord.y)/4., 1.);
|
||||||
|
|||||||