Skylicht Engine
Loading...
Searching...
No Matches
Skylicht::CBlendShape Class Reference

Represents a morph target (blend shape) for a mesh. More...

#include <RenderMesh/CMesh.h>

Inheritance diagram for Skylicht::CBlendShape:
irr::IReferenceCounted

Public Attributes

std::string Name
float Weight
core::array< u32VtxId
core::array< core::vector3dfOffset
core::array< core::vector3dfNormalOffset

Additional Inherited Members

Public Member Functions inherited from irr::IReferenceCounted
 IReferenceCounted ()
 Constructor.
virtual ~IReferenceCounted ()
 Destructor.
void grab () const
 Grabs the object. Increments the reference counter by one.
bool drop () const
 Drops the object. Decrements the reference counter by one.
s32 getReferenceCount () const
 Get the reference count.
const c8getDebugName () const
 Returns the debug name of the object.
Protected Member Functions inherited from irr::IReferenceCounted
void setDebugName (const c8 *newName)
 Sets the debug name of the object.

Detailed Description

Represents a morph target (blend shape) for a mesh.

Example: Accessing and updating blend shapes

CRenderMesh* renderMesh = gameObject->getComponent<CRenderMesh>();
for (CRenderMeshData* renderer : renderMesh->getRenderers())
{
for (CBlendShape* shape : renderer->getMesh()->BlendShape)
{
if (shape->Name == "Smile")
shape->Weight = 1.0f;
}
}
Definition CRenderMeshData.h:38
The object class helps to initialize a model from a path or prefab, and gets the model's material to ...
Definition CRenderMesh.h:81

The documentation for this class was generated from the following file: