Multiplanar ZM#5387
Draft
Lohikar wants to merge 7 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This generally reworks how ZM renders: depths now consist of multiple render slices, which are summed into 'zsum' objeccts for purposes of alpha masking. Adding new render slices is significantly easier than it used to be, and it is now possible to support things like darksight/ghostsight, emissives, and planar lighting effects in ZM. MZ checks have also generally been standardized around the ZM helpers instead of bespoke (slightly different) logic in a few places.
changes:
The way the plane master objects are being initialized here is not necessarily ideal -- it's largely a result of O7 just not really having a graceful way to do this. While I do want to keep the mimic master code as close as possible to the O7 version of it, I'm open to better approaches than CreatePlanesFor().
This PR is incomplete (but fully functional), further optimizations to shadowers are being tested.