项目
在 GitHub 查看 Mesh Animation
codewriter-packages/Mesh-Animation
关于
基于 GPU 顶点着色器的 Unity 快速动画库(VAT、顶点动画纹理、形变动画)
创作与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Mesh Animation 
Mesh Animation is lightweight library for rendering hundreds of meshes in one draw call with GPU instancing.
NOTE: To use MeshAnimation library you need to install Tri Inspector - Free and open-source library that improves unity inspector.

How it works?
Mesh Animation bakes vertex positions for each frame of animation to texture. Custom shader then move mesh vertexes to desired positions on GPU. This allows draw the same original mesh multiple times with GPU Instancing. Unique animation parameters are overridden for each instance with Material Property Block.
Limitations
- Supported up to 2048 vertices per mesh.
- Bakes one SkinnedMeshRenderer animation per prefab.
- Requires special shader for vertex animations.
- Animations can only be baked in editor mode.
- Possibly low animation quality on some GPUs.
- Vertex animation may be not supported on some old devices.
How to use?
- Create Mesh Animation Asset (in
Assets/Create/Mesh Animationmenu). - Assign skin, shader and animation clips fields in inspector.
- Click
Bakebutton. - Assign generated material to gameObject.
- Add
MeshAnimatorcomponent to gameObject. - Play animation from code.
gameObject.GetComponent<MeshAnimator>().Play("Zombie Walking");
FAQ
Which Rig AnimationType are supported?
Works with Humanoid. Not works with legacy. Other not tested.
探索相关项目
加载中…
