aboutsummaryrefslogtreecommitdiff
path: root/bin/font.shader
blob: 7b714db2de26ac05cf04197960c8cc8d09b9c22e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#VERTEX_SHADER

Vertex vert(Vertex v)
{
    return v;
}

#END_VERTEX_SHADER

#FRAGMENT_SHADER

uniform float dt;

Color frag(Color col, Texture tex, Vertex v)
{
    Color c = texel(tex, v.uv); 
	c.r *= sin(dt);
	c.g *= sin(dt / 3); 
	c.a *= sin(dt / 2);
	return c;
}
//1.21 1.34

 asdas
//stbi_write_png
#END_FRAGMENT_SHADER