docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Simulate currents with a water decal

    To add deformation, foam, or current effects to a water surface, use a water decal, which is a texture projected onto the surface.

    A water decal is a shader graph Master Stack. It's applied in world space, allowing it to project across the water surface and integrate with the entire environment, not just a single area.

    By default, water decal regions are anchored to the camera. You can also anchor them to a GameObject.

    Note

    For backward compatibility, water masks and current water decals are disabled by default.

    Create a water decal

    1. In the main menu, go to GameObject > Water > Water Decal.

      Unity adds a Water Decal GameObject to your scene.

    2. Move the Water Decal GameObject to the area of water you want to affect.

    3. To add deformation, foam, or current effects to the water decal shader graph, in the Inspector window of the Water Decal, go to Water Decal (Script), then select Edit in the Water Decal (Material) section.

    By default, the water decal shader graph Master Stack contains the following properties:

    • Deformation
    • SurfaceFoam
    • DeepFoam

    Once you have enabled water mask and current water decals, you can add the following water features through the Graph Inspector:

    • HorizontalDeformation.
    • SimulationMask
    • SimulationFoamMask
    • LargeCurrent
    • LargeCurrentInfluence
    • RipplesCurrent
    • RipplesCurrentInfluence
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)