title: Rendering a particle effect with additive blending
body: <p>I'm trying to render particles with an additive blending effect and it's work good when the background is black</p>
  <p><a href="https://i.stack.imgur.com/X2ne8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/X2ne8.png" alt="enter image description here" /></a></p>
  <p>but if the background is white i got this and i understand why (color particle + white =&gt; white)</p>
  <p><a href="https://i.stack.imgur.com/RTkio.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RTkio.png" alt="enter image description here" /></a></p>
  <p>my pseudo code is</p>
  <pre><code>renderOtherObjects();
  glBlendFunc(GL_SRC_ALPHA, GL_ONE);
  renderParticles();
  glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
  </code></pre>
  <p>so my question is, is it possible to ignore the other elements for additive blending without using the &quot;render to a texture&quot; method ?</p>
  <p>Edit 1:</p>
  <p>If i try glBlendFunc(GL_ONE, GL_ONE); instead of glBlendFunc(GL_SRC_ALPHA, GL_ONE);</p>
  <p><a href="https://i.stack.imgur.com/8ayTR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8ayTR.png" alt="enter image description here" /></a></p>
  <p>Edit 2:</p>
  <p>I want this result:</p>
  <p><a href="https://i.stack.imgur.com/n55My.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n55My.png" alt="enter image description here" /></a></p>