Skip to content

Conversation

@joliver82
Copy link
Contributor

@joliver82 joliver82 commented Apr 6, 2021

Transparent unshaded materials had an issue with SSAO (and potentially any other filter using the PreNormalPass). Fragments with alpha < alpha threshold were not discarded, so normals were rendered and used for SSAO calculations.

Details at hub post: https://hub.jmonkeyengine.org/t/fix-transparent-unshaded-materials-ssao/44482

EDIT: updated to fix PBRLighting also

@Ali-RS Ali-RS added this to the v3.4.0 milestone Apr 6, 2021
@stephengold
Copy link
Member

Ready for review?

@joliver82 joliver82 changed the title Unshaded PreNormalPass fix PreNormalPass fix for Unshaded and PBRLighting Apr 7, 2021
@joliver82
Copy link
Contributor Author

Yes, now it's ready for review

@Ali-RS
Copy link
Member

Ali-RS commented Apr 7, 2021

Thanks, @joliver82

@stephengold stephengold merged commit 9dd7dbc into jMonkeyEngine:master Apr 9, 2021
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

Successfully merging this pull request may close these issues.

3 participants