summaryrefslogtreecommitdiff
path: root/debug/shader.frag
blob: fd25c5f8df35350881b720c3706154409ceaa9d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#version 330 core

in vec2 pos;

out vec4 frag_color;

uniform float time;

void main()
{
	frag_color = vec4(sin(2.0 * time) * pos.x + 0.5, cos(2.0 * time) * pos.y + 0.5, 0.5, 1.0);
}