commit
0ebf28e52c
|
@ -4,9 +4,7 @@
|
||||||
void main() {
|
void main() {
|
||||||
vec2 texcoord = vec2(gl_TexCoord[0]);
|
vec2 texcoord = vec2(gl_TexCoord[0]);
|
||||||
vec4 color = texture2D(bgl_RenderedTexture, texcoord);
|
vec4 color = texture2D(bgl_RenderedTexture, texcoord);
|
||||||
|
|
||||||
float gs = (color.r + color.g + color.b) / 3;
|
|
||||||
float r = sin(texcoord.x * 6 - 1.5 + sin(texcoord.y - time / 3.0)) * 1.1; //(sin((texcoord.x - texcoord.y) * 4 - time) + 1) / 2;
|
float r = sin(texcoord.x * 6 - 1.5 + sin(texcoord.y - time / 3.0)) * 1.1; //(sin((texcoord.x - texcoord.y) * 4 - time) + 1) / 2;
|
||||||
|
|
||||||
gl_FragColor = vec4(gs, gs, max(gs, r), gl_Color.a);
|
gl_FragColor = vec4(gl_Color.r, gl_Color.g, max(gl_Color.b, r), gl_Color.a);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue