class
MorphShape
Name and weight of a single shape in a morph target animation.
Each shape internally represents a set of vertices that describe the morph shape.
Public
Constructors
MorphShape
MorphShape
MorphShape() = default
Methods
GetName
const String &GetName() const
Returns the name of the shape.
GetWeight
float GetWeight() const
Returns the weight of the shape, determining how are different shapes within a channel blended.
GetVertices
Returns a reference to all of the shape's vertices.
Contains only vertices that differ from the base.
staticCreate
static SPtr<MorphShape> Create(const String &name, float weight, const Vector<MorphVertex> &vertices)
Creates a new morph shape from the provided set of vertices.
- name
- Name of the frame. Must be unique within a morph channel.
- weight
- Weight in range [0, 1]. Determines how are sequential shapes animated between within a morph channel. e.g. if there is a shape A with weight 0.3 and shape B with weight 0.8 then shape A will be displayed first and then be blended towards shape B as time passes.
- vertices
- Vertices of the base mesh modified by the shape.
staticGetRttiStatic
static RTTIType *GetRttiStatic()