Files
shaders/learning/shapes/main.frag
2024-04-27 17:36:26 +02:00

22 lines
400 B
GLSL

#ifdef GL_ES
precision mediump float;
#endif
uniform vec2 u_resolution;
uniform vec2 u_mouse;
uniform float u_time;
varying vec2 v_texcoord;
void main(void) {
vec4 color = vec4(vec3(0.0), 1.0);
vec2 pixel = 1.0/u_resolution.xy;
vec2 st = gl_FragCoord.xy * pixel;
vec2 uv = v_texcoord;
color.rgb = vec3(st.x,st.y,abs(sin(u_time)));
gl_FragColor = color;
}