|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
What deforms a MeshRenderer: the entities its Joints channel indexes. More...
#include <MeshRenderer.hpp>
Public Member Functions | |
| MeshSkin ()=default | |
| bool | operator== (const MeshSkin &) const =default |
| Compared member by member: what the change audit checks a write of this component against (Registry::auditChanges). | |
Public Attributes | |
| std::vector< Entity > | joints |
| Joint entities, in the order the mesh's bind matrices are stored. | |
| i32 | skinCache {static_cast<i32>(SkinCacheMode::Auto)} |
| Whether the skin cache poses this mesh (SkinCacheMode). | |
What deforms a MeshRenderer: the entities its Joints channel indexes.
Its own component because MeshRenderer says WHAT is drawn and this says what moves it; entry i drives joint i of the mesh's own bind matrices. A skinned mesh's own transform is ignored (glTF requires it) — the joints are placed in the world, so the vertices are too.
Definition at line 156 of file MeshRenderer.hpp.
|
default |
Referenced by operator==().
|
default |
Compared member by member: what the change audit checks a write of this component against (Registry::auditChanges).
References MeshSkin().
| std::vector<Entity> esengine::ecs::MeshSkin::joints |
Joint entities, in the order the mesh's bind matrices are stored.
Definition at line 159 of file MeshRenderer.hpp.
Referenced by meshskinApplyJS(), and meshskinToJS().
| i32 esengine::ecs::MeshSkin::skinCache {static_cast<i32>(SkinCacheMode::Auto)} |
Whether the skin cache poses this mesh (SkinCacheMode).
Definition at line 164 of file MeshRenderer.hpp.
Referenced by meshskinApplyJS(), and meshskinToJS().