Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::ecs::MeshMorph Struct Reference

What SHAPE a MeshRenderer is in: how far it is blended towards each of the shapes its mesh carries. More...

#include <MeshRenderer.hpp>

Public Member Functions

 MeshMorph ()=default

Public Attributes

std::vector< f32 > weights
 Weight per target, 0 leaving the mesh as authored. Not clamped: a negative weight and one past 1 are both shapes an author may want, and glTF states neither bound.

Detailed Description

What SHAPE a MeshRenderer is in: how far it is blended towards each of the shapes its mesh carries.

The third of the trio, for the reason the second exists: MeshRenderer says what is drawn and MeshSkin what moves it. Entry i weights target i — positional, because a name lives with the geometry.

Definition at line 185 of file MeshRenderer.hpp.

Constructor & Destructor Documentation

◆ MeshMorph()

esengine::ecs::MeshMorph::MeshMorph ( )
default

References MeshMorph(), and ES_COMPONENT.

Referenced by MeshMorph().

Member Data Documentation

◆ weights

std::vector<f32> esengine::ecs::MeshMorph::weights

Weight per target, 0 leaving the mesh as authored. Not clamped: a negative weight and one past 1 are both shapes an author may want, and glTF states neither bound.

Definition at line 191 of file MeshRenderer.hpp.

Referenced by EMSCRIPTEN_BINDINGS().


The documentation for this struct was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/ecs/components/MeshRenderer.hpp