Closer particles behind further .png textures

Hi folks,

I have a little issue, I have some meshes in a game which uses .png textures and have transparency - it is a fence. This fence far from the camera and when I create particles which closer to the camera they anyway shows behind this fence. Like the smoke on the screenshot, they upper the car but under the fence


What is wrong?

Hello I would recommend not to use opacityTexture for your fence because it force the system to do alpha blending which seems not to be required here.
Instead use a diffuseTexture with hasAlpha set to true. This way the system will just do alpha testing

If you really need alpha blending, then I suggest to set your mesh with mesh.material.needDepthPrePass = true

It helps, thanks!