16 lines
373 B
GLSL
16 lines
373 B
GLSL
|
#ifdef GL_ES
|
||
|
precision mediump float;
|
||
|
#endif
|
||
|
|
||
|
uniform vec2 u_resolution;
|
||
|
uniform vec2 u_mouse;
|
||
|
uniform float u_time;
|
||
|
|
||
|
void main() {
|
||
|
// make a vector that puts all x and y values between 0.0 - 1.0 so we can use it as a color
|
||
|
vec2 st = gl_FragCoord.xy/u_resolution;
|
||
|
// use time to change the blue hue of the screen
|
||
|
gl_FragColor = vec4(st.x,st.y,abs(sin(u_time)),1.0);
|
||
|
}
|
||
|
|