With help from @Evgeni_Popov and @Pryme8, I’ve ported a simple stylized water shader from Unity (https://www.reddit.com/r/Unity3D/comments/f6bh50/making_stylized_water_with_shader_graph/) into bjs. This is useful when you need a fuss-free non-MC environment asset.
- wNoiseScale and wNoiseOffset - control water refraction
- fNoiseScale - controls foam
- maxDepth - set max depth of your water mesh
- wDeepColor and wShallowColor - set the water colors for shallow and deep
I’ve added in some gizmos in the PG so you can play around with the spheres and water.
In the spirit of opensource, do what you will with it. It served my needs as a base and there’s a lot more that can be done/customized for your own needs. Feel free to experiment.
Enjoy, cheers !