Gerstner Waves

For anyone who wants a gerstner waves material function, here it is. If any improvements could be made, please let me know.