Previously the water shader was separate and executed on a different mesh. This adds the water shader as a separate fragment function (ws30-water.frag) and uses a material parameter passed in as a Uniform to use it in preference to the usual texel lookup. Performance testing found a slight performance improvement from having a single mesh, but a slight performance impact from the extra fragment shader complexity.
564 KiB
512x512px
564 KiB
512x512px
![](/fly/fgdata/raw/commit/32e3a03946cf1a53b812cf5c6defbe5cd3b9b1f1/Textures/Water/waves-ver10-nm-ws30.png)