I am learning shader this week and I am trying to make my sprite glowing.
However, when the sprite overlapped with each other, some of their parts go transparent (I don't know the word to describe it).
I am using the fragment method to add color to the untransparent part to make a glow effect.
My shader code is down below.
uniform vec4 glow_color : hint_color = vec4(1.0);
vec4 current_color = texture(TEXTURE,UV);
if(current_color.r > 0f)
COLOR = current_color + glow_color /2.0
COLOR = current_color
Does anyone know the name of the problem?
Thank you for your help :)