gedeng/Shader/particle_render.fs
karl c3796e7b55 Add basic Particle setup
Compiles, but doesn't work
2021-05-08 00:13:27 +02:00

15 lines
236 B
GLSL

#version 430
uniform sampler2D texture;
smooth in vec2 tex_coords;
flat in vec4 color_part;
out vec4 FragColor;
void main()
{
vec4 tex_color = texture2D(texture, tex_coords);
FragColor = vec4(tex_color.xyz, 1.0) * color_part;
}