summaryrefslogtreecommitdiff
path: root/in_practice/breakout/shaders/particle.frag
blob: ef62554da051c12e5307fe998836bca8618ff9e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#version 330 core

in vert_t {
	vec2 tex_coords;
	vec4 color;
} vert;

out vec4 frag_color;

uniform sampler2D sprite;

void main()
{
	frag_color = texture(sprite, vert.tex_coords) * vert.color;
}