Water Shader - Unity
In Editor
- Normal mapping: It uses a normal map to create a wavy, distorted look.
- Refraction: The shader simulates light bending through water by slightly offsetting the texture sampling based on the normal map.
- Depth-based fog: It calculates the scene depth and applies a fog effect that increases with distance.
- Color tinting: The shader blends the original scene color with an underwater color based on the fog density.
- Render pass: The script creates a render pass that applies the underwater effect after the skybox is rendered.
Leave a comment
Log in with itch.io to leave a comment.