Space-Project/shaders/shader_particle.frag

14 lines
169 B
GLSL
Raw Permalink Normal View History

2021-02-01 00:26:43 +01:00
#version 330 core
in vec2 UV;
in vec4 ParticleColor;
out vec4 color;
uniform sampler2D sprite;
void main()
{
color = texture( sprite, UV ) * ParticleColor;
}