From 30f23da39823c2fab5e23a884cad11e8b377e797 Mon Sep 17 00:00:00 2001 From: kimnuri Date: Thu, 11 Dec 2025 19:12:42 +0900 Subject: [PATCH] [add] Broom MRO [fix] Troll MRO --- Jusin154_Team3D/Client/Private/Loader.cpp | 2 +- .../Models/Monster/SubTroll/troll.bin | 4 +-- .../Models/Monster/SubTroll/troll.xml | 2 +- .../Resources/Models/Object/Broom/Broom.bin | 4 +-- .../Resources/Models/Object/Broom/Broom.xml | 31 +++++++++++++++++++ .../ShaderFiles/Shader_VtxAnimMesh.hlsl | 3 ++ .../Resources/ShaderFiles/Shader_VtxMesh.hlsl | 4 +++ Jusin154_Team3D/Editor/Private/Loader.cpp | 4 +-- 8 files changed, 46 insertions(+), 8 deletions(-) create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.xml diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 3e11caed1..558933423 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -1429,7 +1429,7 @@ HRESULT CLoader::Loading_For_GamePlay() return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Broom_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Weapon_Model"), 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 7ddc44122..7ed6a145a 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:f04cce1ecf05e937400056deaa1b5456b4ae5a3c45cb4904a5acd4df2613aec3 -size 5154648 +oid sha256:d0274b0376cad70728c71c7d0b596494402d8a480189d93e93a4c8d98086dbd2 +size 5154657 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 f9e00a65a..3cbe11bcd 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.xml @@ -176,7 +176,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.bin index b5c1e52bf..b8fe5dd2f 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5b338190be49b19a80802f95ba48039c62894fe788ebad7ef6198fe45af6f35b -size 1204588 +oid sha256:e2b1dcd3c90fefd7bc76dd7bc745959a3aef6e70205d15c534d729163c586128 +size 1204794 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.xml new file mode 100644 index 000000000..61b4827cf --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl index 0fed6234a..5900f9e22 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl @@ -266,6 +266,9 @@ PS_OUT PS_MAIN(PS_IN In) float4 vMtrlDiffuse = g_DiffuseTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord); float4 vSurface = g_SurfaceParamsTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord); + //if (vMtrlDiffuse.a < 0.3f){ + // discard; + //} if (true == g_bDisolve) { float4 vBurnColor = g_DeadDisolveBurnTexture.Sample(DefaultSampler, In.vTexcoord); diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl index 79b9b8820..2a516d0fc 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl @@ -261,6 +261,10 @@ PS_OUT PS_MAIN(PS_IN In) float4 vMtrlDiffuse = g_DiffuseTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord); float4 vSurface = g_SurfaceParamsTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord); + //if (vMtrlDiffuse.a < 0.3f) + //{ + // discard; + //} if (g_iBinded_Texture[AI_TEXTURE_TYPE_TRANSMISSION] != 0) { float4 vTransmission = g_TransmissionTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord); diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index 63f2ffdce..c77b97d06 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -2184,7 +2184,7 @@ HRESULT CLoader::Loading_For_ObjectViewer() TEXT("Prototype_Component_TombProtector_Model") )); futures.emplace_back(Deferred_ModelLoad( - MODEL::ANIM, "../Bin/Resources/Models/Monster/Troll/Troll.bin", XMMatrixIdentity(), + MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/Troll.fbx", XMMatrixIdentity(), TEXT("Prototype_Component_Troll_Model") )); @@ -2230,7 +2230,7 @@ HRESULT CLoader::Loading_For_ObjectViewer() TEXT("Prototype_Component_Wand_Model") )); futures.emplace_back(Deferred_ModelLoad( - MODEL::ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), TEXT("Prototype_Component_Broom_Model") )); futures.emplace_back(Deferred_ModelLoad(