Underwater Rendering for Stylized Water 2 (Extension)

Underwater Rendering for Stylized Water 2 (Extension)

Updated
2024-05-17
Premium
Vfx
File Version
1.2.5
File size
2.3 MB
Only Premium, VIP or Exclusive Users
Description

Extends the Stylized Water 2 shader asset with underwater rendering, by seamlessly blending the water with post processing effects.

📌 REQUIRES THE STYLIZED WATER 2 (v1.5.2+) ASSET TO BE INSTALLED!

Before purchasing, you must acknowledge this (see section above)

 

This version is developed for Unity 2021 through 2023.2

 

Draws a waterline lens effect for partially submerged camera's, through an innovative technique. Unlike in many games, it won't be required to snap the camera to sit either above or below the water, or resort to other tricks.

 

Compatible with the Dynamic Effects extension. Effects such as ripples and shoreline waves also affect the camera's water line.

 

🌊 Features:

• Underwater fog based on the water's deep/shallow colors. Option to use volumes to blend settings.

• Waterline rendering for partially submerged cameras (supports split screen)

• Scene lighting is translated into the underwater fog, including sub-surface scattering. Reacts to dynamic directional and ambient lighting.

• Caustics rendering on geometry. Directional projection option.

• Blurring and distortion

• Underside of the water is correctly shaded, to seamlessly match.

• Includes sub-graphs to add underwater fog support for transparent Shader Graphs (+ASE)

• Scalable performance, features can be limited on the render feature

• Component to switch between different water bodies based on Box Colliders.

• VR Rendering support

 

🚧 Limitations:

• Not suitable for mobile hardware

• Designed for oceans, lakes and ponds. Dioramas or aquariums aren't possible.

• Can't mask underwater (eg. submarine windows)

• Not a volumetric fog/light solution, but rather depth-based.

• Requires a single water level (incompatible with rivers/planets)

 

Technical details

  • Imports directly into the StylizedWater2 folder (wherever it is located)
  • Executes before transparent materials, so they will not appear to be affected by fog. Includes a subgraph for getting the water density and underwater mask, this can be used to fade out a custom transparent material into the water fog.
  • Third party fog effects will still apply to the underwater environment. As long as the underwater fog is denser, this won't be noticeable.
  • Looks best when reflections and refractions are enabled on the water material
  • Performance and feature limiting options are exposed on the render feature, so can be used for multiple quality levels
  • Using the combination of HDR, Tonemapping and the Gamma color-space will not guarantee the underwater fog matches the water perfectly (Linear color-space should be used).
  • Waterline will always render when the camera goes below the water level. The static UnderwaterRenderer.EnableRendering boolean should be disabled in your game logic to handle such cases. Or by using the "Underwater Trigger" component.
  • Fog needs geometry to work with, an empty scene/void underneath the water naturally results in a single-color fog appearance.

Comments
Comments is not yet
Add Comment
Please register
Other interesting assets