lachlanmcdowall wrote:
DarkAngel wrote:
lachlanmcdowall wrote:
I'm using ADD_BLEND which produces the correct results when depth writing is off but obviously draws over everything so is less than ideal.
Can depth-writes be disabled just for the particles (and not for everything else)?
Yes but doing this obviously cause's particles behind objects to be rendered over everything as no depth testing is carrier out
No, it shouldn't - not if testing is still enabled but writes are disabled.
First the scene is rendered with depth writes and depth testing enabled.
Now we have a valid depth buffer for the scene.
Then particles are rendered with depth testing on (so they don't appear in front of objects), but depth writes are disabled, so that they don't modify the existing depth-buffer data (and occlude each other).