Unexpected HightlightLayer effect when using fluid rendering


I was trying to use HightlightLayer and FluidRenderer together, but I got some unexpected effect: the background becomes all back, and the highlighted mesh does not have the same effect when FluidRenderer is disabled.

Here are the playgrounds when FluidRenderer is enabled and disabled. The Highlight effect in latter playground is what I expected.

As you can see, two playgrounds give totally different effect. I am not sure it’s a bug or maybe I misunderstood the usage of HighlightLayer?

Looking forward to your reply. Thank you.

cc @Evgeni_Popov

1 Like

This PR will fix the bug:

Note however that the cube (and the highlight) will still be deformed by the fluid because it is behind the fountain:


Thank you! This is exactly what I want.

This effect looks so cool :smiley: