[Free] Simple water package with reflection and edge foam

Unity has some very good standard water, which is probably why you don’t see so many water packages around. However, the standard water is very complex and as such is very difficult to modify. I wanted a more cartoony look, so I made this.

Download link

The edge foam is based on screen depth texture, and thus dependent on viewing angle, so it won’t work in every scene. If you know a better way to render the foam I’d be glad to hear it.

3 Likes

Oh, I almost forgot. If you don’t see foam at all your camera may not be generating a depth texture. Just put the following script on it.

using UnityEngine;
class EnableDepthTexture : MonoBehaviour
{
        void Start()
        {
            GetComponent<Camera>().depthTextureMode = DepthTextureMode.Depth;
        }
}