Stylized Water 2 - Underwater Rendering (Extension)
5.Usage with fog effects
Third-party fog effects (such as Enviro or Azure) have no way to tell which part of the environment is above, or underwater. So their effects will also apply to the underwater environment.
As long as the underwater fog is denser, this will be hardly noticeable, it’ll simply render on top of it all.
Third party effects should execute on the
Alternatively, any custom effect can use the globally exposed
_UnderwaterMask render texture to mask their effects to only show above water. See this code snippet for an example.