Glowing Fluid Rendering

Hello Babylon Community.
I really appreciate the feature of the fluid rendering and that demo:

My question is there anyway of adding the glow effect to the liquid.
Thank you!

Hello :slight_smile:

In this topic, @roland explains a solution to enable glow on particles using custom PP … Maybe you should have a look :stuck_out_tongue:

Thank you for the response, don’t think it’s applicable for liquid.
Asking the creator of liquid @Evgeni_Popov?

Unfortunately, it is not supported. As the fluid renderer is a completely separate component from the rest of the engine, the glow layer cannot be used with it. The best you can do is try to update the fluid renderer shader, something like :

I’ve added line 763.

1 Like

Awesome!

@Evgeni_Popov one more question. Would it be possible to add any kind of texture or different colors to show a slime-like substance?

Wanted to also add more colors, like blue and not only greens.

I can’t see how to add a texture, because we need texture coordinates and I don’t see how we could generate such coordinates for a fluid…

Regarding the colors, you can try to use the thickness to apply a color gradient:

3 Likes

That’s what I was looking for. I can’t express enough, how helpful and fast your support!
Please have a great day.