WaterMaterial shadow

how can i use shadow to waterMaterial? Although I set mesh.receiveShadows=true, nothing works
this is pg https://www.babylonjs-playground.com/#1SLLOJ#2095

This question was asked before: Water material shadow - Questions - Babylon.js (babylonjs.com)

In short, the water material doesnโ€™t handle shadows.

1 Like

After posting that question I put together simple water shader which takes shadows. Demo here: Another water shader - #10 by kri100s

1 Like