Skip to content

feat(scene): support whole-model transparency - #21

Open
dennisdevulder wants to merge 1 commit into
mainfrom
feat/model-transparency
Open

feat(scene): support whole-model transparency#21
dennisdevulder wants to merge 1 commit into
mainfrom
feat/model-transparency

Conversation

@dennisdevulder

Copy link
Copy Markdown
Owner

Port of upstream gpu commit a88ac64d5: fold Model.getTransparency() into each face's packed alpha via the stock faceTransparency blend, and force the sorted/alpha capture path when it is non-zero. Without this, models using the new whole-model fade render fully opaque.

Model transparency is per-renderable and mutable, so it stays out of the ModelFaceCache key.

Port of upstream gpu commit a88ac64d5: fold Model.getTransparency()
into each face's packed alpha via the stock faceTransparency blend,
and force the sorted/alpha capture path when it is non-zero. Without
this, models using the new whole-model fade render fully opaque.

Model transparency is per-renderable and mutable, so it stays out of
the ModelFaceCache key.
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.

1 participant