Depth Fade for walls but not floors?

Hello hello

I am trying to do an horizontal particle ( lock axis Z ) that would fade normally while intersecting with a wall, but since it would need to be near the floor, I’d like it to disregard the depth fade for the horizontal axis ( the floor is flat everywhere, so it’s not a big problem )

Is this something that’s possible to do within the material?

Thank you very much !


You can likely do something like this by reconstructing the WS position of the scene depth location using the SceneDepth expression and the camera vector etc.
Then you’ll have the WS offset from the pixel position and the position a depth fade would use.
You can then manually fade taking into account only the x and y components.