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::ModelLodAsset > | GetModelLodAsset () 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 |
Container for all the buffers and views needed for a single lod of a skinned mesh.
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
morphTarget | The metadata that has info such as the min/max weight, offset, and vertex count for the morph |
morphBufferAssetView | The view of all the morph target deltas that can be applied to this mesh |
bufferNamePrefix | A prefix that can be used to identify this morph target when creating the view into the morph target buffer. |
minWeight | The 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 |
maxWeight | The 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. |