Skip to content

Files

Latest commit

 

History

History

vertex_animation

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Vertex_animation

This example showcases how to do animation (in this case, animating a fish) using only a vertex shader . It is a very powerfull and yet simple method, and "programmer friendl" as it does not require any complex visual assets with IK etc.

This example is based both on some of my older work with vertex shader animation and this amazing tutorial for the Godot engine

demo

Information

  • the Bevy/ Rust code is here
  • the shader itself is here

Limitations / issues

  • the gltf loader seperates the materials into different meshes, so there is no single AABB for the whole model, whichs leads to some visual bugs (cracks between the fins & the body etc)
  • shadows do not work correctly as Bevy (as of 0.9.1) does not yet support correct shadows of meshes deformed with vertex shaders out the box
  • there is no shading in this demo, just vertex colors (Perhaps Bevy has a way of using the Standard Material Pixel shader with a custom vertex shader but I have not found a way to do this yet)
  • masking of animation is currently not implemented

Credits

License

This example is licensed under MIT.