I've decided to share my work with you, check the blog post above!
- Designed for DirectX11 tesselation (flat version for DX9);
- Opacity with dynamic shadows on ocean surface (can be used with dynamic lighting and has bug-free DOF);
- Subsurface scattering (SSS) simulation;
- All the data is generated from one 256x256x32b normal map.
There are a lot of different approaches for ocean simulation in games. This shader is just only one of them. Hope you'll find it useful, and you're free to use it as you want.