[merge commit]

This commit is contained in:
kimnuri
2026-01-01 15:05:50 +09:00
39 changed files with 1150 additions and 923 deletions
+15 -26
View File
@@ -65,7 +65,7 @@ HRESULT CPlayer::Initialize(void* pArg)
Add_FSM();
Set_Anim();
Load_AnimXML("../Bin/Resources/Data/AnimList/Player.xml");
{
CFSM::FSM_DESC FSMDesc{};
@@ -121,7 +121,7 @@ HRESULT CPlayer::Initialize(void* pArg)
m_bAI = false;
XMLoadFloat4x4(m_pBroomModel->Get_BoneMatrixPtr("broomSocket"));
//XMLoadFloat4x4(m_pBroomModel->Get_BoneMatrixPtr("broomSocket"));
m_pModelCom->Set_Temp(true);
@@ -599,9 +599,9 @@ HRESULT CPlayer::Bind_ShaderParameters(_uint iMeshOrder)
case PLAYER_MESH_ORDER::ROBE_CLOTH:
{
CMesh* pMesh = m_pModelCom->Get_Mesh(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH));
_uint paletteCount = pMesh->Get_NumBone();
_uint MeshBoneCount = pMesh->Get_NumBone();
for (_uint i = 0; i < paletteCount; ++i)
for (_uint i = 0; i < MeshBoneCount; ++i)
{
XMStoreFloat4x4(&SkinMatrices[i] ,XMMatrixIdentity());
}
@@ -610,7 +610,7 @@ HRESULT CPlayer::Bind_ShaderParameters(_uint iMeshOrder)
vector<_uint> globalMask = m_pModelCom->Get_BoneMask(ENUM_CLASS(BLEND_BONE::HIPS_CLOTH));
vector<_int> boneIndices = pMesh->Get_BoneIndices();
for (_uint i = 0; i < paletteCount; ++i)
for (_uint i = 0; i < MeshBoneCount; ++i)
{
_uint global = boneIndices[i];
if (global == 38)
@@ -621,30 +621,19 @@ HRESULT CPlayer::Bind_ShaderParameters(_uint iMeshOrder)
}
}
array<_int, 256> paletteMask{};
paletteMask.fill(0);
//array<_int, 256> paletteMask{};
//paletteMask.fill(0);
for (_uint i = 0; i < paletteCount; ++i)
{
if (i == 29)
continue;
_uint global = boneIndices[i];
paletteMask[i] = globalMask[global];
}
//for (_uint i = 0; i < paletteCount; ++i)
//{
// if (i == 29)
// continue;
// _uint global = boneIndices[i];
// paletteMask[i] = globalMask[global];
//}
m_pShaderCom->Bind_IntArray("g_RobeBoneMask", paletteMask.data(), 256);
//m_pShaderCom->Bind_IntArray("g_RobeBoneMask", paletteMask.data(), 256);
// Bind_Matrices("g_BoneMatrices", SkinMatrices.data(), 256);
/* if (FAILED(m_pShaderCom->Bind_RawValue(
"g_RobeBoneMask",
robeIdx.data(),
sizeof(_uint) *(_int)robeIdx.size()
)))
{
return E_FAIL;
}*/
GUI::DragFloat("TempWeight", &m_fTempWeight, 0.01f);
if (FAILED(m_pShaderCom->Bind_RawValue("g_TempWeight", &m_fTempWeight, sizeof(_float)))) {