Fluid cannot be rendered when using right hand system

Hello, it seems that fluid cannot be rendered when scene.useRightHandedSystem is set to true. Fluid just dispeared after the scene is switched to right hand system. I think the problem is that particle depth and fluid normal are not right.

I tried to fix the problem by inverting z axis in shaders, which does make fluid apear again. But I am not sure about rendering result is correct or not, because I do not fully understand the rendering algorithm.

Hope you guys could fix this bug, thanks a lot!

Let me have a look!

2 Likes

Here’s the PR:

2 Likes