SiebenCorgie / jakar-engine

Formerly "Ori-Engine" is an hobby project of mine. Target is an Rust/Vulkan engine for games and visualization software.
MIT License
19 stars 0 forks source link

Don't order all meshes in the view frustum, but only the transparent ones #20

Closed SiebenCorgie closed 6 years ago

SiebenCorgie commented 7 years ago

Coming with the next push, the engine will sort every mesh based on the distance to the player, then the farthest objects will be rendered first to get a correct blending behaviour for the transparent objects. However, this is not optimal.

I'll have to integrate flags for meshes based on their material, then only sort the transparent ones and draw them last. reference: https://github.com/SiebenCorgie/jakar-engine/issues/19