Skip to content

Is depth sorting needed for transparency? #3369

Answered by romainguy
jwwalker asked this question in Q&A
Discussion options

You must be logged in to vote

Filament will sort renderables back to front, make sure you provide the proper bounding boxes for this to work well though. Note that overlapping transparent objects won't necessarily render in the order you expect. You can play with priorities or use the advanced transparency modes we provide like twoPassesTwoSides for instance: https://google.github.io/filament/Materials.html#materialdefinitions/materialblock/blendingandtransparency:transparency

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jwwalker
Comment options

@romainguy
Comment options

Answer selected by jwwalker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants