hecomi / UnityWaterSurface

Water Surface Simulation using CutomRenderTexture in Unity 2017.1
http://tips.hecomi.com/entry/2017/05/17/020037
249 stars 37 forks source link

Water dispersion #2

Open wyb969 opened 5 years ago

wyb969 commented 5 years ago

Hello, I have tried to use this project to present the interaction of ship and water . However , the interaction can't show the dispersion of water ( https://www.shadertoy.com/view/lt2XWy ). So, is the algorithm determined the result ? How to improve this.... Well, Thanks a lot . image

hecomi commented 5 years ago

Sorry for my late reply..., As you said, this is caused by the algorithm here: https://github.com/hecomi/UnityWaterSurface/blob/master/Assets/WaterSimulation.shader#L20-L36 If you want wave dispersion, please replace the above part of shader to calculate it correctly referring to the shadertoy code.