[Add] 슬라이드 추가
[Add] Dodge Blink 추가
This commit is contained in:
@@ -188,8 +188,6 @@ _bool CModel::Play_Anim(_float fTimeDelta, CTransform* pTransform)
|
||||
|
||||
ComputeAnimation(m_iCurrentAnimIndex, 0);
|
||||
|
||||
|
||||
|
||||
if (m_bRatio) {
|
||||
Update_RootBone(m_fAmount * m_fRatio);
|
||||
}
|
||||
@@ -1621,7 +1619,6 @@ HRESULT CModel::Create_Local()
|
||||
|
||||
void CModel::ComputeAnimation(_uint AnimIndex,_uint MeshIndex)
|
||||
{
|
||||
|
||||
ComputeLocal(AnimIndex,MeshIndex);
|
||||
|
||||
if (m_pComputeShader == nullptr)
|
||||
@@ -1660,17 +1657,26 @@ void CModel::ComputeAnimation(_uint AnimIndex,_uint MeshIndex)
|
||||
1,
|
||||
m_pConstantBuffer
|
||||
);
|
||||
|
||||
ID3D11UnorderedAccessView* nullUAV[1] = { nullptr };
|
||||
UINT counts[1] = { 0 };
|
||||
m_pContext->CSSetUnorderedAccessViews(0, 1, nullUAV, counts);
|
||||
|
||||
ID3D11ShaderResourceView* nullSRV[3] = { nullptr };
|
||||
m_pContext->CSSetShaderResources(0, 3, nullSRV);
|
||||
|
||||
}
|
||||
|
||||
void CModel::ComputeLocal(_uint AnimIndex, _uint MeshIndex)
|
||||
{
|
||||
D3D11_MAPPED_SUBRESOURCE ConstantSubResource = {};
|
||||
|
||||
auto* anim = m_Animations[AnimIndex];
|
||||
|
||||
if (SUCCEEDED(m_pContext->Map(m_pConstantBuffer, 0, D3D11_MAP_WRITE_DISCARD, 0, &ConstantSubResource)))
|
||||
{
|
||||
ANIMSTATE_DESC* pDesc = static_cast<ANIMSTATE_DESC*>(ConstantSubResource.pData);
|
||||
|
||||
auto* anim = m_Animations[AnimIndex];
|
||||
pDesc->CurrentTime = anim->Get_CurrentTrackPosition();
|
||||
pDesc->Duration = anim->Get_Duration();
|
||||
pDesc->MeshBoneCount = m_Meshes[MeshIndex]->Get_NumBone();
|
||||
@@ -1702,7 +1708,6 @@ void CModel::ComputeLocal(_uint AnimIndex, _uint MeshIndex)
|
||||
m_Meshes[MeshIndex]->Get_BoneRemapBuffer()
|
||||
};
|
||||
|
||||
auto* anim = m_Animations[AnimIndex];
|
||||
ID3D11ShaderResourceView* srvs[] =
|
||||
{
|
||||
anim->Get_KeyFrameSrv(),
|
||||
@@ -1734,6 +1739,11 @@ void CModel::ComputeLocal(_uint AnimIndex, _uint MeshIndex)
|
||||
UINT counts[1] = { 0 };
|
||||
m_pContext->CSSetUnorderedAccessViews(0, 1, nullUAV, counts);
|
||||
|
||||
ID3D11ShaderResourceView* nullSRV[7] = { nullptr };
|
||||
|
||||
m_pContext->CSSetShaderResources(0, 7, nullSRV);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user