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 2f0ca07fa..2508cc975 100644 --- a/Jusin154_Team3D/Client/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp @@ -73,8 +73,8 @@ HRESULT CEffectPool::Initialize(void* pArg) 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/Mage_Down_Attack.cpp b/Jusin154_Team3D/Client/Private/Mage_Down_Attack.cpp index 3191a3526..14c4221e7 100644 --- a/Jusin154_Team3D/Client/Private/Mage_Down_Attack.cpp +++ b/Jusin154_Team3D/Client/Private/Mage_Down_Attack.cpp @@ -5,6 +5,7 @@ #include "EffectParts.h" #include "Wand.h" #include "Player.h" +#include "InfoInstance.h" CMage_Down_Attack::CMage_Down_Attack(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CEffect_Container{ pDevice, pContext } @@ -12,8 +13,10 @@ CMage_Down_Attack::CMage_Down_Attack(ID3D11Device* pDevice, ID3D11DeviceContext* } CMage_Down_Attack::CMage_Down_Attack(const CMage_Down_Attack& rhs) - : CEffect_Container(rhs) + : CEffect_Container(rhs), + m_pInfoInstance(CInfoInstance::GetInstance()) { + SAFE_ADDREF(m_pInfoInstance); } HRESULT CMage_Down_Attack::Initialize_Prototype() @@ -100,6 +103,18 @@ HRESULT CMage_Down_Attack::Pre_Setting(CGameObject* pObject, void* pArg) pRound_PT->Set_Visible(true); + CPlayer* pPlayer = static_cast(m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first); + + + if (pPlayer == nullptr) + return E_FAIL; + + _float fDistance = XMVectorGetX(XMVector4Length(pPlayer->Get_WorldPostion() - Get_WorldPostion())); + + _float fShakeValue = clamp(30.f / fDistance, 1.f, 5.f); + + pPlayer->Start_CameraShake(0.6f, fShakeValue); + return S_OK; } @@ -152,7 +167,7 @@ void CMage_Down_Attack::OnCollision(CGameObject* pOther, void* pDesc) void CMage_Down_Attack::Free() { __super::Free(); - + SAFE_RELEASE(m_pInfoInstance); } #ifdef _DEBUG void CMage_Down_Attack::Describe_Entity() diff --git a/Jusin154_Team3D/Client/Private/Mage_Nomal_Attack.cpp b/Jusin154_Team3D/Client/Private/Mage_Nomal_Attack.cpp index c7e81eb99..90b466488 100644 --- a/Jusin154_Team3D/Client/Private/Mage_Nomal_Attack.cpp +++ b/Jusin154_Team3D/Client/Private/Mage_Nomal_Attack.cpp @@ -204,6 +204,15 @@ void CMage_Nomal_Attack::OnCollision(CGameObject* pOther, void* pDesc) m_pProj_PT1->Set_Visible(false); m_pProj_PT2->Set_Visible(false); + + CPlayer* pPlayer = static_cast(m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first); + + + if (pPlayer == nullptr) + return; + + pPlayer->Start_CameraShake(0.3f, 2.f); + } void CMage_Nomal_Attack::Free() 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.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index ac5dd6001..603ff43e6 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -312,6 +312,14 @@ void CPlayer::OnHit(CGameObject* pOther, CGameObject* pCaller) } #ifdef _DEBUG +void CPlayer::Start_CameraShake(_float fTime, _float fIntense) +{ + m_vCameraShakeTimer.x = 0.f; + m_vCameraShakeTimer.y = fTime; + m_fCameraShakeIntense = fIntense; + m_bCameraShake = true; +} + void CPlayer::Render_CameraCoordinateSystem() { m_Batch->Begin(); @@ -627,7 +635,7 @@ void CPlayer::Describe_Entity() if (false == m_bCameraShake && GUI::Button("Shake")) { m_bCameraShake = true; } - if (GUI::SliderFloat("m_fCameraShakeTime", &m_fCameraShakeTime, 0.125f, 5.f, "%.3f")) { + if (GUI::SliderFloat("m_fCameraShakeTime", &m_fCameraShakeTime, 0.125f, 0.f, "%.3f")) { m_vCameraShakeTimer.y = m_fCameraShakeTime; } GUI::SliderFloat("m_fCameraShakeIntense", &m_fCameraShakeIntense, 5.f, 20.f, "%.1f"); diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp index 34f444bda..d47a4daa2 100644 --- a/Jusin154_Team3D/Client/Private/Player_States.cpp +++ b/Jusin154_Team3D/Client/Private/Player_States.cpp @@ -882,8 +882,18 @@ HRESULT CPlayer::Behavior_CombatExitCheck() [this]() { m_bLookAt = true; }, 0.1f); Add_Event(pairAnimInfo.first, - [this]() { Throwing_Interactive(); }, + [this]() { + Throwing_Interactive(); + }, 0.2f); + + Add_Event(pairAnimInfo.first, + [this]() { + m_pGameInstance->SlowMotion(0.1f, 0.35f); + }, + 0.1f); + + } else if (nullptr != m_LockOnInfo.pInteractive) { m_pGrapInteractive = m_LockOnInfo.pInteractive; diff --git a/Jusin154_Team3D/Client/Private/Troll.cpp b/Jusin154_Team3D/Client/Private/Troll.cpp index 0660596ed..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; } @@ -331,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/TrollSwing.cpp b/Jusin154_Team3D/Client/Private/TrollSwing.cpp index dc8d4fff4..3af43f8a4 100644 --- a/Jusin154_Team3D/Client/Private/TrollSwing.cpp +++ b/Jusin154_Team3D/Client/Private/TrollSwing.cpp @@ -5,6 +5,7 @@ #include "EffectParts.h" #include "Wand.h" #include "Player.h" +#include "InfoInstance.h" CTrollSwing::CTrollSwing(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CEffect_Container{ pDevice, pContext } @@ -12,8 +13,10 @@ CTrollSwing::CTrollSwing(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) } CTrollSwing::CTrollSwing(const CTrollSwing& rhs) - : CEffect_Container(rhs) + : CEffect_Container(rhs), + m_pInfoInstance(CInfoInstance::GetInstance()) { + SAFE_ADDREF(m_pInfoInstance); } HRESULT CTrollSwing::Initialize_Prototype() @@ -92,6 +95,18 @@ HRESULT CTrollSwing::Pre_Setting(CGameObject* pObject, void* pArg) pRockPT->Set_Visible(true); pSmoke->Set_Visible(true); + CPlayer* pPlayer = static_cast(m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first); + + + if (pPlayer == nullptr) + return E_FAIL; + + _float fDistance = XMVectorGetX(XMVector4Length(pPlayer->Get_WorldPostion() - Get_WorldPostion())); + + _float fShakeValue = clamp(50.f / fDistance, 3.f, 10.f); + + pPlayer->Start_CameraShake(1.2f, fShakeValue); + return S_OK; } @@ -164,6 +179,7 @@ void CTrollSwing::Free() { __super::Free(); + SAFE_RELEASE(m_pInfoInstance); } #ifdef _DEBUG void CTrollSwing::Describe_Entity() diff --git a/Jusin154_Team3D/Client/Private/Troll_Rush_Hit.cpp b/Jusin154_Team3D/Client/Private/Troll_Rush_Hit.cpp index 1e9588849..3eb510cec 100644 --- a/Jusin154_Team3D/Client/Private/Troll_Rush_Hit.cpp +++ b/Jusin154_Team3D/Client/Private/Troll_Rush_Hit.cpp @@ -5,6 +5,7 @@ #include "EffectParts.h" #include "Wand.h" #include "Player.h" +#include "InfoInstance.h" CTroll_Rush_Hit::CTroll_Rush_Hit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CEffect_Container{ pDevice, pContext } @@ -12,8 +13,10 @@ CTroll_Rush_Hit::CTroll_Rush_Hit(ID3D11Device* pDevice, ID3D11DeviceContext* pCo } CTroll_Rush_Hit::CTroll_Rush_Hit(const CTroll_Rush_Hit& rhs) - : CEffect_Container(rhs) + : CEffect_Container(rhs), + m_pInfoInstance(CInfoInstance::GetInstance()) { + SAFE_ADDREF(m_pInfoInstance); } HRESULT CTroll_Rush_Hit::Initialize_Prototype() @@ -94,6 +97,19 @@ HRESULT CTroll_Rush_Hit::Pre_Setting(CGameObject* pObject, void* pArg) pSmoke->Set_Visible(true); pRock_PT_35->Set_Visible(true); + + CPlayer* pPlayer = static_cast(m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first); + + + if (pPlayer == nullptr) + return E_FAIL; + + _float fDistance = XMVectorGetX(XMVector4Length(pPlayer->Get_WorldPostion() - Get_WorldPostion())); + + _float fShakeValue = clamp(40.f / fDistance, 3.f, 9.f); + + pPlayer->Start_CameraShake(0.8f, fShakeValue); + return S_OK; } @@ -166,6 +182,7 @@ void CTroll_Rush_Hit::Free() { __super::Free(); + SAFE_RELEASE(m_pInfoInstance); } #ifdef _DEBUG void CTroll_Rush_Hit::Describe_Entity() diff --git a/Jusin154_Team3D/Client/Private/Troll_States.cpp b/Jusin154_Team3D/Client/Private/Troll_States.cpp index 46332d5db..e9a87bf1c 100644 --- a/Jusin154_Team3D/Client/Private/Troll_States.cpp +++ b/Jusin154_Team3D/Client/Private/Troll_States.cpp @@ -504,6 +504,7 @@ void CTroll::Behavior_SlamEnter() Troll_Trail_Visible(true); m_pWeaponTrail->Set_Visible(true); + m_pWeaponTrail->Get_Component()->Reset_Trail(); Add_Event(pairAnimInfo.first, [this]() { @@ -846,6 +847,10 @@ void CTroll::Add_FSM() 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; 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/Mage_Down_Attack.h b/Jusin154_Team3D/Client/Public/Mage_Down_Attack.h index 116acdc82..2ff45b120 100644 --- a/Jusin154_Team3D/Client/Public/Mage_Down_Attack.h +++ b/Jusin154_Team3D/Client/Public/Mage_Down_Attack.h @@ -33,6 +33,8 @@ class CMage_Down_Attack final : public CEffect_Container private: _wstring m_wstrEffectName = {}; +private: + class CInfoInstance* m_pInfoInstance = { nullptr }; public: static CMage_Down_Attack* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); 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/Player.h b/Jusin154_Team3D/Client/Public/Player.h index b62aabad5..846062e92 100644 --- a/Jusin154_Team3D/Client/Public/Player.h +++ b/Jusin154_Team3D/Client/Public/Player.h @@ -22,6 +22,7 @@ class CPlayer final : public CUnit virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override; _bool Get_Aim() { return m_bAim; } void Set_SpellHit(_bool bHit) { m_bSpellHit = bHit; } + void Start_CameraShake(_float fTime, _float fIntense); #ifdef _DEBUG void Render_CameraCoordinateSystem(); #endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Public/Troll.h b/Jusin154_Team3D/Client/Public/Troll.h index b38bbb55c..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; @@ -93,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 = {}; diff --git a/Jusin154_Team3D/Client/Public/TrollSwing.h b/Jusin154_Team3D/Client/Public/TrollSwing.h index ce771cd49..c1874de65 100644 --- a/Jusin154_Team3D/Client/Public/TrollSwing.h +++ b/Jusin154_Team3D/Client/Public/TrollSwing.h @@ -32,6 +32,8 @@ class CTrollSwing final : public CEffect_Container virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; private: _wstring m_wstrEffectName = {}; +private: + class CInfoInstance* m_pInfoInstance = { nullptr }; public: static CTrollSwing* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Client/Public/Troll_Rush_Hit.h b/Jusin154_Team3D/Client/Public/Troll_Rush_Hit.h index 3825391d3..ac4852c2e 100644 --- a/Jusin154_Team3D/Client/Public/Troll_Rush_Hit.h +++ b/Jusin154_Team3D/Client/Public/Troll_Rush_Hit.h @@ -32,7 +32,8 @@ class CTroll_Rush_Hit final : public CEffect_Container virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; private: _wstring m_wstrEffectName = {}; - +private: + class CInfoInstance* m_pInfoInstance = { nullptr }; public: static CTroll_Rush_Hit* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual void Free() override; diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_2.bin index a80b6bb9e..a17668851 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_2.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_2.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c783b881079bf3de9e100abcb7da14b73e154e927ef0f1843d9682921168fb3f +oid sha256:8ea938fe43fd0485aa27f10690ccc03fb19ae9b3bf4883069b36de1f355c63ca size 1097 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/DownAttack/Down_R.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/DownAttack/Down_R.bin index ff76ef594..a7fbc0b1b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/DownAttack/Down_R.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/DownAttack/Down_R.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b6bee4aef8a79cdfb4bf0774d8030c1fb8dd74de73f7877459f5cb4664e83fe7 +oid sha256:5b298a643225ffa958dd7b0abea9971a36e28a50c6a96efb1d2ea0c173f8a94c size 1117 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/DownAttack/Round_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/DownAttack/Round_PT.bin index 4ab14a1d9..f232eae46 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/DownAttack/Round_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/DownAttack/Round_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f5e5a638c6ce4f8f8197a2f60b5b6032d6729dd19001e82008c1d6111e3dd355 +oid sha256:20c246c6fd9462e5f5f12980420ac6ada17273025f261400b068d2457d42391f size 1252 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/NomalAttack/Circle_Proj.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/NomalAttack/Circle_Proj.bin index 925aac3cf..0d7adcb24 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/NomalAttack/Circle_Proj.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/NomalAttack/Circle_Proj.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f9953c5a1d5d26855f5934d44376039565fef9ee629542776ef04711d6691492 +oid sha256:2dda968ab27993113c82bade6133469e03da85d4000cd6302e0a41101c91f666 size 983 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/NomalAttack/Hit_R.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/NomalAttack/Hit_R.bin index 754ede929..13894e1fd 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/NomalAttack/Hit_R.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/NomalAttack/Hit_R.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3dba1a364b5a2972ed7f481d533f7b1937a82ed8b164076460a4c3469ac77bf0 +oid sha256:56aff6174bc943cf8b0fdde77c7d972ae41c634716aa147f33339b961d86036b size 1132 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/EffectPool.cpp b/Jusin154_Team3D/Editor/Private/EffectPool.cpp index b613f74d9..beb0d7c67 100644 --- a/Jusin154_Team3D/Editor/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Editor/Private/EffectPool.cpp @@ -54,7 +54,7 @@ HRESULT CEffectPool::Initialize(void* pArg) m_isActiveMonsterEffectCreate = false; #endif // #ifdef 진우 - m_isActiveEffectCreate = false; + m_isActiveEffectCreate = true; m_isActiveMonsterEffectCreate = false; #endif // #ifdef 기무리 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/GameInstance.cpp b/Jusin154_Team3D/Engine/Private/GameInstance.cpp index cf3b1dfab..770b11204 100644 --- a/Jusin154_Team3D/Engine/Private/GameInstance.cpp +++ b/Jusin154_Team3D/Engine/Private/GameInstance.cpp @@ -133,6 +133,9 @@ HRESULT CGameInstance::Initialize_Engine(const ENGINE_DESC& EngineDesc, ID3D11De void CGameInstance::Update_Engine(_float fTimeDelta) { + + _float fExcuteTimeDelta = Update_SlowMotion(fTimeDelta); + m_pKey_Manager->Update(); m_pMouse_Manager->Update(); //m_pSound_Manager->Update(); @@ -142,17 +145,17 @@ void CGameInstance::Update_Engine(_float fTimeDelta) #endif // _DEBUG m_pPicking->Update(); - m_pObject_Manager->Priority_Update(fTimeDelta); + m_pObject_Manager->Priority_Update(fExcuteTimeDelta); m_pPipeLine->Update(); - m_pObject_Manager->Update(fTimeDelta); + m_pObject_Manager->Update(fExcuteTimeDelta); - m_pPhysX_Manager->Update(fTimeDelta); + m_pPhysX_Manager->Update(fExcuteTimeDelta); - m_pObject_Manager->Late_Update(fTimeDelta); + m_pObject_Manager->Late_Update(fExcuteTimeDelta); - m_pLevel_Manager->Update(fTimeDelta); + m_pLevel_Manager->Update(fExcuteTimeDelta); m_pObject_Manager->Clear_DeadObj(); //m_pObstacle_Manager->Refresh_Region(); @@ -238,9 +241,20 @@ void CGameInstance::BillBoard(CTransform* pTransform) } + #ifdef EDITOR_PROJECT +void CGameInstance::SlowMotion(_float fSlowIntense, _float fTime) +{ + if (fTime <= 0 || fSlowIntense <= 0) + return; + + m_isSlowMotion = true; + m_vSlowTime = _float2(0.f, fTime); + m_fSlowIntense = fSlowIntense; +} + void CGameInstance::Save_ModelFilePath(const _char* FilePath) { m_FilePaths.push_back(FilePath); @@ -269,6 +283,28 @@ size_t CGameInstance::ModelFilePathCount() return m_FilePaths.size(); } +_float CGameInstance::Update_SlowMotion(_float fTimeDelta) +{ + _float fExcuteTimeDelta = {}; + + if (m_isSlowMotion == false) + return fTimeDelta; + + m_vSlowTime.x += fTimeDelta; + + if (m_vSlowTime.x >= m_vSlowTime.y) // 시간을 넘겼다면 + { + m_isSlowMotion = false; + m_vSlowTime.x = 0.f; + } + else + { + fExcuteTimeDelta = m_fSlowIntense * fTimeDelta; + } + + return fExcuteTimeDelta; +} + #endif // EDITOR_PROJECT void CGameInstance::Render_Begin(const _float4* pClearColor) { 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 e663e8e05..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) @@ -1464,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; } @@ -1499,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; @@ -1537,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) { @@ -1948,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/GameInstance.h b/Jusin154_Team3D/Engine/Public/GameInstance.h index 325f70a41..73cc0d71c 100644 --- a/Jusin154_Team3D/Engine/Public/GameInstance.h +++ b/Jusin154_Team3D/Engine/Public/GameInstance.h @@ -26,6 +26,7 @@ class ENGINE_DLL CGameInstance final : public CBase _float Real_Random_Float(_float fMin, _float fMax); _float2 Get_ViewPortSize(); void BillBoard(CTransform* pTransform); + void SlowMotion(_float fSlowIntense, _float fTime); #pragma region GRAPHIC_DEVICE public: @@ -275,6 +276,9 @@ class ENGINE_DLL CGameInstance final : public CBase size_t ModelFilePathCount(); #endif +private: + _float Update_SlowMotion(_float fTimeDelta); + private: class CGraphic_Device* m_pGraphic_Device = { nullptr }; class CTimer_Manager* m_pTimer_Manager = { nullptr }; @@ -299,6 +303,11 @@ class ENGINE_DLL CGameInstance final : public CBase mt19937 m_Rng{ random_device{}() }; _float2 m_vViewPortSize = {}; + +private: + _bool m_isSlowMotion = {}; + _float2 m_vSlowTime = {}; + _float m_fSlowIntense = {}; #ifdef _DEBUG private: _float m_fTimer_PriorityUpdate = { 0.f }; 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;