diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj index e042747c8..b9fad64cb 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj @@ -195,6 +195,7 @@ call Update_Resources.bat + @@ -370,6 +371,7 @@ call Update_Resources.bat + diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters index 597dee9ad..87d452564 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters @@ -545,6 +545,9 @@ 02.GameObjects\UI\Enemy_Detection + + 02.GameObjects\NPC\Ally\Shopper + 04.Mechanic\State\State_Combat\State_Shield @@ -1158,6 +1161,9 @@ {fd4a0869-2491-4fec-9df9-3aedbac96171} + + {02cb243a-f63e-4e55-9d55-b47e31a4c13e} + @@ -1650,6 +1656,9 @@ 04.Mechanic\State\State_Combat\State_Shield + + 02.GameObjects\NPC\Ally\Shopper + diff --git a/Jusin154_Team3D/Client/Private/Broom.cpp b/Jusin154_Team3D/Client/Private/Broom.cpp index 2ac342ac1..35ab613d9 100644 --- a/Jusin154_Team3D/Client/Private/Broom.cpp +++ b/Jusin154_Team3D/Client/Private/Broom.cpp @@ -102,11 +102,10 @@ HRESULT CBroom::Render() if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) { + if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) { return E_FAIL; } - if (FAILED(m_pModelCom->Render(i))) { return E_FAIL; } @@ -132,7 +131,7 @@ HRESULT CBroom::Ready_Components() } /* Com_Shader */ - if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_ANIMMESH, + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM, reinterpret_cast(&m_pShaderCom)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp index 268634b12..14edb65fb 100644 --- a/Jusin154_Team3D/Client/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp @@ -65,16 +65,16 @@ HRESULT CEffectPool::Initialize(void* pArg) m_isActiveMonsterEffectCreate = false; #endif // gimch #ifdef Bin - m_isActiveEffectCreate = false; - m_isActiveMonsterEffectCreate = false; + m_isActiveEffectCreate = true; + m_isActiveMonsterEffectCreate = true; #endif // #ifdef 진우 m_isActiveEffectCreate = false; m_isActiveMonsterEffectCreate = true; #endif // #ifdef 기무리 - m_isActiveEffectCreate = false; - m_isActiveMonsterEffectCreate = false; + m_isActiveEffectCreate = true; + m_isActiveMonsterEffectCreate = true; #endif // #ifdef 인혁 m_isActiveEffectCreate = false; diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index a2e75d134..a4fa92b76 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -24,6 +24,7 @@ #include "Goblin.h" #include "Goblin_Mage.h" #include "Goblin_Spector.h" +#include "NPC_Ollivander.h" #pragma endregion @@ -480,6 +481,9 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag) if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) { return E_FAIL; } + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) { + return E_FAIL; + } return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 194467cf2..c1811a8c2 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -27,6 +27,7 @@ #include "Goblin_Mage.h" #include "Goblin_Spector.h" #include "Troll.h" +#include "NPC_Ollivander.h" #pragma endregion @@ -1276,6 +1277,12 @@ HRESULT CLoader::Loading_For_GamePlay() return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_NPC_PBR_ANIM, + CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl"), + VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_MESH, CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl"), VTXMESH::Elements, VTXMESH::iNumElements)))) { @@ -1442,6 +1449,16 @@ HRESULT CLoader::Loading_For_GamePlay() CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/GoblinSpector/GoblinSpector.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) return E_FAIL; + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GerboldOlivander_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){ + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){ + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Model"), CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){ return E_FAIL; @@ -2130,6 +2147,11 @@ HRESULT CLoader::Loading_For_GamePlay() if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTroll::Create(m_pDevice, m_pContext)))) return E_FAIL; + /* For.Prototype_GameObject_Troll */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CNPC_Ollivander::Create(m_pDevice, m_pContext)))){ + return E_FAIL; + } + #pragma endregion diff --git a/Jusin154_Team3D/Client/Private/Lumos.cpp b/Jusin154_Team3D/Client/Private/Lumos.cpp index a296efff4..9159605c9 100644 --- a/Jusin154_Team3D/Client/Private/Lumos.cpp +++ b/Jusin154_Team3D/Client/Private/Lumos.cpp @@ -49,6 +49,14 @@ void CLumos::Priority_Update(_float fTimeDelta) { __super::Priority_Update(fTimeDelta); + + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return; + + m_pLumos_Light->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + } void CLumos::Update(_float fTimeDelta) @@ -59,15 +67,6 @@ void CLumos::Update(_float fTimeDelta) __super::Update(fTimeDelta); Update_Event(fTimeDelta); - - - CWand* pWand = static_cast(m_pOwner); - - if (pWand == nullptr) - return; - - m_pLumos_Light->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - } void CLumos::Late_Update(_float fTimeDelta) diff --git a/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp b/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp new file mode 100644 index 000000000..e28b231a6 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp @@ -0,0 +1,212 @@ +#include "pch.h" +#include "NPC_Ollivander.h" + +#include "GameInstance.h" +#include "InfoInstance.h" +#include "Player.h" + +CNPC_Ollivander::CNPC_Ollivander(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CUnit(pDevice, pContext) +{ +} + +CNPC_Ollivander::CNPC_Ollivander(const CNPC_Ollivander& Prototype) + : CUnit(Prototype), + m_pInfoInstance(CInfoInstance::GetInstance()) +{ +} + +void CNPC_Ollivander::Priority_Update(_float fTimeDelta) +{ + m_pTransformCom->RewindMomentum(); + __super::Priority_Update(fTimeDelta); +} + +void CNPC_Ollivander::Update(_float fTimeDelta) +{ + m_pFSM->Update_State(fTimeDelta); + + m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); + __super::Update(fTimeDelta); +#ifdef _DEBUG + Describe_Entity(); +#endif // _DEBUG + +} + +void CNPC_Ollivander::Late_Update(_float fTimeDelta) +{ + m_pTransformCom->Set_State(STATE::POSITION, m_pTransformCom->Get_EstimatedPositionByMomentum()); + + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); + + __super::Late_Update(fTimeDelta); +} + +HRESULT CNPC_Ollivander::Render() +{ + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) { + return E_FAIL; + } + + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { + return E_FAIL; + } + if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) { + return E_FAIL; + } + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + + return S_OK; +} + +HRESULT CNPC_Ollivander::Render_Shadow() +{ + if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ViewMatrix", D3DTS::VIEW))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ProjMatrix", D3DTS::PROJ))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", &m_pGameInstance->Get_ShadowDesc()->fFar, sizeof(_float)))) { + return E_FAIL; + } + + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) { + return E_FAIL; + } + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { + return E_FAIL; + } + if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) { + return E_FAIL; + } + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + + return S_OK; +} + +HRESULT CNPC_Ollivander::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + return S_OK; +} + +HRESULT CNPC_Ollivander::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CNPC_Ollivander::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + if (FAILED(Ready_Components(pArg))) { + return E_FAIL; + } + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-34.f, 5, -11.4f, 1.f)); + return S_OK; +} + +HRESULT CNPC_Ollivander::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM, + reinterpret_cast(&m_pShaderCom)))) { + return E_FAIL; + } + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_GerboldOlivander_Model"), + reinterpret_cast(&m_pModelCom)))) { + return E_FAIL; + } + + return S_OK; +} + +CNPC_Ollivander* CNPC_Ollivander::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CNPC_Ollivander* pInstance = new CNPC_Ollivander(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CNPC_Ollivander"); + SAFE_RELEASE(pInstance); + } + return pInstance; +} + +CGameObject* CNPC_Ollivander::Clone(void* pArg, CGameObject* pOwner) +{ + CNPC_Ollivander* pInstance = new CNPC_Ollivander(*this); + + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CNPC_Ollivander"); + SAFE_RELEASE(pInstance); + } + return pInstance; +} + +void CNPC_Ollivander::Free() +{ + __super::Free(); +} +#ifdef _DEBUG + +void CNPC_Ollivander::Describe_Entity() +{ + m_pModelCom->Describe_Entity(); + if (ImGui::TreeNode("ANIM STATE")) { + + for (auto& pState : m_States) + { + if (ImGui::Button(to_string(pState.first).c_str())) + { + m_pFSM->Change_State(pState.first); + } + } + + GUI::Text(to_string(m_pModelCom->Get_CurrentTrackProgressRatio()).c_str()); + + ImGui::TreePop(); + } +} + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp index f57b8809e..d47a4daa2 100644 --- a/Jusin154_Team3D/Client/Private/Player_States.cpp +++ b/Jusin154_Team3D/Client/Private/Player_States.cpp @@ -1200,7 +1200,6 @@ void CPlayer::Behavior_SpellEnter() pairAnimInfo = m_Animation[STATEANIM::IDLE]; } m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_R),m_Animation[STATEANIM::LUMOS_STOP].first, m_Animation[STATEANIM::LUMOS_STOP].second); - m_eSpell = STATEANIM::END; } break; default: @@ -1253,7 +1252,7 @@ HRESULT CPlayer::Behavior_SpellExitCheck() m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); - if (m_eSpell != ENUM_CLASS(SKILL_TYPE::END)&& m_eSpell != -1) + if (m_eSpell != ENUM_CLASS(SKILL_TYPE::END) && m_eSpell != -1) { _float fRatio = 0.2f; if (iNext - iStart == 2) { @@ -1291,6 +1290,49 @@ HRESULT CPlayer::Behavior_SpellExitCheck() [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO_SIDE, Get_PartObject()); }, 0.f); break; + case ENUM_CLASS(SKILL_TYPE::LUMOS): + if (m_pModelCom->Get_SecondAnimIndex() != m_Animation[STATEANIM::LUMOS].first) + { + if (SUCCEEDED(InputMove())) + { + if (m_bSprintToggle) { + pairAnimInfo = m_Animation[STATEANIM::SPRINT]; + } + else if (m_bWalkToggle) { + pairAnimInfo = m_Animation[STATEANIM::WALK_FWD]; + } + else { + pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; + } + } + else { + pairAnimInfo = m_Animation[STATEANIM::IDLE]; + } + Add_Event(pairAnimInfo.first, + [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LUMOS, Get_PartObject()); }, + 0.f); + m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_R), m_Animation[STATEANIM::LUMOS].first, m_Animation[STATEANIM::LUMOS].second); + } + else + { + if (SUCCEEDED(InputMove())) + { + if (m_bSprintToggle) { + pairAnimInfo = m_Animation[STATEANIM::SPRINT]; + } + else if (m_bWalkToggle) { + pairAnimInfo = m_Animation[STATEANIM::WALK_FWD]; + } + else { + pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; + } + } + else { + pairAnimInfo = m_Animation[STATEANIM::IDLE]; + } + m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_R), m_Animation[STATEANIM::LUMOS_STOP].first, m_Animation[STATEANIM::LUMOS_STOP].second); + } + break; } } else { diff --git a/Jusin154_Team3D/Client/Private/Potion.cpp b/Jusin154_Team3D/Client/Private/Potion.cpp index 9ac0e1589..c16c19c53 100644 --- a/Jusin154_Team3D/Client/Private/Potion.cpp +++ b/Jusin154_Team3D/Client/Private/Potion.cpp @@ -46,7 +46,7 @@ HRESULT CPotion::Initialize(void* pArg) m_vImageSize = _float2(32.f, 32.f); m_fFontX = 1163.f; m_fFontY = 860.f; - m_iPotionIndex = 1; + m_iPotionIndex = 10; m_iPerPotionIndex = -1; m_iPotion_Level = 1; return S_OK; @@ -102,7 +102,6 @@ void CPotion::Update(_float fTimeDelta) m_fAlpha = 0.f; } } - m_iPotionIndex = 10; if (m_iPerPotionIndex != m_iPotionIndex) { diff --git a/Jusin154_Team3D/Client/Private/Troll.cpp b/Jusin154_Team3D/Client/Private/Troll.cpp index fa1f8594a..dff963c67 100644 --- a/Jusin154_Team3D/Client/Private/Troll.cpp +++ b/Jusin154_Team3D/Client/Private/Troll.cpp @@ -160,11 +160,11 @@ void CTroll::Late_Update(_float fTimeDelta) if (true == m_pCharacter_Controller->IsActive()) { m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition()); } - else { + else if (true == m_pRigidBody->IsActive()) { m_pTransformCom->Set_WorldMatrix(m_pRigidBody->Get_Actor()->getGlobalPose()); } - if (m_bLookAt) { + if (true == m_bLookAt) { m_pTransformCom->LookAt_Lerp(XMLoadFloat4(&m_vTargetPos), fTimeDelta, 3.f); } @@ -182,7 +182,7 @@ void CTroll::Late_Update(_float fTimeDelta) m_fCross = XMVectorGetY(XMVector3Cross(vLook, vDir)); m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); - m_pGameInstance->Add_RenderGroup(RENDER::SHADOW, this); +// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW, this); } HRESULT CTroll::Render() @@ -192,10 +192,6 @@ HRESULT CTroll::Render() } _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); - _uint iShaderPass = ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT); - if (true == m_bDrawOutLine) { - iShaderPass = ENUM_CLASS(SHADER_PASS_ANIM::OUTLINE_WRITE); - } for (_uint i = 0; i < iNumMeshes; i++) { if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) { @@ -206,7 +202,7 @@ HRESULT CTroll::Render() return E_FAIL; } - if (FAILED(m_pShaderCom->Begin(iShaderPass))) { + if (FAILED(m_pModelCom->Begin(i, m_pShaderCom, m_bDrawOutLine))) { return E_FAIL; } @@ -215,7 +211,7 @@ HRESULT CTroll::Render() } } - if (m_bDrawOutLine) { + if (true == m_bDrawOutLine) { Render_OutLine(); } @@ -235,6 +231,60 @@ HRESULT CTroll::Render() return S_OK; } +HRESULT CTroll::Render_OutLine() +{ + m_bDrawOutLine = false; + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + Compute_Depth(); + _float fRatio = (m_fCamDepth / *m_pGameInstance->Get_CurrentCameraFar()); + m_fOutLineThickness = CMyTools::Lerp_f1D(2.f, 6.f, fRatio); + if (m_fOutLineThickness > 6.f) { + m_fOutLineThickness = 6.f; + } + else if (m_fOutLineThickness < 2.f) { + m_fOutLineThickness = 2.f; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_vOutLineColor", &m_vOutLineColor, sizeof(_float3)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLineThickness", &m_fOutLineThickness, sizeof(_float)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLineScale", &m_fOutLineScale, sizeof(_float)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLinePower", &m_fOutLinePower, sizeof(_float)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float4)))) { + return E_FAIL; + } + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) { + return E_FAIL; + } + + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::OUTLINE_READ)))) { + return E_FAIL; + } + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + return S_OK; +} + HRESULT CTroll::Render_Shadow() { if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { @@ -255,10 +305,10 @@ HRESULT CTroll::Render_Shadow() if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::SHADOW)))) { + + if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) { return E_FAIL; } - if (FAILED(m_pModelCom->Render(i))) { return E_FAIL; } @@ -280,41 +330,42 @@ _vector CTroll::Get_LockOnPos() void CTroll::OnCollision(CGameObject* pOther, void* pDesc) { + if (true == m_bDead) { + return; + } + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); - CEffect_Container* pEffect = dynamic_cast(pOther); - if (pEffect != nullptr) + _vector Head = (XMLoadFloat4x4(Get_HeadMatrix()) * m_pTransformCom->Get_XMWorldMatrix()).r[3]; + m_DamageInfo.vTarget_Pos = XMVectorSet(Head.m128_f32[0], Head.m128_f32[1], Head.m128_f32[2], 1.f); + + _uint iSkillType = dynamic_cast(pOther)->Get_SkillType(); + auto damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType)); + switch (iSkillType) { - _uint iSkillType = dynamic_cast(pOther)->Get_SkillType(); - - switch (iSkillType) - { - case ENUM_CLASS(SKILL_TYPE::DESCENDO): - m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO); - break; - case ENUM_CLASS(SKILL_TYPE::BOMBARDA): - m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO); - break; - case ENUM_CLASS(SKILL_TYPE::FLIPENDO): - m_eHitSpell = ENUM_CLASS(SKILL_TYPE::FLIPENDO); - break; - case ENUM_CLASS(SKILL_TYPE::JAP): - m_eHitSpell = ENUM_CLASS(SKILL_TYPE::JAP); - break; - default: - m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END); - break; - } + case ENUM_CLASS(SKILL_TYPE::DESCENDO): + m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO); + break; + case ENUM_CLASS(SKILL_TYPE::BOMBARDA): + m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO); + break; + case ENUM_CLASS(SKILL_TYPE::FLIPENDO): + m_eHitSpell = ENUM_CLASS(SKILL_TYPE::FLIPENDO); + break; + case ENUM_CLASS(SKILL_TYPE::JAP): + m_eHitSpell = ENUM_CLASS(SKILL_TYPE::JAP); + break; + default: + m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END); + break; } - - CMapElement_Interactable* pProps = dynamic_cast(pOther); - - if (pProps != nullptr) - { - m_eHitSpell = STATEANIM::KNOCKDOWN_FWD; + m_DamageInfo.fDamage = damagePair.first; + m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo); + if (0 == damagePair.second) { + m_pFSM->Change_State(FSMSTATE::DEAD); + return; } - m_pFSM->Change_State(FSMSTATE::HIT); } @@ -330,7 +381,18 @@ HRESULT CTroll::Ready_Components() Desc.fRotationPerSec = XMConvertToRadians(180.0f); Desc.fRadius = 10.f; - __super::Ready_Components(&Desc); + + if (FAILED(Add_Component(g_iStaticLevel, &m_pTransformCom, &Desc))) { + return E_FAIL; + } + if (FAILED(Add_Component(g_iStaticLevel, &m_pFSM))) { + return E_FAIL; + } + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM, + reinterpret_cast(&m_pShaderCom)))) { + return E_FAIL; + } m_strModelPrototypeTag = TEXT("Prototype_Component_Troll_Model"); diff --git a/Jusin154_Team3D/Client/Private/Troll_States.cpp b/Jusin154_Team3D/Client/Private/Troll_States.cpp index 1850bfcc7..e9a87bf1c 100644 --- a/Jusin154_Team3D/Client/Private/Troll_States.cpp +++ b/Jusin154_Team3D/Client/Private/Troll_States.cpp @@ -21,6 +21,7 @@ #include "State_Swing.h" #include "State_Slam.h" #include "State_Hit.h" +#include "State_Dead.h" #pragma endregion @@ -609,9 +610,6 @@ void CTroll::Behavior_StunEnter() [this]() { m_bLookAt = true; }, 0.6f); - - - } HRESULT CTroll::Behavior_StunExitCheck(_float fTimeDelta) @@ -686,6 +684,36 @@ void CTroll::Behavior_HitExit() m_pFSM->Disable_State(FSMSTATE::HIT); } +void CTroll::Behavior_DeadEnter() +{ + m_bLookAt = false; + m_pFSM->Enable_State(FSMSTATE::DEAD); + _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex(); + pair<_uint, _bool> pairAnimInfo; + + pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + + PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition(); + PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z); + m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p)); + m_pRigidBody->SetActive(false); + m_pCharacter_Controller->SetActive(false); +} + +HRESULT CTroll::Behavior_DeadExitCheck(_float fTimeDelta) +{ + if (m_pModelCom->IsFinishedAnim()) { + m_bDead = true; + } + return S_OK; +} + +void CTroll::Behavior_DeadExit() +{ + m_bDead = true; +} + void CTroll::Add_FSM() { @@ -812,6 +840,23 @@ void CTroll::Add_FSM() m_States.emplace(FSMSTATE::HIT, CState_Hit::Create(&Desc)); } + { + CState_Dead::STATE_DEAD_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_DeadEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_DeadExitCheck(fTimedelta); }; + Desc.funcExitEvent = [this]() { Behavior_DeadExit(); }; + Desc.funcLateUpdate = [this](_float fDeadRatio) { + m_fDeadRatio = fDeadRatio; + if (m_fDeadRatio > 1.f) { + m_bDead = true; + } + }; + Desc.vDeadTimer.x = FLT_EPSILON5; + Desc.vDeadTimer.y = 2.f; + m_States.emplace(FSMSTATE::DEAD, CState_Dead::Create(&Desc)); + } + #pragma endregion } diff --git a/Jusin154_Team3D/Client/Private/Troll_Weapon.cpp b/Jusin154_Team3D/Client/Private/Troll_Weapon.cpp index 0103ae085..509cb693b 100644 --- a/Jusin154_Team3D/Client/Private/Troll_Weapon.cpp +++ b/Jusin154_Team3D/Client/Private/Troll_Weapon.cpp @@ -99,7 +99,8 @@ HRESULT CTroll_Weapon::Render() return E_FAIL; } - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) { + + if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) { return E_FAIL; } @@ -142,7 +143,7 @@ HRESULT CTroll_Weapon::Ready_Components() } /* Com_Shader */ - if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH, + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM, reinterpret_cast(&m_pShaderCom)))){ return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h index 0d6ed3be7..263032014 100644 --- a/Jusin154_Team3D/Client/Public/Client_Enum.h +++ b/Jusin154_Team3D/Client/Public/Client_Enum.h @@ -15,6 +15,11 @@ namespace Client enum class SHADER_PASS_UIEDITOR { DEFAULT, LOGO, LOGO_TEXT, LOGO_GLOW, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, TYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV, REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER, SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN, ENEMY_HPBAR, BOSS_HPBAR, ENEMY_DETECTION, END }; enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, SPELL_LOCK, END }; + enum class SHADER_PASS_NPC_PBR_ANIM { + EYELASH_DAOTHV_ToSRO, TEETH_SRXO_ToSRO, EYE_DN_ToSRO, EYE_OCC, FACIAL_HAIR_DAOTHV_ToSRO, HEAD_HAIR_DAOTHV_ToSRO, HEADwtHAND_DSRXON_ToSRO, LOWER_DSRON_ToSRO, UPPER_DMRON_ToMRO, GLASSES_DMRON_ToMRO, EmissiveMetalness_DENMRO_ToMRO, MI_ClothSim_DSEN_ToSRO, MI_Troll_Club_DAENMROSRXO_To + , OUTLINE_READ, TEETH_SRXO_ToSRO__OUTLINE_WRITE, EYE_DN_ToSRO__OUTLINE_WRITE, HEADwtHAND_DSRXON_ToSRO__OUTLINE_WRITE, UPPER_DMRON_ToMRO__OUTLINE_WRITE, EmissiveMetalness_DENMRO_ToMRO__OUTLINE_WRITE, MI_ClothSim_DSEN_ToSRO__OUTLINE_WRITE + , END + }; enum class UI_STATE { GAMEPLAYER, SPELL, POTION, INVENTORY, END }; enum class EFFECT_TYPE { EFFECT, TRAIL, END }; diff --git a/Jusin154_Team3D/Client/Public/Client_Macro.h b/Jusin154_Team3D/Client/Public/Client_Macro.h index 23581ecff..cd522d1de 100644 --- a/Jusin154_Team3D/Client/Public/Client_Macro.h +++ b/Jusin154_Team3D/Client/Public/Client_Macro.h @@ -21,6 +21,7 @@ namespace Client { #define FX_UIEDITOR TEXT("FX_UIEDITOR") #define FX_UIINSTANCE TEXT("FX_UIINSTANCE") #define FX_VTXPOS TEXT("FX_VTXPOS") +#define FX_NPC_PBR_ANIM TEXT("FX_NPC_PBR_ANIM") #pragma endregion #pragma region MACRO_PROTOTYPE diff --git a/Jusin154_Team3D/Client/Public/NPC_Ollivander.h b/Jusin154_Team3D/Client/Public/NPC_Ollivander.h new file mode 100644 index 000000000..7e2dd976a --- /dev/null +++ b/Jusin154_Team3D/Client/Public/NPC_Ollivander.h @@ -0,0 +1,40 @@ +#pragma once + +#include "Client_Define.h" +#include "Unit.h" + +NS_BEGIN(Client) + +class CNPC_Ollivander final : public CUnit +{ +protected: + CNPC_Ollivander(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CNPC_Ollivander(const CNPC_Ollivander& Prototype); + virtual ~CNPC_Ollivander() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + virtual HRESULT Render_Shadow() override; +protected: + CInfoInstance* m_pInfoInstance = { nullptr }; + +protected: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + HRESULT Ready_Components(void* pArg); + HRESULT Bind_ShaderResources() override; + +public: + static CNPC_Ollivander* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr); + virtual void Free() override; +#ifdef _DEBUG + virtual void Describe_Entity() override; + +#endif // _DEBUG +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/State_Dead.h b/Jusin154_Team3D/Client/Public/State_Dead.h index fb79fec0f..1e40775d2 100644 --- a/Jusin154_Team3D/Client/Public/State_Dead.h +++ b/Jusin154_Team3D/Client/Public/State_Dead.h @@ -7,7 +7,7 @@ NS_BEGIN(Client) class CState_Dead final : public CState_Root { public: - typedef struct tagLand : public CState_Root::STATE_ROOT_DESC { + typedef struct tagDead : public CState_Root::STATE_ROOT_DESC { _float2 vDeadTimer = { 0.f, 2.f }; function funcLateUpdate = { nullptr }; }STATE_DEAD_DESC; diff --git a/Jusin154_Team3D/Client/Public/Troll.h b/Jusin154_Team3D/Client/Public/Troll.h index 00622ac3d..ef7b787fc 100644 --- a/Jusin154_Team3D/Client/Public/Troll.h +++ b/Jusin154_Team3D/Client/Public/Troll.h @@ -29,6 +29,7 @@ class CTroll final : public CMonster virtual void Update(_float fTimeDelta) override; virtual void Late_Update(_float fTimeDelta) override; virtual HRESULT Render() override; + virtual HRESULT Render_OutLine() override; virtual HRESULT Render_Shadow() override; virtual _vector Get_LockOnPos() override; virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr)override; @@ -51,6 +52,7 @@ class CTroll final : public CMonster _float4 m_vStartGripPos = { }; _float2 m_vStunTimer = { 0.f, 4.f }; _uint iIndex; + DAMAGE_INFO m_DamageInfo; class CEffectParts* m_pRight_Smoke = { nullptr }; class CEffectParts* m_pLeft_Smoke = { nullptr }; @@ -92,7 +94,6 @@ class CTroll final : public CMonster _float m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::END)] = {}; _float m_fMaxSkillCoolTime[ENUM_CLASS(TROLL_SKILL::END)] = { 20.f,20.f, 20.f, 20.f ,20.f }; - _float m_fRushTime = {}; _float m_fAttackDelay = {}; @@ -145,6 +146,9 @@ class CTroll final : public CMonster HRESULT Behavior_HitExitCheck(); void Behavior_HitExit(); + void Behavior_DeadEnter(); + HRESULT Behavior_DeadExitCheck(_float fTimeDelta); + void Behavior_DeadExit(); }; NS_END diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/BaseFlattenNormalMap.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/BaseFlattenNormalMap.png new file mode 100644 index 000000000..d8e1fd944 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/BaseFlattenNormalMap.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin new file mode 100644 index 000000000..459598ade --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:45edbad61d9d6f8891b2009ec64951195a58e0fa50134a9d3b3dd0c5e34bee30 +size 6393892 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.fbx new file mode 100644 index 000000000..838440947 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7fd7b3d203725b7044f2a72e4c7fda5981befcc2c607bfca596b0b6c0797c417 +size 3160204 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.xml new file mode 100644 index 000000000..b1a8459aa --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.xml @@ -0,0 +1,292 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander_Anim.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander_Anim.bin new file mode 100644 index 000000000..16e04855b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander_Anim.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c3d337a05c5621c027dec7cfd5345c13b8c46b243a072d4c8cf5c11d0d34039 +size 12951064 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander_Anim.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander_Anim.fbx new file mode 100644 index 000000000..0aa5ad418 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander_Anim.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:436a9c2d497061156640f0f2011616d41e0eacb3763eb86d18442bf4e2b4a193 +size 19497756 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/SK_NPC_OM_GerboldOllivander_Master.psk b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/SK_NPC_OM_GerboldOllivander_Master.psk new file mode 100644 index 000000000..57ee03c77 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/SK_NPC_OM_GerboldOllivander_Master.psk differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_DefaultGrey_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_DefaultGrey_D.png new file mode 100644 index 000000000..b414d5691 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_DefaultGrey_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Eye_IrisTint_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Eye_IrisTint_MSK.dds new file mode 100644 index 000000000..ab2620bf1 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Eye_IrisTint_MSK.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Eye_Iris_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Eye_Iris_D.dds new file mode 100644 index 000000000..600335fce Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Eye_Iris_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Eye_Iris_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Eye_Iris_D.png new file mode 100644 index 000000000..4bf9d62f9 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Eye_Iris_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Eye_Sclera_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Eye_Sclera_D.png new file mode 100644 index 000000000..6e082532d Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Eye_Sclera_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Eye_Wetness_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Eye_Wetness_N.dds new file mode 100644 index 000000000..3eacfd4ac Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Eye_Wetness_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_Head_EyeShadow_A.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_Head_EyeShadow_A.dds new file mode 100644 index 000000000..0aaa725e1 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_Head_EyeShadow_A.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_Head_Teeth_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_Head_Teeth_D.dds new file mode 100644 index 000000000..24effbef3 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_Head_Teeth_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_Head_Teeth_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_Head_Teeth_N.dds new file mode 100644 index 000000000..4d226e763 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_Head_Teeth_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_Head_Teeth_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_Head_Teeth_SRXO.dds new file mode 100644 index 000000000..a404651ed Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_Head_Teeth_SRXO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_D.dds new file mode 100644 index 000000000..4c20ec900 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_I.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_I.dds new file mode 100644 index 000000000..b62ebd88d Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_I.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_I.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_I.png new file mode 100644 index 000000000..6183b371c Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_I.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_IB.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_IB.dds new file mode 100644 index 000000000..51f222bee Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_IB.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_N.dds new file mode 100644 index 000000000..00692a518 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_R00_I.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_R00_I.dds new file mode 100644 index 000000000..ad391eecd Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_R00_I.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_R00_I.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_R00_I.png new file mode 100644 index 000000000..6034f8a25 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_R00_I.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_R01_I.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_R01_I.dds new file mode 100644 index 000000000..ae2b0898c Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_R01_I.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_R01_I.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_R01_I.png new file mode 100644 index 000000000..4c2a934e6 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_R01_I.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_R02_I.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_R02_I.dds new file mode 100644 index 000000000..e91bfef12 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_R02_I.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_R02_I.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_R02_I.png new file mode 100644 index 000000000..f69356cf0 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_R02_I.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_SRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_SRO.dds new file mode 100644 index 000000000..404f133d3 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Acc_Glasses01_SRO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Facial_Hair_Ollivander_DAO_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Facial_Hair_Ollivander_DAO_MSK.dds new file mode 100644 index 000000000..8260caea9 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Facial_Hair_Ollivander_DAO_MSK.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Facial_Hair_Ollivander_THV_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Facial_Hair_Ollivander_THV_MSK.dds new file mode 100644 index 000000000..9e2e7390f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Facial_Hair_Ollivander_THV_MSK.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Hair_Ollivander_DAO_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Hair_Ollivander_DAO_MSK.dds new file mode 100644 index 000000000..5bfee0f5f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Hair_Ollivander_DAO_MSK.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Hair_Ollivander_THV_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Hair_Ollivander_THV_MSK.dds new file mode 100644 index 000000000..c215eec11 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Hair_Ollivander_THV_MSK.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_D.dds new file mode 100644 index 000000000..d19c0f1fc Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_I.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_I.dds new file mode 100644 index 000000000..7d22544cc Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_I.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_I.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_I.png new file mode 100644 index 000000000..a793b52b5 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_I.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_IB.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_IB.dds new file mode 100644 index 000000000..868e4290b Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_IB.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_N.dds new file mode 100644 index 000000000..8968cc269 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_R00_I.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_R00_I.dds new file mode 100644 index 000000000..256414c39 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_R00_I.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_R00_I.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_R00_I.png new file mode 100644 index 000000000..19f1b8c27 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_R00_I.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_R01_I.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_R01_I.dds new file mode 100644 index 000000000..22447bd71 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_R01_I.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_R01_I.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_R01_I.png new file mode 100644 index 000000000..2787f2fe4 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_R01_I.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_R02_I.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_R02_I.dds new file mode 100644 index 000000000..4b8c88c7f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_R02_I.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_R02_I.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_R02_I.png new file mode 100644 index 000000000..4f973309d Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_R02_I.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_R03_I.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_R03_I.dds new file mode 100644 index 000000000..d3486926f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_R03_I.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_R03_I.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_R03_I.png new file mode 100644 index 000000000..fb98db8ee Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_R03_I.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_SRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_SRO.dds new file mode 100644 index 000000000..4f8151b34 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Low_Ollivander_SRO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Upp_Ollivander_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Upp_Ollivander_D.dds new file mode 100644 index 000000000..d0d3ee0b4 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Upp_Ollivander_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Upp_Ollivander_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Upp_Ollivander_MRO.dds new file mode 100644 index 000000000..fed4f59f9 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Upp_Ollivander_MRO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Upp_Ollivander_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Upp_Ollivander_N.dds new file mode 100644 index 000000000..3b309931e Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_HUM_M_Upp_Ollivander_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Old_M_Head_GerboldOllivander_WithHands_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Old_M_Head_GerboldOllivander_WithHands_D.dds new file mode 100644 index 000000000..c687e25d4 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Old_M_Head_GerboldOllivander_WithHands_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Old_M_Head_GerboldOllivander_WithHands_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Old_M_Head_GerboldOllivander_WithHands_N.dds new file mode 100644 index 000000000..b77c5a55c Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Old_M_Head_GerboldOllivander_WithHands_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Old_M_Head_Gerbold_Olivander_WithHands_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Old_M_Head_Gerbold_Olivander_WithHands_SRXO.dds new file mode 100644 index 000000000..a0f918e18 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Old_M_Head_Gerbold_Olivander_WithHands_SRXO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/VFX_T_SkinBurn_Alpha_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/VFX_T_SkinBurn_Alpha_D.dds new file mode 100644 index 000000000..9a7d13671 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/VFX_T_SkinBurn_Alpha_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.bin index 7ed6a145a..c3a633e78 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d0274b0376cad70728c71c7d0b596494402d8a480189d93e93a4c8d98086dbd2 -size 5154657 +oid sha256:a7d1e09cadbb9b893154e11dae7e8a4dbd6519c294fbca956cf2ba11fdfe4ed5 +size 5154246 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.xml index 3cbe11bcd..d24083c9d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.xml @@ -1,5 +1,5 @@ - + @@ -17,7 +17,7 @@ - + @@ -28,12 +28,12 @@ - + - + @@ -57,7 +57,7 @@ - + @@ -86,7 +86,7 @@ - + @@ -104,7 +104,7 @@ - + @@ -115,7 +115,7 @@ - + @@ -144,7 +144,7 @@ - + @@ -162,7 +162,7 @@ - + @@ -173,10 +173,10 @@ - + - + @@ -191,7 +191,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.xml index 61b4827cf..86e590f22 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.xml @@ -1,5 +1,5 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/SK_WPN_Troll_Club07.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/SK_WPN_Troll_Club07.xml index aa4a724b3..c8cfcc5db 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/SK_WPN_Troll_Club07.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/SK_WPN_Troll_Club07.xml @@ -1,5 +1,5 @@ - + @@ -21,7 +21,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/troll.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/troll.xml deleted file mode 100644 index 6d1d8c574..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/troll.xml +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl index 41166db92..edd08da29 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl @@ -229,7 +229,7 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In) - if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_METALNESS)) // Metallic + if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_METALNESS)) // Metallic Roughness Occ { float3 vMRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb; fMetallic = vMRO.r; @@ -238,7 +238,7 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In) vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic); } - else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_SPECULAR)) // Specular + else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_SPECULAR)) // Specular Roughness Occ { fMetallic = 0.f; diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl new file mode 100644 index 000000000..5d0bf49b5 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl @@ -0,0 +1,831 @@ + +#include "Engine_Shader_Defines.hlsli" + +float4x4 g_WorldMatrix, g_ViewMatrix, g_ProjMatrix; + +int g_bRimLight; +int g_bUseNormalMap; +int g_bDisolve; + +float4 g_vDisolveEdgeColor; +float4 g_vCamPosition; +float4 g_vOutLineColor; +float g_fFar; +float g_fOutLineScale; +float g_fOutLineThickness; +float g_fOutLinePower; +float g_fUsingSurfaceParams; + + +Texture2D g_DiffuseTexture; +Texture2D g_SpecularTexture; +Texture2D g_AmbientTexture; +Texture2D g_EmissiveTexture; +Texture2D g_HeightTexture; +Texture2D g_NormalTexture; +Texture2D g_ShininessTexture; +Texture2D g_OpacityTexture; +Texture2D g_DisplacementTexture; +Texture2D g_LightMapTexture; +Texture2D g_ReflectionTexture; +Texture2D g_BaseColorTexture; +Texture2D g_NormalCameraTexture; +Texture2D g_EmissionColorTexture; +Texture2D g_MetalnessTexture; +Texture2D g_Diffuse_RoughnessTexture; +Texture2D g_AmbientOcclusionTexture; +Texture2D g_UnknownTexture; +Texture2D g_SheenTexture; +Texture2D g_ClearcoadTexture; +Texture2D g_TransmissionTexture; +Texture2D g_Maya_BaseTexture; +Texture2D g_Maya_SpecularTexture; +Texture2D g_Maya_Specular_ColorTexture; +Texture2D g_Maya_Specular_RoughnessTexture; +Texture2D g_AnisotropyTexture; + + +Texture2D g_SurfaceParamsTexture; + + +int g_iBinded_Texture[27]; +matrix g_BoneMatrices[512]; + +struct VS_IN_MESH +{ + float3 vPosition : POSITION; + float3 vNormal : NORMAL; + float3 vTangent : TANGENT; + float3 vBinormal : BINORMAL; + float2 vTexcoord : TEXCOORD0; +}; + +struct VS_IN +{ + float3 vPosition : POSITION; + float3 vNormal : NORMAL; + float3 vTangent : TANGENT; + float3 vBinormal : BINORMAL; + float2 vTexcoord : TEXCOORD0; + + uint4 vBlendIndex : BLENDINDEX; + float4 vBlendWeight : BLENDWEIGHT; +}; +struct VS_OUT +{ + float4 vPosition : SV_Position; + float3 vNormal : NORMAL; + float3 vTangent : TANGENT; + float3 vBinormal : BINORMAL; + float2 vTexcoord : TEXCOORD0; + float4 vWorldPos : TEXCOORD1; + float4 vProjPos : TEXCOORD2; +}; +VS_OUT VS_MAIN_MESH(VS_IN_MESH In) +{ + VS_OUT Out; + + matrix matWV, matWVP; + matWV = mul(g_WorldMatrix, g_ViewMatrix); + matWVP = mul(matWV, g_ProjMatrix); + + Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP); + Out.vNormal = normalize(mul(vector(In.vNormal, 0.f), g_WorldMatrix)).xyz; + Out.vTangent = normalize(mul(vector(In.vTangent, 0.f), g_WorldMatrix)).xyz; + Out.vBinormal = normalize(mul(vector(In.vBinormal, 0.f), g_WorldMatrix)).xyz; + Out.vTexcoord = In.vTexcoord; + Out.vWorldPos = mul(vector(In.vPosition, 1.f), g_WorldMatrix); + Out.vProjPos = Out.vPosition; + return Out; +} + +VS_OUT VS_MAIN(VS_IN In) +{ + VS_OUT Out; + + float fWeightW = 1.f - (In.vBlendWeight.x + In.vBlendWeight.y + In.vBlendWeight.z); + + matrix BoneMatrix = + mul(g_BoneMatrices[In.vBlendIndex.x], In.vBlendWeight.x) + + mul(g_BoneMatrices[In.vBlendIndex.y], In.vBlendWeight.y) + + mul(g_BoneMatrices[In.vBlendIndex.z], In.vBlendWeight.z) + + mul(g_BoneMatrices[In.vBlendIndex.w], fWeightW); + + vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix); + vector vNormal = mul(vector(In.vNormal, 0.f), BoneMatrix); + vector vBinormal = mul(vector(In.vBinormal, 0.f), BoneMatrix); + vector vTangent = mul(vector(In.vTangent, 0.f), BoneMatrix); + + + matrix matWV, matWVP; + matWV = mul(g_WorldMatrix, g_ViewMatrix); + matWVP = mul(matWV, g_ProjMatrix); + + Out.vPosition = mul(vPosition, matWVP); + Out.vNormal = normalize(mul(vNormal, g_WorldMatrix)).xyz; + Out.vBinormal = normalize(mul(vBinormal, g_WorldMatrix)).xyz; + Out.vTangent = normalize(mul(vTangent, g_WorldMatrix)).xyz; + Out.vTexcoord = In.vTexcoord; + Out.vWorldPos = mul(vPosition, g_WorldMatrix); + Out.vProjPos = Out.vPosition; + return Out; +} + +VS_OUT VS_MAIN_OUTLINE_READ(VS_IN In) +{ + VS_OUT Out; + + float fWeightW = 1.f - (In.vBlendWeight.x + In.vBlendWeight.y + In.vBlendWeight.z); + + matrix BoneMatrix = + mul(g_BoneMatrices[In.vBlendIndex.x], In.vBlendWeight.x) + + mul(g_BoneMatrices[In.vBlendIndex.y], In.vBlendWeight.y) + + mul(g_BoneMatrices[In.vBlendIndex.z], In.vBlendWeight.z) + + mul(g_BoneMatrices[In.vBlendIndex.w], fWeightW); + + vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix); + vector vNormal = mul(vector(In.vNormal, 0.f), BoneMatrix); + vector vBinormal = mul(vector(In.vBinormal, 0.f), BoneMatrix); + vector vTangent = mul(vector(In.vTangent, 0.f), BoneMatrix); + vPosition.xyz += (vNormal.xyz * g_fOutLineThickness).xyz; + + + matrix matWV, matWVP; + matWV = mul(g_WorldMatrix, g_ViewMatrix); + matWVP = mul(matWV, g_ProjMatrix); + + Out.vPosition = mul(vPosition, matWVP); + Out.vNormal = normalize(mul(vNormal, g_WorldMatrix)).xyz; + Out.vBinormal = normalize(mul(vBinormal, g_WorldMatrix)).xyz; + Out.vTangent = normalize(mul(vTangent, g_WorldMatrix)).xyz; + Out.vTexcoord = In.vTexcoord; + Out.vWorldPos = mul(vPosition, g_WorldMatrix); + Out.vProjPos = Out.vPosition; + return Out; +} +struct VS_OUT_SHADOW +{ + float4 vPosition : SV_POSITION; + float4 vProjPos : TEXCOORD0; +}; + +VS_OUT_SHADOW VS_MAIN_SHADOW(VS_IN In) +{ + VS_OUT_SHADOW Out; + + float fWeightW = 1.f - (In.vBlendWeight.x + In.vBlendWeight.y + In.vBlendWeight.z); + + matrix BoneMatrix = mul(g_BoneMatrices[In.vBlendIndex.x], In.vBlendWeight.x) + + mul(g_BoneMatrices[In.vBlendIndex.y], In.vBlendWeight.y) + + mul(g_BoneMatrices[In.vBlendIndex.z], In.vBlendWeight.z) + + mul(g_BoneMatrices[In.vBlendIndex.w], fWeightW); + + vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix); + + matrix matWV, matWVP; + + matWV = mul(g_WorldMatrix, g_ViewMatrix); + matWVP = mul(matWV, g_ProjMatrix); + + Out.vPosition = mul(vPosition, matWVP); + Out.vProjPos = Out.vPosition; + + return Out; +} +struct PS_IN +{ + float4 vPosition : SV_Position; + float3 vNormal : NORMAL; + float3 vTangent : TANGENT; + float3 vBinormal : BINORMAL; + float2 vTexcoord : TEXCOORD0; + float4 vWorldPos : TEXCOORD1; + float4 vProjPos : TEXCOORD2; +}; + +struct PS_OUT +{ + float4 vAlbedo : SV_TARGET0; + float4 vNormal : SV_TARGET1; + float4 vDepth : SV_TARGET2; + float4 vColor : SV_Target3; + float4 vSurface : SV_Target4; +}; +struct PS_OUT_OUTLINE +{ + float4 vOutLine : SV_TARGET0; + float4 vNormal : SV_TARGET1; + float4 vDepth : SV_TARGET2; +}; + +PS_OUT_OUTLINE PS_MAIN_OUTLINE_READ(PS_IN In) +{ + PS_OUT_OUTLINE Out = (PS_OUT_OUTLINE) 0; + + float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord); + float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); + + float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix)); + + float3 vToView = normalize(g_vCamPosition.xyz - In.vWorldPos.xyz); + + float fNdotV = saturate(dot(vNormal, vToView)); + float fRim = saturate((1.0f - fNdotV) * g_fOutLineScale); + fRim = pow(fRim, g_fOutLinePower); + + Out.vOutLine = float4(g_vOutLineColor.rgb, fRim); + Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); + Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1) + (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z + (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터 + 1.f); + + return Out; +} + +PS_OUT PS_EYELASH_DAOTHV_ToSRO(PS_IN In) +{ + PS_OUT Out; + + float4 vDAO_Mask = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); + + float fDiffuseMask = vDAO_Mask.r; + float AlphaMask = vDAO_Mask.g; + float AoMask_Dao = vDAO_Mask.b; + + if (AlphaMask < 0.2f) { + discard; + } + float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord); + float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); + float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix)); + + float4 vTHV_Mask = g_DisplacementTexture.Sample(DefaultSampler, In.vTexcoord); + float RootTip = vTHV_Mask.r; + float SpecMask = vTHV_Mask.g; + float AoMask_Thv = vTHV_Mask.b; + + float3 vColorRoot = vDAO_Mask * 0.6f; + float3 vColorTip = vDAO_Mask; + float3 vBaseColor = lerp(vColorRoot, vColorTip, RootTip); + + + Out.vAlbedo = float4(fDiffuseMask, fDiffuseMask, fDiffuseMask, AlphaMask); + Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); + Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1) + (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z + (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터 + 1.f); + Out.vColor = float4(0.f, 0.f, 0.f, 1.f); + Out.vSurface = float4(lerp(0.7f, 0.3f, SpecMask), SpecMask * 0.5f, AoMask_Dao * AoMask_Thv, 0.f); + // SRO + return Out; +} + +PS_OUT PS_TEETH_SRXO_ToSRO(PS_IN In) +{ + PS_OUT Out; + + float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); + + if (vDiffuse.a < 0.2f) { + discard; + } + + float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord); + float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); + float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix)); + + float4 vSRXO_MASK = g_AnisotropyTexture.Sample(DefaultSampler, In.vTexcoord); + + Out.vAlbedo = vDiffuse; + Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); + Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1) + (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z + (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터 + 1.f); + Out.vColor = float4(0.f, 0.f, 0.f, 1.f); + Out.vSurface = float4(vSRXO_MASK.r, vSRXO_MASK.g, vSRXO_MASK.a, 0.f); + // SRO + return Out; +} + +PS_OUT PS_EYE_DN_SRO(PS_IN In) +{ + PS_OUT Out; + + float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); + + if (vDiffuse.a < 0.2f) { + discard; + } + + float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord); + float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); + float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix)); + + Out.vAlbedo = vDiffuse; + Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); + Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1) + (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z + (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터 + 1.f); + Out.vColor = float4(0.f, 0.f, 0.f, 1.f); + Out.vSurface = float4(0.5f, 0.5f, 1.f, 0.f); + // SRO + return Out; +} + +PS_OUT PS_EYE_OCC(PS_IN In) +{ + PS_OUT Out; + discard; + return Out; +} + +PS_OUT PS_FACIAL_HAIR_DAOTHV_ToSRO(PS_IN In) +{ + + PS_OUT Out; + + float4 vDAO_Mask = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); + + float fDiffuseMask = vDAO_Mask.r; + float AlphaMask = vDAO_Mask.g; + float AoMask_Dao = vDAO_Mask.b; + + if (AlphaMask < 0.2f) + { + discard; + } + float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord); + float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); + float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix)); + + float4 vTHV_Mask = g_DisplacementTexture.Sample(DefaultSampler, In.vTexcoord); + float RootTip = vTHV_Mask.r; + float SpecMask = vTHV_Mask.g; + float AoMask_Thv = vTHV_Mask.b; + + float3 vColorRoot = vDAO_Mask * 0.6f; + float3 vColorTip = vDAO_Mask; + float3 vBaseColor = lerp(vColorRoot, vColorTip, RootTip); + + + Out.vAlbedo = float4(fDiffuseMask, fDiffuseMask, fDiffuseMask, AlphaMask); + Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); + Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1) + (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z + (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터 + 1.f); + Out.vColor = float4(0.f, 0.f, 0.f, 1.f); + Out.vSurface = float4(lerp(0.7f, 0.3f, SpecMask), SpecMask * 0.5f, AoMask_Dao * AoMask_Thv, 0.f); + // SRO + return Out; +} + +PS_OUT PS_HEAD_HAIR_DAOTHV_ToSRO(PS_IN In) +{ + + PS_OUT Out; + + float4 vDAO_Mask = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); + + float fDiffuseMask = vDAO_Mask.r; + float AlphaMask = vDAO_Mask.g; + float AoMask_Dao = vDAO_Mask.b; + + if (AlphaMask < 0.2f) + { + discard; + } + float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord); + float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); + float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix)); + + float4 vTHV_Mask = g_DisplacementTexture.Sample(DefaultSampler, In.vTexcoord); + float RootTip = vTHV_Mask.r; + float SpecMask = vTHV_Mask.g; + float AoMask_Thv = vTHV_Mask.b; + + float3 vColorRoot = vDAO_Mask * 0.6f; + float3 vColorTip = vDAO_Mask; + float3 vBaseColor = lerp(vColorRoot, vColorTip, RootTip); + + + Out.vAlbedo = float4(fDiffuseMask, fDiffuseMask, fDiffuseMask, AlphaMask); + Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); + Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1) + (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z + (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터 + 1.f); + Out.vColor = float4(0.f, 0.f, 0.f, 1.f); + Out.vSurface = float4(lerp(0.7f, 0.3f, SpecMask), SpecMask * 0.5f, AoMask_Dao * AoMask_Thv, 0.f); + // SRO + return Out; +} + +PS_OUT PS_HEADwtHAND_DSRXON_ToSRO(PS_IN In) +{ + PS_OUT Out; + + float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); + + if (vDiffuse.a < 0.2f) { + discard; + } + float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord); + float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); + float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix)); + + float4 vSRXO_Mask = g_AnisotropyTexture.Sample(DefaultSampler, In.vTexcoord); + + Out.vAlbedo = vDiffuse; + Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); + Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1) + (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z + (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터 + 1.f); + Out.vColor = float4(0.f, 0.f, 0.f, 1.f); + Out.vSurface = float4(vSRXO_Mask.r, vSRXO_Mask.g, vSRXO_Mask.a, 0.f); + // SRO + return Out; +} + +PS_OUT PS_LOWER_DSRON_ToSRO(PS_IN In) +{ + PS_OUT Out; + + float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); + + if (vDiffuse.a < 0.2f) { + discard; + } + float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord); + float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); + float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix)); + + float4 vSRO_Mask = g_SpecularTexture.Sample(DefaultSampler, In.vTexcoord); + + Out.vAlbedo = vDiffuse; + Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); + Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1) + (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z + (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터 + 1.f); + Out.vColor = float4(0.f, 0.f, 0.f, 1.f); + Out.vSurface = float4(vSRO_Mask.r, vSRO_Mask.g, vSRO_Mask.b, 0.f); + // SRO + return Out; +} + +PS_OUT PS_UPPER_DMRON_ToMRO(PS_IN In) +{ + PS_OUT Out; + + float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); + + if (vDiffuse.a < 0.2f) { + discard; + } + float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord); + float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); + float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix)); + + float4 vMRO_Mask = g_MetalnessTexture.Sample(DefaultSampler, In.vTexcoord); + + Out.vAlbedo = vDiffuse; + Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); + Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1) + (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z + (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터 + 1.f); + Out.vColor = float4(0.f, 0.f, 0.f, 1.f); + Out.vSurface = float4(vMRO_Mask.r, vMRO_Mask.g, vMRO_Mask.b, 0.f); + // MRO + return Out; +} + +PS_OUT PS_GLASSES_DMRON_ToMRO(PS_IN In) +{ + PS_OUT Out; + + float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); + + if (vDiffuse.a < 0.2f) { + discard; + } + float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord); + float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); + float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix)); + + float4 vMRO_Mask = g_MetalnessTexture.Sample(DefaultSampler, In.vTexcoord); + + Out.vAlbedo = vDiffuse; + Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); + Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1) + (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z + (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터 + 1.f); + Out.vColor = float4(0.f, 0.f, 0.f, 1.f); + Out.vSurface = float4(vMRO_Mask.r, vMRO_Mask.g, vMRO_Mask.b, 0.f); + // SRO + return Out; +} + +PS_OUT PS_EmissiveMetalness_DENMRO_ToMRO(PS_IN In) +{ + PS_OUT Out; + + float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); + float4 vEmissive = g_EmissiveTexture.Sample(DefaultSampler, In.vTexcoord); + vDiffuse.rgb += vEmissive.rgb; + if (vDiffuse.a < 0.2f) { + discard; + } + float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord); + float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); + float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix)); + + float4 vMRO_Mask = g_MetalnessTexture.Sample(DefaultSampler, In.vTexcoord); + + Out.vAlbedo = vDiffuse; + Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); + Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1) + (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z + (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터 + 1.f); + Out.vColor = float4(0.f, 0.f, 0.f, 1.f); + Out.vSurface = float4(vMRO_Mask.r, vMRO_Mask.g, vMRO_Mask.b, 0.f); + // SRO + return Out; +} + +PS_OUT PS_MI_ClothSim_DSEN_ToSRO(PS_IN In) +{ + PS_OUT Out; + + float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); + float4 vEmissive = g_EmissiveTexture.Sample(DefaultSampler, In.vTexcoord); + vDiffuse.rgb += vEmissive.rgb; + if (vDiffuse.a < 0.2f) { + discard; + } + float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord); + float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); + float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix)); + + float4 vSpecular_Mask = g_SpecularTexture.Sample(DefaultSampler, In.vTexcoord); + + Out.vAlbedo = vDiffuse; + Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); + Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1) + (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z + (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터 + 1.f); + Out.vColor = float4(0.f, 0.f, 0.f, 1.f); + Out.vSurface = float4(vSpecular_Mask.r, 0.5f, 1.f, 0.f); + // SRO + return Out; +} + +PS_OUT PS_Troll_Club_DAENMROSRXO_ToMROX(PS_IN In) +{ + PS_OUT Out; + + float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); + float4 vEmissive = g_EmissiveTexture.Sample(DefaultSampler, In.vTexcoord); + float4 vAmbient = g_AmbientTexture.Sample(DefaultSampler, In.vTexcoord); + vDiffuse.rgb += vEmissive.rgb; + vDiffuse.rgb += vAmbient.rgb; + if (vDiffuse.a < 0.2f) { + discard; + } + float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord); + float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); + float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix)); + + float4 vSRXO_Mask = g_AnisotropyTexture.Sample(DefaultSampler, In.vTexcoord); + float4 vMRO_MASK = g_MetalnessTexture.Sample(DefaultSampler, In.vTexcoord); + + float Roughness = vSRXO_Mask.g; + + float Occlusion = saturate(vSRXO_Mask.a * vMRO_MASK.b); + + Out.vAlbedo = vDiffuse; + Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); + Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1) + (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z + (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터 + 1.f); + Out.vColor = float4(0.f, 0.f, 0.f, 1.f); + Out.vSurface = float4(vMRO_MASK.r, Roughness, Occlusion, vSRXO_Mask.b); + // SRO + return Out; +} + +struct PS_IN_SHADOW +{ + float4 vPosition : SV_POSITION; + float4 vProjPos : TEXCOORD0; +}; + +struct PS_OUT_SHADOW +{ + float fShadowLightDepth : SV_TARGET0; +}; + +PS_OUT_SHADOW PS_MAIN_SHADOW(PS_IN_SHADOW In) +{ + PS_OUT_SHADOW Out = (PS_OUT_SHADOW) 0; + + Out.fShadowLightDepth = In.vProjPos.z; + + return Out; +} + +technique11 DefaultTechnique +{ + pass EYELASH_DAOTHV_ToSRO // 0 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_EYELASH_DAOTHV_ToSRO(); + } + pass TEETH_SRXO_ToSRO // 1 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_TEETH_SRXO_ToSRO(); + } + pass EYE_DN_ToSRO // 2 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_EYE_DN_SRO(); + } + pass EYE_OCC // 3 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_EYE_OCC(); + } + pass FACIAL_HAIR_DAOTHV_ToSRO // 4 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_FACIAL_HAIR_DAOTHV_ToSRO(); + } + pass HEAD_HAIR_DAOTHV_ToSRO // 5 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_HEAD_HAIR_DAOTHV_ToSRO(); + } + pass HEADwtHAND_DSRXON_ToSRO // 6 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_HEADwtHAND_DSRXON_ToSRO(); + } + pass LOWER_DSRON_ToSRO // 7 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_LOWER_DSRON_ToSRO(); + } + pass UPPER_DMRON_ToMRO // 8 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_UPPER_DMRON_ToMRO(); + } + pass GLASSES_DMRON_ToMRO // 9 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_GLASSES_DMRON_ToMRO(); + } + pass EmissiveMetalness_DENMRO_ToMRO // 10 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_EmissiveMetalness_DENMRO_ToMRO(); + } + pass MI_ClothSim_DSEN_ToSRO // 11 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_MI_ClothSim_DSEN_ToSRO(); + } + pass MI_Troll_Club_DAENMROSRXO_To // 12 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN_MESH(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_Troll_Club_DAENMROSRXO_ToMROX(); + } +///// + pass TEETH_SRXO_ToSRO__OUTLINE_READ // 13 + { + SetRasterizerState(RS_Front); + SetDepthStencilState(DSS_Default_OutLine_SRead, 2); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN_OUTLINE_READ(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_MAIN_OUTLINE_READ(); + } + pass TEETH_SRXO_ToSRO__OUTLINE_WRITE // 14 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default_OutLine_SWrite, 2); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_TEETH_SRXO_ToSRO(); + } + pass EYE_DN_ToSRO__OUTLINE_WRITE // 15 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default_OutLine_SWrite, 2); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_EYE_DN_SRO(); + } + pass HEADwtHAND_DSRXON_ToSRO__OUTLINE_WRITE // 16 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default_OutLine_SWrite, 2); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_HEADwtHAND_DSRXON_ToSRO(); + } + pass UPPER_DMRON_ToMRO__OUTLINE_WRITE // 17 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default_OutLine_SWrite, 2); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_UPPER_DMRON_ToMRO(); + } + pass EmissiveMetalness_DENMRO_ToMRO__OUTLINE_WRITE // 18 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default_OutLine_SWrite, 2); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_EmissiveMetalness_DENMRO_ToMRO(); + } + pass MI_ClothSim_DSEN_ToSRO__OUTLINE_WRITE // 19 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default_OutLine_SWrite, 2); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_MI_ClothSim_DSEN_ToSRO(); + } +/////// +} diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl index 5900f9e22..9f348d1d2 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl @@ -24,19 +24,38 @@ float g_fDisolveEdgeWidth; float4 g_vDisolveEdgeColor; float4 g_vCamPosition; -Texture2D g_DiffuseTexture; -Texture2D g_NormalTexture; Texture2D g_DAOTexture; Texture2D g_THVTexture; Texture2D g_SurfaceParamsTexture; -Texture2D g_TransmissionTexture; -Texture2D g_EmissiveTexture; -Texture2D g_AmbientTexture; -Texture2D g_AmbientOcclusionTexture; -Texture2D g_UnknownTexture; Texture2D g_DeadDisolveTexture; Texture2D g_DeadDisolveBurnTexture; +Texture2D g_DiffuseTexture; +Texture2D g_SpecularTexture; +Texture2D g_AmbientTexture; +Texture2D g_EmissiveTexture; +Texture2D g_HeightTexture; +Texture2D g_NormalTexture; +Texture2D g_ShininessTexture; +Texture2D g_OpacityTexture; +Texture2D g_DisplacementTexture; +Texture2D g_LightMapTexture; +Texture2D g_ReflectionTexture; +Texture2D g_BaseColorTexture; +Texture2D g_NormalCameraTexture; +Texture2D g_EmissionColorTexture; +Texture2D g_MetalnessTexture; +Texture2D g_Diffuse_RoughnessTexture; +Texture2D g_AmbientOcclusionTexture; +Texture2D g_UnknownTexture; +Texture2D g_SheenTexture; +Texture2D g_ClearcoadTexture; +Texture2D g_TransmissionTexture; +Texture2D g_Maya_BaseTexture; +Texture2D g_Maya_SpecularTexture; +Texture2D g_Maya_Specular_ColorTexture; +Texture2D g_Maya_Specular_RoughnessTexture; +Texture2D g_AnisotropyTexture; int g_iBinded_Texture[27]; diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl index e1ae3b5f2..bae2d8601 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl @@ -29,19 +29,39 @@ float2 g_vClipBoxLTPos; float g_fDisolveAmount; float g_fDisolveEdgeWidth; -Texture2D g_DiffuseTexture; -Texture2D g_NormalTexture; Texture2D g_DAOTexture; Texture2D g_THVTexture; Texture2D g_SurfaceParamsTexture; -Texture2D g_TransmissionTexture; -Texture2D g_EmissiveTexture; -Texture2D g_AmbientTexture; -Texture2D g_AmbientOcclusionTexture; -Texture2D g_UnknownTexture; Texture2D g_NoiseTexture; Texture2D g_CausticsTexture; +Texture2D g_DiffuseTexture; +Texture2D g_SpecularTexture; +Texture2D g_AmbientTexture; +Texture2D g_EmissiveTexture; +Texture2D g_HeightTexture; +Texture2D g_NormalTexture; +Texture2D g_ShininessTexture; +Texture2D g_OpacityTexture; +Texture2D g_DisplacementTexture; +Texture2D g_LightMapTexture; +Texture2D g_ReflectionTexture; +Texture2D g_BaseColorTexture; +Texture2D g_NormalCameraTexture; +Texture2D g_EmissionColorTexture; +Texture2D g_MetalnessTexture; +Texture2D g_Diffuse_RoughnessTexture; +Texture2D g_AmbientOcclusionTexture; +Texture2D g_UnknownTexture; +Texture2D g_SheenTexture; +Texture2D g_ClearcoadTexture; +Texture2D g_TransmissionTexture; +Texture2D g_Maya_BaseTexture; +Texture2D g_Maya_SpecularTexture; +Texture2D g_Maya_Specular_ColorTexture; +Texture2D g_Maya_Specular_RoughnessTexture; +Texture2D g_AnisotropyTexture; + int g_iBinded_Texture[AI_TEXTURE_TYPE_MAX]; Texture2D g_MaskingTexture; diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj index fcd2e5d01..b77eaaaf2 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj @@ -589,6 +589,10 @@ call Update_Shaders.bat + + Effect + 5.0 + Effect 5.0 diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters index 8f8abc4f4..9daa90333 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters @@ -1739,5 +1739,8 @@ 99.Define\SHADER + + 99.Define\SHADER + \ No newline at end of file diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index 45c073842..e9e7f6fdc 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -1764,7 +1764,7 @@ HRESULT CLoader::Loading_For_PhysXLevel() _wstring strFileName = L"Prototype_GameObject_" + file.path().stem().wstring(); - CModel* pModel = CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, szFilePath); + CModel* pModel = CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, szFilePath); /*For Prototype_Component_Model_*/ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, strFileName, pModel))) { @@ -1859,7 +1859,7 @@ HRESULT CLoader::Loading_For_Bloom() #pragma region HAIR futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.fbx", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), + MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), TEXT("Prototype_Component_SubTroll_Model") )); @@ -2271,6 +2271,14 @@ HRESULT CLoader::Loading_For_ObjectViewer() MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixIdentity(), TEXT("Desc_Box") )); + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixIdentity(), + TEXT("Prototype_Component_GerboldOlivander_Model") + )); + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander_Anim.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), + TEXT("Prototype_Component_GerboldOlivander_Anim_Model") + )); for (auto& job : futures) { diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h index b1fadc67f..b52ba7b07 100644 --- a/Jusin154_Team3D/Editor/Public/Editor_Define.h +++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h @@ -19,6 +19,9 @@ namespace Editor enum class MAPOBJECT_RENDER_TYPE { NORMAL, DECAL, GLASS }; enum class SHADER_PASS_ANIM { DEFAULT, SHADOW, CAPTURE, BLUR, HAIR, EYELASH, OUTLINE_WRITE, OUTLINE_READ, SPECTOR, END }; + enum class SHADER_PASS_NPC_PBR_ANIM { EYELASH_DAOTHV_ToSRO, TEETH_SRXO_ToSRO, EYE_DN_ToSRO, EYE_OCC, FACIAL_HAIR_DAOTHV_ToSRO, HEAD_HAIR_DAOTHV_ToSRO, HEADwtHAND_DSRXON_ToSRO, LOWER_DSRON_ToSRO, UPPER_DMRON_ToMRO, GLASSES_DMRON_ToMRO, EmissiveMetalness_DENMRO_ToMRO, MI_ClothSim_DSEN_ToSRO, MI_Troll_Club_DAENMROSRXO_To + , OUTLINE_READ, TEETH_SRXO_ToSRO__OUTLINE_WRITE, EYE_DN_ToSRO__OUTLINE_WRITE, HEADwtHAND_DSRXON_ToSRO__OUTLINE_WRITE, UPPER_DMRON_ToMRO__OUTLINE_WRITE, EmissiveMetalness_DENMRO_ToMRO__OUTLINE_WRITE, MI_ClothSim_DSEN_ToSRO__OUTLINE_WRITE + , END}; enum class SHADER_PASS_MESH { DEFAULT, SHADOW, SKYBOX, ALPHABLEND, EFFECT_ALPHABLEND, EFFECT_BLEND, EFFECT_ALPHABLEND_CULL, EFFECT_BLEND_CULL, CAPTURE, BLUR, EFFECT_ALPHABLEND_UVMOVE, MAPTOOL, GLASS, OUTLINE_WRITE, OUTLINE_READ, BLOOM, LAKE, END }; enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, ENV_TERRAIN_ANISO, SHADOW, END }; enum class SHADER_PASS_PARTICLE { EXPLOSION, END }; diff --git a/Jusin154_Team3D/Editor/Public/Editor_Macro.h b/Jusin154_Team3D/Editor/Public/Editor_Macro.h index 4f18a9b2d..25ed8e3dc 100644 --- a/Jusin154_Team3D/Editor/Public/Editor_Macro.h +++ b/Jusin154_Team3D/Editor/Public/Editor_Macro.h @@ -21,6 +21,7 @@ namespace Editor { #define FX_UIEDITOR TEXT("FX_UIEDITOR") #define FX_UIINSTANCE TEXT("FX_UIINSTANCE") #define FX_VTXPOS TEXT("FX_VTXPOS") +#define FX_NPC_PBR_ANIM TEXT("FX_NPC_PBR_ANIM") #pragma endregion #pragma region MACRO_PROTOTYPE diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl index 41166db92..edd08da29 100644 --- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl @@ -229,7 +229,7 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In) - if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_METALNESS)) // Metallic + if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_METALNESS)) // Metallic Roughness Occ { float3 vMRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb; fMetallic = vMRO.r; @@ -238,7 +238,7 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In) vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic); } - else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_SPECULAR)) // Specular + else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_SPECULAR)) // Specular Roughness Occ { fMetallic = 0.f; diff --git a/Jusin154_Team3D/Engine/Private/Material.cpp b/Jusin154_Team3D/Engine/Private/Material.cpp index 7dad02917..89b11dfdf 100644 --- a/Jusin154_Team3D/Engine/Private/Material.cpp +++ b/Jusin154_Team3D/Engine/Private/Material.cpp @@ -496,7 +496,7 @@ HRESULT CMaterial::UnbindAllMaterialTextures(CShader* shader) return S_OK; } -HRESULT CMaterial::Bind_SRV(CShader* pShader) +HRESULT CMaterial::Bind_SRV(CShader* pShader, MODEL eType) { if (FAILED(UnbindAllMaterialTextures(pShader))) { return E_FAIL; @@ -527,11 +527,16 @@ HRESULT CMaterial::Bind_SRV(CShader* pShader) break; case aiTextureType_SPECULAR: { - _float fUsingSurfaceParams = ((_float)iTextureType / (_float)AI_TEXTURE_TYPE_MAX); - pConstantName = "g_SurfaceParamsTexture"; - if (!m_SRVs[iTextureType].empty()) { - if (FAILED(pShader->Bind_RawValue("g_fUsingSurfaceParams", &fUsingSurfaceParams, sizeof(_float)))) { - return E_FAIL; + if (MODEL::PBR_ANIM == eType || MODEL::PBR_NONANIM == eType) { + pConstantName = "g_SpecularTexture"; + } + else { + pConstantName = "g_SurfaceParamsTexture"; + if (!m_SRVs[iTextureType].empty()) { + _float fUsingSurfaceParams = ((_float)iTextureType / (_float)AI_TEXTURE_TYPE_MAX); + if (FAILED(pShader->Bind_RawValue("g_fUsingSurfaceParams", &fUsingSurfaceParams, sizeof(_float)))) { + return E_FAIL; + } } } } break; @@ -542,37 +547,52 @@ HRESULT CMaterial::Bind_SRV(CShader* pShader) pConstantName = "g_EmissiveTexture"; break; case aiTextureType_HEIGHT: + pConstantName = "g_HeightTexture"; break; case aiTextureType_NORMALS: pConstantName = "g_NormalTexture"; break; case aiTextureType_SHININESS: + pConstantName = "g_ShininessTexture"; break; case aiTextureType_OPACITY: + pConstantName = "g_OpacityTexture"; break; case aiTextureType_DISPLACEMENT: + pConstantName = "g_DisplacementTexture"; break; case aiTextureType_LIGHTMAP: + pConstantName = "g_LightMapTexture"; break; case aiTextureType_REFLECTION: + pConstantName = "g_ReflectionTexture"; break; case aiTextureType_BASE_COLOR: + pConstantName = "g_BaseColorTexture"; break; case aiTextureType_NORMAL_CAMERA: + pConstantName = "g_NormalCameraTexture"; break; case aiTextureType_EMISSION_COLOR: + pConstantName = "g_EmissionColorTexture"; break; case aiTextureType_METALNESS: { - _float fUsingSurfaceParams = ((_float)iTextureType / (_float)AI_TEXTURE_TYPE_MAX); - pConstantName = "g_SurfaceParamsTexture"; - if (!m_SRVs[iTextureType].empty()) { - if (FAILED(pShader->Bind_RawValue("g_fUsingSurfaceParams", &fUsingSurfaceParams, sizeof(_float)))) { - return E_FAIL; + if (MODEL::PBR_ANIM == eType || MODEL::PBR_NONANIM == eType) { + pConstantName = "g_MetalnessTexture"; + } + else { + pConstantName = "g_SurfaceParamsTexture"; + if (!m_SRVs[iTextureType].empty()) { + _float fUsingSurfaceParams = ((_float)iTextureType / (_float)AI_TEXTURE_TYPE_MAX); + if (FAILED(pShader->Bind_RawValue("g_fUsingSurfaceParams", &fUsingSurfaceParams, sizeof(_float)))) { + return E_FAIL; + } } } } break; case aiTextureType_DIFFUSE_ROUGHNESS: + pConstantName = "g_Diffuse_RoughnessTexture"; break; case aiTextureType_AMBIENT_OCCLUSION: pConstantName = "g_AmbientOcclusionTexture"; @@ -581,27 +601,38 @@ HRESULT CMaterial::Bind_SRV(CShader* pShader) pConstantName = "g_UnknownTexture"; break; case aiTextureType_SHEEN: + pConstantName = "g_SheenTexture"; break; case aiTextureType_CLEARCOAT: + pConstantName = "g_ClearcoadTexture"; break; case aiTextureType_TRANSMISSION: pConstantName = "g_TransmissionTexture"; break; case aiTextureType_MAYA_BASE: + pConstantName = "g_Maya_BaseTexture"; break; case aiTextureType_MAYA_SPECULAR: + pConstantName = "g_Maya_SpecularTexture"; break; case aiTextureType_MAYA_SPECULAR_COLOR: + pConstantName = "g_Maya_Specular_ColorTexture"; break; case aiTextureType_MAYA_SPECULAR_ROUGHNESS: + pConstantName = "g_Maya_Specular_RoughnessTexture"; break; case aiTextureType_ANISOTROPY: { - _float fUsingSurfaceParams = ((_float)iTextureType / (_float)AI_TEXTURE_TYPE_MAX); - pConstantName = "g_SurfaceParamsTexture"; - if (!m_SRVs[iTextureType].empty()) { - if (FAILED(pShader->Bind_RawValue("g_fUsingSurfaceParams", &fUsingSurfaceParams, sizeof(_float)))) { - return E_FAIL; + if (MODEL::PBR_ANIM == eType || MODEL::PBR_NONANIM == eType) { + pConstantName = "g_AnisotropyTexture"; + } + else { + pConstantName = "g_SurfaceParamsTexture"; + if (!m_SRVs[iTextureType].empty()) { + _float fUsingSurfaceParams = ((_float)iTextureType / (_float)AI_TEXTURE_TYPE_MAX); + if (FAILED(pShader->Bind_RawValue("g_fUsingSurfaceParams", &fUsingSurfaceParams, sizeof(_float)))) { + return E_FAIL; + } } } } break; diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp index 3878e0908..f0d1ed31b 100644 --- a/Jusin154_Team3D/Engine/Private/Model.cpp +++ b/Jusin154_Team3D/Engine/Private/Model.cpp @@ -92,7 +92,28 @@ HRESULT CModel::Bind_Material(_uint iMeshIndex, CShader* pShader) if (iMaterialIndex >= m_iNumMaterials) { return E_FAIL; } - return m_Materials[iMaterialIndex]->Bind_SRV(pShader); + return m_Materials[iMaterialIndex]->Bind_SRV(pShader, m_eType); +} + +HRESULT CModel::Begin(_uint iMeshIndex, CShader* pShader, _bool OutLine) +{ + if (iMeshIndex >= m_iNumMeshes) { + return E_FAIL; + } + + _uint iMaterialIndex = m_Meshes[iMeshIndex]->Get_MaterialIndex(); + + if (iMaterialIndex >= m_iNumMaterials) { + return E_FAIL; + } + HRESULT hr = { E_FAIL }; + if (false == OutLine) { + hr = pShader->Begin(m_Materials[iMaterialIndex]->Get_UsingPass()); + } + else { + hr = pShader->Begin(m_Materials[iMaterialIndex]->Get_OutLinePass()); + } + return hr; } HRESULT CModel::Bind_BoneMatrices(_uint iMeshIndex, CShader* pShader, const _char* pConstantName) @@ -295,7 +316,7 @@ _bool CModel::Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform) m_bInitialRootRotSaved = false; } - if (m_bIsSecondFinishedAnim) + if (m_bIsSecondFinishedAnim && !m_bIsSecondLoop) { m_bSecondStopBlend = true; } @@ -386,7 +407,6 @@ void CModel::Set_Second_AnimationIndex(_uint BoneIndex, _uint iIndex, _bool isLo } else { - // 세컨드 애니 끄기 if (m_iCurrSecondAnimIndex != -1) m_Animations[m_iCurrSecondAnimIndex]->Depart_Animation(); @@ -1465,7 +1485,9 @@ HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _ if (FAILED(Ready_Materials(pModelFilePath))) { return E_FAIL; } - + if (MODEL::PBR_ANIM == m_eType || MODEL::PBR_NONANIM == m_eType) { + ParseMaterialXml(pModelFilePath); + } if (FAILED(Ready_Animations(m_Bones))) { return E_FAIL; } @@ -1500,6 +1522,9 @@ HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _ if (FAILED(Ready_Materials(pModelFilePath))) { return E_FAIL; } + if (MODEL::PBR_ANIM == m_eType || MODEL::PBR_NONANIM == m_eType) { + ParseMaterialXml(pModelFilePath); + } if (FAILED(Ready_Animations(m_Bones))) { return E_FAIL; @@ -1538,6 +1563,48 @@ void CModel::LoadAdditionalAnimations(const char* ModelFilePath) } } +void CModel::ParseMaterialXml(const _char* pFilePath) +{ + filesystem::path xmlFilePath = pFilePath; + xmlFilePath.replace_extension(".xml"); + + tinyxml2::XMLDocument xmlDoc; + if (xmlDoc.LoadFile(xmlFilePath.string().c_str()) != tinyxml2::XML_SUCCESS){ + return; + } + + tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Material"); + if (root == nullptr){ + return; + } + + _int iVisitIndex = 0; + + for (tinyxml2::XMLElement* pElement = root->FirstChildElement(); + pElement != nullptr; + pElement = pElement->NextSiblingElement(), ++iVisitIndex) + { + _int iOrderIndex = iVisitIndex; + { + const _char* szShaderIndex = pElement->Attribute("ShaderIndex"); + _int iShaderIndex = -1; + if (szShaderIndex != nullptr) { + iShaderIndex = atoi(szShaderIndex); + } + m_Materials[iOrderIndex]->Set_UsingPass(iShaderIndex); + } + + { + const _char* szShaderIndex = pElement->Attribute("OutLineWrite"); + _int iShaderIndex = -1; + if (szShaderIndex != nullptr) { + iShaderIndex = atoi(szShaderIndex); + } + m_Materials[iOrderIndex]->Set_OutLinePass(iShaderIndex); + } + + } +} _bool CModel::LoadData(const _char* filename) { @@ -1949,6 +2016,13 @@ void CModel::Free() void CModel::Describe_Entity() { GUI::Begin("Model_Desc"); + if (GUI::CollapsingHeader("ModelAnimations")) { + for (_uint i = 0; i < m_iNumAnimations; ++i) { + if (GUI::Button(m_Animations[i]->Get_Name().c_str())) { + Set_AnimationIndex(i, false); + } + } + } if (GUI::Button("SaveAnimIndexWithName")) { _wstring wstrPath = TEXT("../Bin/AnimIndex.txt"); HANDLE hFile = CreateFile(wstrPath.c_str(), diff --git a/Jusin154_Team3D/Engine/Private/Renderer.cpp b/Jusin154_Team3D/Engine/Private/Renderer.cpp index 28e1e1041..d8127586a 100644 --- a/Jusin154_Team3D/Engine/Private/Renderer.cpp +++ b/Jusin154_Team3D/Engine/Private/Renderer.cpp @@ -14,6 +14,7 @@ void CRenderer::Render() if (FAILED(m_pShader->Bind_RawValue("g_vResolution", &vResolution, sizeof(_float2)))) { assert(false); } + Render_Priority(); Render_Shadow(); Render_NonBlend(); diff --git a/Jusin154_Team3D/Engine/Public/Engine_Enum.h b/Jusin154_Team3D/Engine/Public/Engine_Enum.h index ac47dc5d9..732969a8a 100644 --- a/Jusin154_Team3D/Engine/Public/Engine_Enum.h +++ b/Jusin154_Team3D/Engine/Public/Engine_Enum.h @@ -32,7 +32,7 @@ enum class PXBODYSTATE { enum class MOUSEKEYSTATE { LBUTTON, RBUTTON, WBUTTON, XBUTTON }; enum class MOUSEMOVESTATE { X, Y, W }; enum class D3DTS { VIEW, PROJ, VIEW_INV, PROJ_INV, END }; -enum class MODEL { ANIM, NONANIM, PBR_NONANIM, PBR_ANIM, ENVIRONMENT, ANIM_LOCAL,NONANIM_LOCAL}; +enum class MODEL { ANIM, NONANIM, PBR_NONANIM, PBR_ANIM, ENVIRONMENT, ANIM_LOCAL,NONANIM_LOCAL, END}; enum class NAVI_POINT { A, B, C, END }; enum class NAVI_LINE { AB, BC, CA, END }; diff --git a/Jusin154_Team3D/Engine/Public/Material.h b/Jusin154_Team3D/Engine/Public/Material.h index c8abcc0e1..10f37e8e4 100644 --- a/Jusin154_Team3D/Engine/Public/Material.h +++ b/Jusin154_Team3D/Engine/Public/Material.h @@ -13,7 +13,11 @@ class ENGINE_DLL CMaterial final : public CBase public: HRESULT UnbindAllMaterialTextures(class CShader* shader); - HRESULT Bind_SRV(class CShader* pShader); + HRESULT Bind_SRV(class CShader* pShader, MODEL eType = MODEL::END); + _int Get_UsingPass() { return m_iUsingPass; } + void Set_UsingPass(_int iPass) { m_iUsingPass = iPass; } + _int Get_OutLinePass() { return m_iOutLinePass; } + void Set_OutLinePass(_int iPass) { m_iOutLinePass = iPass; } private: class CGameInstance* m_pGameInstance = { nullptr }; @@ -21,7 +25,8 @@ class ENGINE_DLL CMaterial final : public CBase ID3D11DeviceContext* m_pContext = { nullptr }; vector m_SRVs[AI_TEXTURE_TYPE_MAX]; - + _int m_iUsingPass = { -1 }; + _int m_iOutLinePass = { -1 }; #ifdef EDITOR_PROJECT public: diff --git a/Jusin154_Team3D/Engine/Public/Model.h b/Jusin154_Team3D/Engine/Public/Model.h index b0bc274f8..98a1b9347 100644 --- a/Jusin154_Team3D/Engine/Public/Model.h +++ b/Jusin154_Team3D/Engine/Public/Model.h @@ -32,19 +32,19 @@ class ENGINE_DLL CModel final : public CComponent virtual HRESULT Render_Indexed(_uint iMeshIndex, _uint IndexCount, _uint StartIndexLocation, _uint BaseVertexLocation); #pragma endregion #pragma region Animation - _bool Play_Animation(_float fTimeDelta, class CTransform* pTransform = nullptr); // 애니메이션에 델타타임을 넣어줌 - _bool Play_Anim(_float fTimeDelta, CTransform* pTransform); - _bool Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform); - void Set_AnimationIndex(_uint iIndex, _bool isLoop = true, _float fAmount = 1.f, _bool bRatio = false,_float fAnimSpeed = 1.f); - void Set_Second_AnimationIndex(_uint BoneIndex,_uint iIndex, _bool isLoop = false); - _bool IsFinishedAnim() const { return m_bIsFinishedAnim; } - _bool IsFinishedSecondAnim() const { return m_bIsSecondFinishedAnim; } - _bool IsLoopAnim() const { return m_bIsLoop; } - void Set_CurrentTrackPosition(_float TrackPosition); - const _char* Get_AnimList(_uint iIndex); - _float Get_CurrentTrackPosition(); - _float Get_CurrentTrackProgressRatio(); - _float Get_TrackProgressRatio(_uint iIndex); + _bool Play_Animation(_float fTimeDelta, class CTransform* pTransform = nullptr); // 애니메이션에 델타타임을 넣어줌 + _bool Play_Anim(_float fTimeDelta, CTransform* pTransform); + _bool Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform); + void Set_AnimationIndex(_uint iIndex, _bool isLoop = true, _float fAmount = 1.f, _bool bRatio = false,_float fAnimSpeed = 1.f); + void Set_Second_AnimationIndex(_uint BoneIndex, _uint iIndex, _bool isLoop = false); + _bool IsFinishedAnim() const { return m_bIsFinishedAnim; } + _bool IsFinishedSecondAnim() const { return m_bIsSecondFinishedAnim; } + _bool IsLoopAnim() const { return m_bIsLoop; } + void Set_CurrentTrackPosition(_float TrackPosition); + const _char* Get_AnimList(_uint iIndex); + _float Get_CurrentTrackPosition(); + _float Get_CurrentTrackProgressRatio(); + _float Get_TrackProgressRatio(_uint iIndex); size_t Get_AnimSize() { return m_Animations.size(); } void Set_PlayAnim(_bool bPlayAnim) { m_bPlayAnim = bPlayAnim; } @@ -59,26 +59,25 @@ class ENGINE_DLL CModel final : public CComponent void Set_BlendDuration(_float Duration) { m_fBlendDuration = Duration; } #pragma endregion #pragma region Mesh - const _char* Get_MeshName(_uint iIndex); - _uint Get_NumMeshes() const { return m_iNumMeshes; } - void Update_RootBone(_float Amount = 1.f); - void Initialize_RootBone(); + const _char* Get_MeshName(_uint iIndex); + _uint Get_NumMeshes() const { return m_iNumMeshes; } + void Update_RootBone(_float Amount = 1.f); + void Initialize_RootBone(); #pragma endregion #pragma region Bone HRESULT Bind_BoneMatrices(_uint iMeshIndex, class CShader* pShader, const _char* pConstantName); - const _float4x4* Get_BoneMatrixPtr(const _char* pBoneName) const; - _matrix Get_BoneMatrix(const _char* pBoneName) const; - _matrix Get_BoneLocalMatrix(const _char* pBoneName) const; + const _float4x4* Get_BoneMatrixPtr(const _char* pBoneName) const; + _matrix Get_BoneMatrix(const _char* pBoneName) const; + _matrix Get_BoneLocalMatrix(const _char* pBoneName) const; static _int Get_BoneIndex(const _char* pBoneName, vector Bones); // 본의 벡터와 이름을 넘겨주면 인덱스를 넘겨줌 ( n 순회 ) _int Get_BoneIndex(const _char* pBoneName) const; _matrix Get_BoneMatrix(_uint iBoneIndex); void Combined_BoneMatrix(); - #pragma endregion #pragma region Material - HRESULT Bind_Material(_uint iMeshIndex, class CShader* pShader); - + HRESULT Bind_Material(_uint iMeshIndex, class CShader* pShader); + HRESULT Begin(_uint iMeshIndex, class CShader* pShader, _bool OutLine = false); #pragma endregion void ComputeAnimation(_uint AnimIndex); @@ -209,6 +208,7 @@ class ENGINE_DLL CModel final : public CComponent void LoadAdditionalAnimations(const char* ModelFilePath); bool LoadData(const _char* filename); void LoadAnim(const _char* fileName); + void ParseMaterialXml(const _char* filePath); // virtual HRESULT Initialize(void* pArg) override;