2024-02-04 23:39:37 +01:00
|
|
|
#version 430 core
|
|
|
|
in vec2 TexCoords;
|
|
|
|
in vec4 ParticleColor;
|
|
|
|
out vec4 FragColor;
|
|
|
|
|
|
|
|
uniform sampler2D sprite;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2024-02-08 08:44:24 +01:00
|
|
|
if(ParticleColor.w > 0){
|
|
|
|
FragColor = (texture(sprite, TexCoords) * ParticleColor);
|
|
|
|
}else{
|
|
|
|
FragColor = texture(sprite, TexCoords);
|
|
|
|
}
|
2024-02-04 23:39:37 +01:00
|
|
|
}
|