Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Unity ShaderGraph: Creating Opacity Hole for Objects Inside Cloud - URP

Discussion in 'Shaders' started by naderlabbad309, Dec 4, 2023.

  1. naderlabbad309

    naderlabbad309

    Joined:
    Feb 11, 2018
    Posts:
    32
    "Hello, I'm currently working with Unity version 2022.3.11f1 and utilizing Shader Graph. In my project, I have implemented a cloud, as visible in the attached photo. My goal is to enhance the visual effect by incorporating an offset opacity when the cloud interacts with walls and other objects. Specifically, I aim to achieve a fog-of-war effect where the opacity adjusts dynamically based on the presence of objects within the fog. I've attempted to implement this, as illustrated in another photo, but encountered challenges, and the desired effect hasn't been realized. Can you provide assistance or guidance on how to achieve this? Your help is greatly appreciated."
     

    Attached Files: