Soft Particles and Alpha Blending

Started by
4 comments, last by Medo Mex 9 years, 5 months ago

Hi guys,

The soft particles is only working correctly with non-transparent meshes.

How do I make the soft particles work with alpha blending (transparent meshes)?

Advertisement

Not much info to go on here.

Soft particles do a compare against the depth value which controls a fade-to-transparent as they get close to intersecting.

If your transparent meshes were to write to the depth buffer that the soft particles are comparing against, then it'd probably work. Note that the depth buffer the transparent meshes need to write to may or may not be your main scene z-buffer. It may be part of a G-buffer or something.

Can you provide more information as to what exactly isn't working correctly with your transparent meshes?

@MJP: Since the transparent meshes are not writing to the Z buffer, the particles are not soft when intersecting with transparent mesh.


@MJP: Since the transparent meshes are not writing to the Z buffer, the particles are not soft when intersecting with transparent mesh.

So then have them write to the z buffer.

@phil_t: I'm using the same shader, though the particles are not soft with transparent meshes

This topic is closed to new replies.

Advertisement