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

GTAO pass not working with alpha maps and transparent background #28

Open
metaltwister opened this issue Jun 15, 2022 · 2 comments
Open
Labels
question Further information is requested

Comments

@metaltwister
Copy link

Hi.
Seems like the the GTAO pass does not process the alpha channel.
I noticed that the alpha map support is already mentioned in the "Future Work".
Can you please help with where to look to add alpha support?

@gkjohnson
Copy link
Owner

If you want to support partially transparent materials I recommend rendering the transparent objects after performing the AO pass. If you want to support alpha clip you'll need to add support to the shader variants in the pass.

@gkjohnson gkjohnson added the question Further information is requested label Jun 15, 2022
@metaltwister
Copy link
Author

Thanks for pointing towards it. I'm looking to add support for alpha clip in materials and also support the transparent html background. Right now the background is rendered as black and the html background color only appears when the rendering is disabled for TAA.
I tried turning the transparent boolean to true for all the 4 shader material variants in the pass. But seems it didn't work. I'll look into the GTAOshader.

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

No branches or pull requests

2 participants