FyroxEngine / Fyrox

3D and 2D game engine written in Rust
https://fyrox.rs
MIT License
7.61k stars 340 forks source link

Add blend shapes support #440

Closed mrDIMAS closed 1 year ago

mrDIMAS commented 1 year ago

This PR adds basic support for blend shapes, this is what they does:

blend_shape

For now, the blending is done on CPU and it is not very fast. Proper GPU support will require some renderer refactoring to utilize transform feedback feature to bake blend shapes + bone animation into a temporary vertex buffer and use it for rendering. Ideally this could be done using compute shaders, but since the engine is also targeting on Web, transform feedback is the only viable option here.

Fixes: #223