16 lines
303 B
GLSL
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;
|
|
|
|
} |