SFML community forums

Help => Graphics => Topic started by: DrAdventure on September 11, 2018, 05:12:31 am

Title: Sf::RenderTexture issue
Post by: DrAdventure on September 11, 2018, 05:12:31 am
I am currently working on a particle system. And of course I am using  Additive blending to achieve a nice glowing particle effects, but the issue is the background colors is taken into the the blending equation which make the particles’ color entirely different. Also when I tried to draw the particles on a RenderTexture then on top of the window a new issue popped-out , a strange black haze surrounds the edge of the particles which makes them seems like a low-quality image ... Any suggestions?
Title: Re: Sf::RenderTexture issue
Post by: Hapax on September 12, 2018, 07:57:44 pm
Clear the render texture with a transparent colour:
renderTexture.clear(sf::Color::Transparent);