diff --git a/Jusin154_Team3D/Client/Private/Blink.cpp b/Jusin154_Team3D/Client/Private/Blink.cpp index 6bde575b7..f8bdcea5e 100644 --- a/Jusin154_Team3D/Client/Private/Blink.cpp +++ b/Jusin154_Team3D/Client/Private/Blink.cpp @@ -197,7 +197,8 @@ HRESULT CBlink::Pre_Setting(CGameObject* pObject, void* pArg) m_pBlink_Swirl->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); - + m_pBlink_Circle->Get_Component()->Set_WorldMatrix(m_pOwner->Get_Component()->Get_XMWorldMatrix()); + m_pBlink_Circle2->Get_Component()->Set_WorldMatrix(m_pOwner->Get_Component()->Get_XMWorldMatrix()); m_pBlink_Distortion->Set_Visible(true); diff --git a/Jusin154_Team3D/Client/Private/Goblin.cpp b/Jusin154_Team3D/Client/Private/Goblin.cpp index 79cafe137..59db07b1e 100644 --- a/Jusin154_Team3D/Client/Private/Goblin.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin.cpp @@ -83,6 +83,9 @@ void CGoblin::Priority_Update(_float fTimeDelta) void CGoblin::Update(_float fTimeDelta) { + if (m_bVisible == false) + return; + m_pFSM->Update_State(fTimeDelta); m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); @@ -135,6 +138,9 @@ void CGoblin::Update(_float fTimeDelta) void CGoblin::Late_Update(_float fTimeDelta) { + if (m_bVisible == false) + return; + __super::Late_Update(fTimeDelta); if (true == m_pCharacter_Controller->IsActive()) { m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition()); diff --git a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp index 935b8fe42..90d355e33 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp @@ -82,6 +82,9 @@ void CGoblin_Mage::Priority_Update(_float fTimeDelta) void CGoblin_Mage::Update(_float fTimeDelta) { + if (m_bVisible == false) + return; + m_pFSM->Update_State(fTimeDelta); m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); @@ -124,6 +127,9 @@ void CGoblin_Mage::Update(_float fTimeDelta) void CGoblin_Mage::Late_Update(_float fTimeDelta) { + if (m_bVisible == false) + return; + __super::Late_Update(fTimeDelta); if (true == m_pCharacter_Controller->IsActive()) { m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition()); diff --git a/Jusin154_Team3D/Client/Private/Transformation.cpp b/Jusin154_Team3D/Client/Private/Transformation.cpp index dec9b8515..76f78cbca 100644 --- a/Jusin154_Team3D/Client/Private/Transformation.cpp +++ b/Jusin154_Team3D/Client/Private/Transformation.cpp @@ -220,6 +220,7 @@ void CTransformation::OnCollision(CGameObject* pOther, void* pDesc) m_pInfoInstance->ActiveAt_Interactive(XMLoadFloat4(&vCCTPos)); + CollisionDesc.pObject->Set_Visible(false); //m_pTransformCom->Set_WorldMatrix(CollisionDesc.pObject->Get_Component()->Get_Actor()->getGlobalPose()); diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Blink/Blink_Circle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Blink/Blink_Circle.bin index a1f6e759a..4a53b8263 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Blink/Blink_Circle.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Blink/Blink_Circle.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3bd05cdd2e2bf977bd5a3dc383e942c42b17d7a811e17fad58d61a5c664be1ca +oid sha256:928920916857d5a1746c1759b06eab37d376faae41a3e849eff0ce68ee1a2db7 size 1144 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Blink/Blink_Circle2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Blink/Blink_Circle2.bin index 72d6f0525..c719df431 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Blink/Blink_Circle2.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Blink/Blink_Circle2.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:61e76c76d41190974322470279f994bafe797060ca88967996bbfe35fceee858 +oid sha256:c9c1d39c9d61598af9ad9ef73e41208a3c6f239a699bf45179a2ece45c6a7880 size 1144 diff --git a/Jusin154_Team3D/Engine/Private/GameInstance.cpp b/Jusin154_Team3D/Engine/Private/GameInstance.cpp index d2908f2e2..49611c40d 100644 --- a/Jusin154_Team3D/Engine/Private/GameInstance.cpp +++ b/Jusin154_Team3D/Engine/Private/GameInstance.cpp @@ -840,9 +840,9 @@ HRESULT CGameInstance::Begin_MRT_NonClear(const _wstring& strMRTTag, ID3D11Depth return m_pRenderTarget_Manager->Begin_MRT_NonClear(strMRTTag, pDSV); } -HRESULT CGameInstance::Begin_MRT_Include_BackBuffer(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV) +HRESULT CGameInstance::Begin_MRT_Include_BackBuffer(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV, _bool isClear) { - return m_pRenderTarget_Manager->Begin_MRT_Include_BackBuffer(strMRTTag, pDSV); + return m_pRenderTarget_Manager->Begin_MRT_Include_BackBuffer(strMRTTag, pDSV , isClear); } HRESULT CGameInstance::Begin_MRT_NO_DepthStencil(const _wstring& strMRTTag) diff --git a/Jusin154_Team3D/Engine/Private/RenderTarget_Manager.cpp b/Jusin154_Team3D/Engine/Private/RenderTarget_Manager.cpp index a627e723b..6301ab80e 100644 --- a/Jusin154_Team3D/Engine/Private/RenderTarget_Manager.cpp +++ b/Jusin154_Team3D/Engine/Private/RenderTarget_Manager.cpp @@ -115,7 +115,7 @@ HRESULT CRenderTarget_Manager::Begin_MRT_NonClear(const _wstring& strMultiRender return S_OK; } -HRESULT CRenderTarget_Manager::Begin_MRT_Include_BackBuffer(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV) +HRESULT CRenderTarget_Manager::Begin_MRT_Include_BackBuffer(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV , _bool isClear) { m_pContext->OMGetRenderTargets(1, &m_pBackBufferRTV, &m_pOriginalDSV); @@ -135,15 +135,23 @@ HRESULT CRenderTarget_Manager::Begin_MRT_Include_BackBuffer(const _wstring& strM pRenderTargetViews[iNumRenderTargets++] = m_pBackBufferRTV; + + for (auto& pRenderTarget : *pMRTList) { - pRenderTarget->Clear(); + if (isClear == true) { + pRenderTarget->Clear(); + } + pRenderTargetViews[iNumRenderTargets++] = pRenderTarget->Get_RTV(); } + + if (0 == iNumRenderTargets) { return E_FAIL; } + m_pContext->OMSetRenderTargets(iNumRenderTargets, pRenderTargetViews, (nullptr == pDSV) ? m_pOriginalDSV : pDSV); return S_OK; diff --git a/Jusin154_Team3D/Engine/Private/Renderer.cpp b/Jusin154_Team3D/Engine/Private/Renderer.cpp index 53aeb003c..b6d5c7776 100644 --- a/Jusin154_Team3D/Engine/Private/Renderer.cpp +++ b/Jusin154_Team3D/Engine/Private/Renderer.cpp @@ -819,7 +819,7 @@ void CRenderer::Render_Blur_Mesh() return pSour->Get_Depth() > pDest->Get_Depth(); }); - if (FAILED(m_pGameInstance->Begin_MRT_Include_BackBuffer(L"MRT_Blur_Mesh"))) + if (FAILED(m_pGameInstance->Begin_MRT_Include_BackBuffer(L"MRT_Blur_Mesh", nullptr, false))) return; for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::BULR_MESH)]) diff --git a/Jusin154_Team3D/Engine/Public/GameInstance.h b/Jusin154_Team3D/Engine/Public/GameInstance.h index 45785c6e3..e50d5f035 100644 --- a/Jusin154_Team3D/Engine/Public/GameInstance.h +++ b/Jusin154_Team3D/Engine/Public/GameInstance.h @@ -170,7 +170,7 @@ class ENGINE_DLL CGameInstance final : public CBase HRESULT Add_MRT(const _wstring& strMultiRenderTargetKey, const _wstring& strRenderTargetKey); HRESULT Begin_MRT(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV = nullptr); HRESULT Begin_MRT_NonClear(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV = nullptr); - HRESULT Begin_MRT_Include_BackBuffer(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV = nullptr); + HRESULT Begin_MRT_Include_BackBuffer(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV = nullptr , _bool isClear = true); HRESULT Begin_MRT_NO_DepthStencil(const _wstring& strMRTTag); HRESULT End_MRT(); HRESULT Bind_RenderTarget(const _wstring& strTargetTag, class CShader* pShader, const _char* pConstantName); diff --git a/Jusin154_Team3D/Engine/Public/RenderTarget_Manager.h b/Jusin154_Team3D/Engine/Public/RenderTarget_Manager.h index 2da01ffb3..8b1170d45 100644 --- a/Jusin154_Team3D/Engine/Public/RenderTarget_Manager.h +++ b/Jusin154_Team3D/Engine/Public/RenderTarget_Manager.h @@ -14,7 +14,7 @@ class CRenderTarget_Manager final : public CBase HRESULT Add_MRT(const _wstring& strMultiRenderTargetKey, const _wstring& strRenderTargetKey); HRESULT Begin_MRT(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV); HRESULT Begin_MRT_NonClear(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV); - HRESULT Begin_MRT_Include_BackBuffer(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV); + HRESULT Begin_MRT_Include_BackBuffer(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV , _bool isClear); HRESULT Begin_MRT_NO_DepthStencil(const _wstring& strMRTTag); HRESULT End_MRT(); HRESULT Bind_RenderTarget(const _wstring& strTargetTag, class CShader* pShader, const _char* pConstantName);