Open 3D Engine Atom Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::Render::SkinnedMeshInputLod Class Reference

Container for all the buffers and views needed for a single lod of a skinned mesh. More...

#include <SkinnedMeshInputBuffers.h>

Public Member Functions

void CreateFromModelLod (const Data::Asset< RPI::ModelAsset > &modelAsset, const Data::Instance< RPI::Model > &model, uint32_t lodIndex)
 Set all the input data for the skinned mesh lod from a model lod.
 
Data::Asset< RPI::ModelLodAssetGetModelLodAsset () const
 Get the ModelLodAsset that was used to create this lod.
 
uint32_t GetVertexCount () const
 Get the number of vertices for the lod.
 
void AddMorphTarget (const RPI::MorphTargetMetaAsset::MorphTarget &morphTarget, const RPI::BufferAssetView *morphBufferAssetView, const AZStd::string &bufferNamePrefix, float minWeight, float maxWeight)
 
const AZStd::vector< MorphTargetComputeMetaData > & GetMorphTargetComputeMetaDatas () const
 Get the MetaDatas for all the morph targets that can be applied to an instance of this skinned mesh.
 
const AZStd::vector< AZStd::intrusive_ptr< MorphTargetInputBuffers > > & GetMorphTargetInputBuffers () const
 Get the MorphTargetInputBuffers for all the morph targets that can be applied to an instance of this skinned mesh.
 
bool HasMorphTargetsForMesh (uint32_t meshIndex) const
 Check if there are any morph targets that can be applied to a particular sub-mesh.
 

Friends

class SkinnedMeshInputBuffers
 

Detailed Description

Container for all the buffers and views needed for a single lod of a skinned mesh.

Member Function Documentation

◆ AddMorphTarget()

void AZ::Render::SkinnedMeshInputLod::AddMorphTarget ( const RPI::MorphTargetMetaAsset::MorphTarget morphTarget,
const RPI::BufferAssetView morphBufferAssetView,
const AZStd::string &  bufferNamePrefix,
float  minWeight,
float  maxWeight 
)

Add a single morph target that can be applied to an instance of this skinned mesh Creates a view into the larger morph target buffer to be used for applying an individual morph

Parameters
morphTargetThe metadata that has info such as the min/max weight, offset, and vertex count for the morph
morphBufferAssetViewThe view of all the morph target deltas that can be applied to this mesh
bufferNamePrefixA prefix that can be used to identify this morph target when creating the view into the morph target buffer.
minWeightThe minimum weight that might be applied to this morph target. It's possible for the weight of a morph target to be outside the 0-1 range. Defaults to 0
maxWeightThe maximum weight that might be applied to this morph target. It's possible for the weight of a morph target to be outside the 0-1 range.

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