Stylized Water 2
Initial project set up
Before using the shader, ensure your project is in fact using the Universal Render Pipeline. Go to Edit->Project Settings->Graphics to check if a pipeline asset has been assigned (name may differ)
If this is not the case, materials will be pink, please refer to the URP documentation for setup instructions.
Note: the choice of render pipeline should be a well-informed decision early in a project. Switching to URP mid-production means other custom shaders may fail to work. Realistically, you should already be using URP before buying/using this asset.
Universal Render Pipeline setup
Double-click the pipeline asset and verify these options are enabled
Should these options not be enabled, yet the shader is using features that require either one of them, a warning and quick-fix button will be displayed in the material UI:
Note that each individual camera can override these settings. If the effects aren’t visible in a specific scene, or for a specific camera. Verify that the options aren’t set to “Off”
If you’re using different pipeline settings, per quality level. Ensure these options are also enabled on them. Otherwise you may notice some water effects not working when building the project, and running the game on a lower quality scale.
Adding water to your scene
It’s best to consider the included materials examples and starting points.
- Drag one of the prefabs found under Assets/StylizedWater2/Prefabs into your scene.
- Adjust the material properties to your liking.
- Go to the GameObject->3D Object->Water->Object menu option. A new Mesh Renderer will be created in view.
- Create a plane mesh in the scene
- Create and assign a new material to your water mesh and assign the shader found under StylizedWater2/Default.
- Add a Water Object component to your mesh through Add Component->Stylized Water 2->Water Object. This is only necessary if you wish to use Planar Reflections, though this has no negative impact otherwise!