I couldn’t see any way to alpha mask the water material. I know there’s an alpha property but is there any way to add an alpha mask?
I’m afraid the water material itself can’t easily be extended, so you will either need to take the source code of this material as a basis for your own custom water material or use external means to achieve what you want (maybe by putting another mesh in front of the water plane and apply your alpha mask to this mesh instead - I think it’s what you are aiming for in Mask material for photodome).
I solved it, at least for my use case … https://www.babylonjs-playground.com/#14KRGG#200
1 Like