Skip to content

Conversation

@yaRnMcDonuts
Copy link
Member

@yaRnMcDonuts yaRnMcDonuts commented Oct 10, 2020

Updated frag shader to support reading the AmbientOcclusion value from the Red channel of the packed MetallicRoughness map.
Adds a single boolean define that does this when set to true, so long as a metallic roughness map is also defined.

In response to this open issue:
#999

Updated frag shader to support reading the AmbientOcclusion value from the Red channel of the packed MetallicRoughness map. 
Added a single boolean define that does this when set to true, so long as a metallic roughness map is also defined.
Copy link
Member

@riccardobl riccardobl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you merge your other PR ( #1404 ) to this one?

@yaRnMcDonuts
Copy link
Member Author

I updated the name of the vec3 to aoRoughnessMetallicValue, and also switched the code to work how you suggested, so that the normal light map code is unaltered.

@yaRnMcDonuts
Copy link
Member Author

I could not find how to merge my other PR - but I managed to update this PR's branch to include the changes to PBRLighting.j3md that were in the closed pull request

@riccardobl riccardobl merged commit 2b84a7f into jMonkeyEngine:master Oct 10, 2020
@riccardobl
Copy link
Member

Perfect! Thank you.

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