GRK-Projekt/grafika_projekt/shaders/particles.frag
2022-01-24 18:07:31 +01:00

16 lines
303 B
GLSL

#version 330 core
// Interpolated values from the vertex shaders
in vec2 UV;
in vec4 particlecolor;
// Ouput data
out vec4 color;
uniform sampler2D myTextureSampler;
void main(){
// Output color = color of the texture at the specified UV
color = texture( myTextureSampler, UV ) * particlecolor;
}