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

overwrite depth written by RenderWithNormalBuffer #59

Open
Milk-Drinker01 opened this issue Apr 25, 2024 · 0 comments
Open

overwrite depth written by RenderWithNormalBuffer #59

Milk-Drinker01 opened this issue Apr 25, 2024 · 0 comments

Comments

@Milk-Drinker01
Copy link

Hi! im trying to create a scope effect in HDRP that doesnt need 2 cameras to render. To do this, i am using the hd scene color node, which means i need to make sure the inside of the scope tube is not rendered over the scope image. i hoped to accomplish this in a similar way i did in URP; to not render the scope in the main pass, but rather use a custom pass to render the scope tube AFTER rendering the lens.

when i did this at first, the sight picture looked okay, but scene AO is being rendered over the scope model (which is on the transparentFX layer):
AO over scope

Sight Picture OKAY

So then i found this project, which allows me to write to the normals buffer with a custom pass. this is great, it fixed the issue where AO is rendered over the scope model! but then this happened with the hd color node from shadergraph:

no ao over scope

sight picture broken

Im hoping someone might know how i can achieve the effect i want. thanks in advance!

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

1 participant