[3.2] Workaround for alpha scissoring with opaque pre-pass in SpatialMaterial #45288
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 implements a workaround for broken alpha scissoring with opaque pre-pass in 3.2.
Video:
https://user-images.githubusercontent.com/55308941/104935573-af48de00-59ab-11eb-8308-e909c4e7deea.mp4
with workaround:
https://user-images.githubusercontent.com/55308941/104942616-fab3ba00-59b4-11eb-937e-325d82ce2d6d.mp4
This doesn't fix the real issue, because alpha scissoring will still be broken if used with
ALPHA_SCISSOR=alpha_scissor_threshold;
, but this will be reimplemented in 4.0, so I think this workaround is good enough for now.(workaround by AsherGlick and Arnklit here: #36669)
MRP: alpha_scissor_workaround.zip