Possible to make Water Material Color transparent?

I just want to get refraction from the waves without the color of water material.
Here i tried to set alpha but could not figure it out:

https://playground.babylonjs.com/#1SLLOJ#1495

You may find the code in the demo at the main page of https://babylonpress.org/
(Press “Add Water” button).

It still has whitish color. What i’d like to achive is like distortion effect only. Example here: LiquidDistortion.
Maybe i should try some other method other than water material.

Welcome aboard!

You will need to update the water shader code to remove the reflection contribution from the effect:

https://playground.babylonjs.com/#1SLLOJ#1496

See line 166

2 Likes