"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."

Unity ShaderGraph: Creating Opacity Hole for Objects Inside Cloud - URP
156 Views Asked by NADER LABBAD At
1
There are 1 best solutions below
Related Questions in UNITY-GAME-ENGINE
- How to use invokerepeating and make ui text fade in/out over time?
- Player input not working properly in unity
- Get block in Mesh Unity
- Does Unity render invisible material?
- Physics.OverlapSphere couldn't detect my ‘Player’
- Cannot sync non-player objects in Unity mirror
- How to script a simple collision using hands in OVRCameraRigInteraction?
- Drawing on 3D object at Unity
- How to Override Spline Rotation for Player-Controlled Car in Racing Game?
- Why doesn't my enemy shield take damage first. Instead both enemy and shield are being destroyed together
- unity + Vuforia balck screen in android AR app
- how do I change an objects tag when the game closes
- How to remove white space in a user's input through an input field in Unity?
- Timeline doesn't start eventhough it recognises the trigger input
- Ragdoll 2D Aiming
Related Questions in URP
- How to fix an URP Error in Unity3D after cloning it from github?
- URP Lit material has a slightly white Background
- Models using Unity URP shader and transparency are overlapping themselves
- Ceating a VR Portal in quest passthrough not working in build for specific unity version (2022.3.9)
- Unity builds: lag spikes in playmode and builds
- Using Stencil Shader to mask object, regardless of being occluded by mask in Unity URP
- Unity Texture2D.ReadPixels not reading correctly from rendertexture
- Toon Shader Materials Appear Pink in Unity
- Convert custom shader to URP in Unity
- Unity ShaderGraph: Creating Opacity Hole for Objects Inside Cloud - URP
- Unity URP custom line shader rendering flickering/artifacts, especially at high angle and distance
- How to disable depth clearing in Unity URP?
- Is there a way to make the effect of camera clear flags on render texture in URP Unity
- Unity URP 2D Renderer replaces UI textures with black render textures on linux
- How to refrence a URP Bloom effects intensity value in script in Unity2D
Related Questions in SHADER-GRAPH
- Scrolling Texture bug on Android
- How to apply a different texture to the Back face of the material in Reality Composer Pro?
- How to access value of time node in a shader created by Reality Composer Pro?
- Unity: trying to set a global shader property using .SetGlobalFloat
- Projecting a 2d noise texture to a 3d sphere in Shader Graph (Unity)
- Unity ShaderGraph Temporal Blur
- Unity ShaderGraph: Creating Opacity Hole for Objects Inside Cloud - URP
- How do you acces the lighting data for the scene in unity shader graph?
- Unity URP custom line shader rendering flickering/artifacts, especially at high angle and distance
- Unity Shader Graph - Water shader - Tiling problem
- Gradient from white to transparent instead shows as white to black
- So I made a curve shader in unity shadergraph
- converting ShaderGraph ScreenPosition-Raw & SceneDepth node to Fragment shader code
- Foam from the water on the shore does not work correctly
- Normal map rendering is broken , in Renderer2D using Light2D and shader graph with normal map
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?


The thing, on the top of my head, is to bake your level into a texture. For example mark walls with white and no-walls with black color with a little gradient between. And sample a color from this texture with world position(not actually world position, but a value calculated based on it to map world position to the texture coords) instead of regular UV. So, when you sample a color you can add opacity depends on what color you've sampled.
You also can have a fog-of-war texture, that will work just like the texture, I've described above. But it will being modified in runtime, based on properties of objects, which can give a vision inside a fog-of-war.