Set the particle transparency layer higher than the node material.s

I need help!
I want to set the particle layer hierarchy higher than the node material of the ground, and ensure that particles emitted by the sphere do not extend beyond the box model when viewed from the side.

PG: Babylon.js Playground

I think your PG doesn’t work as expected. I get these messages in the console log:

help look this
PG:

When viewed from the side, the particles are inside the box for me:


From this perspective, the particle layer should logically have a higher priority than the node material layer. However, the particles are being overridden by the node material applied to the water surface. How should I configure the settings to ensure they display correctly?

I think what you want is to set renderingGroupId to 1 for the particle system, and disable the clearing of the depth buffer for group 1 (see lines 169-171) so that the particle system is correctly clipped by the box when necessary:

2 Likes