I wrote a tutorial on gerstner waves ocean shader for realistic ocean rendering. This shader has very well defined gerstner wave function, and a fragment shader to make the overall water effect look nice.
I hope you’ll like it & looking for your feedback on the work!