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
RenderPassEvent.BeforeRenderingTransparents event. Alternatively, any custom effect can use the globally exposed
_UnderwaterMask render texture to mask their effects to only show above water. If this doesn’t appear to work correctly, pass this info onto the author.