Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about the wetness effect #45

Open
DieZone19 opened this issue Nov 19, 2022 · 1 comment
Open

Questions about the wetness effect #45

DieZone19 opened this issue Nov 19, 2022 · 1 comment

Comments

@DieZone19
Copy link

Hi, the screen space wetness looks very good.
I would have a question.
Can you delete your wet in an area?
So like in the photo with the snow.
2022-11-19 04_25_23-Start

@alelievr
Copy link
Owner

So, right now this is not possible because it's a screen-space effect. Though with more work you could set up a volume system (like in your picture) that you pass to the shader to fade the effect.
You'd need to convert the list of volumes to a list of OBB with a fading radius and upload it with a GraphicsBuffer. Then in the shader, you can simply iterate over all the volumes to find the minimum fading value to apply at a certain position in world space.

An alternative solution to locally apply wetness like that is to use a decal shader graph: https://docs.unity3d.com/Packages/[email protected]/manual/master-stack-hdrp.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants