-
I read the section of "Physically Based Rendering in Filament" on transparency and translucency, but I could use more information on how to handle it as a practical matter. If i want to render a number of geometry parts, some of which are translucent surfaces, do I need to worry about handing them to Filament in back to front order, or does Filament do some magic to make that unnecessary? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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 |
Beta Was this translation helpful? Give feedback.
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