clean the code and fix a bug with the seabed shader