Check out this cool OSL ocean shader created by Autodesk’s Philippe Groarke.
A Senior Software Developer at Autodesk Philippe Groarke has created a cool new OSL shader called Simple Ocean. Simple Ocean is a Gerstner Wave implementation to simulate ocean vector displacement. It isn’t highly complex but should do the job when you need a quick and dirty ocean. The shader outputs a main Vector Displacement Map and multiple utility Maps, like Foam Maps, Above Sea Map, etc.
The shader is available for free at Groarke’s GitHub page.