First step to refactor water to: a) make it more clean, b) add MSAA without additional resolving cost (D2812), c) enhance visuality.
Patch shouldn't change visuality at the moment.
A separate function doesn't affect performance since shader compiler does inlining.