commit
This commit is contained in:
@@ -125,6 +125,25 @@ HRESULT CEffectObject::Render_Blur()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CEffectObject::Disable_Light()
|
||||
{
|
||||
|
||||
if (m_pLightCom == nullptr)
|
||||
return;
|
||||
|
||||
m_pGameInstance->Delete_Light(CURRENT_LEVEL, m_pLightCom);
|
||||
|
||||
}
|
||||
|
||||
void CEffectObject::Add_Light()
|
||||
{
|
||||
if (m_pLightCom == nullptr)
|
||||
return;
|
||||
|
||||
m_pGameInstance->Add_Light(CURRENT_LEVEL, m_pLightCom);
|
||||
}
|
||||
|
||||
|
||||
HRESULT CEffectObject::Render_Bloom()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources()))
|
||||
|
||||
@@ -214,6 +214,8 @@ HRESULT CEffect_Container::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
m_pOwner = pObject;
|
||||
|
||||
|
||||
//Add_Chlid_Light();
|
||||
|
||||
Reset_EffectParts();
|
||||
|
||||
m_fAccTime = 0.f;
|
||||
@@ -225,6 +227,33 @@ HRESULT CEffect_Container::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
void CEffect_Container::Add_Chlid_Light()
|
||||
{
|
||||
for (auto& pParts : m_PartObjects)
|
||||
{
|
||||
CEffectParts* pEffect = static_cast<CEffectParts*>(pParts.second);
|
||||
|
||||
if (pEffect == nullptr)
|
||||
continue;
|
||||
|
||||
pEffect->Add_Light();
|
||||
}
|
||||
}
|
||||
|
||||
void CEffect_Container::Delete_Chlid_Light()
|
||||
{
|
||||
for (auto& pParts : m_PartObjects)
|
||||
{
|
||||
CEffectParts* pEffect = static_cast<CEffectParts*>(pParts.second);
|
||||
|
||||
if (pEffect == nullptr)
|
||||
continue;
|
||||
|
||||
pEffect->Disable_Light();
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CEffect_Container::Ready_Components(void* pArg)
|
||||
{
|
||||
CTransform::TRANSFORM_DESC TransformDesc = {};
|
||||
@@ -364,6 +393,8 @@ void CEffect_Container::Update_Event(_float fTimeDelta)
|
||||
pPart.second->Set_Visible(false);
|
||||
}
|
||||
}
|
||||
|
||||
//Delete_Chlid_Light();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -45,13 +45,7 @@ HRESULT CProtego::Initialize(void* pArg)
|
||||
m_wstrEffectName = L"Protego";
|
||||
|
||||
|
||||
m_Events.emplace(1.3f, [&]() {
|
||||
|
||||
m_pSphere->Set_Dissolve(true);
|
||||
m_pBottom->Set_Dissolve(true);
|
||||
m_pCircle->Set_Dissolve(true);
|
||||
|
||||
});
|
||||
|
||||
|
||||
m_fAmountSize = 0.1f;
|
||||
@@ -127,9 +121,6 @@ HRESULT CProtego::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
|
||||
m_fSizeAccTime = 0.f;
|
||||
|
||||
m_pSphere->Set_Dissolve(false);
|
||||
m_pBottom->Set_Dissolve(false);
|
||||
m_pCircle->Set_Dissolve(false);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -134,10 +134,8 @@ class CEffectObject abstract : public CPartObject
|
||||
public:
|
||||
HRESULT Load(const _char* pFilePath, LEVEL eLevel);
|
||||
|
||||
void Set_Dissolve(_bool isDissolve)
|
||||
{
|
||||
m_EffectInfo.isDissolve = isDissolve;
|
||||
}
|
||||
void Disable_Light();
|
||||
void Add_Light();
|
||||
protected:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
|
||||
@@ -26,6 +26,8 @@ class CEffect_Container abstract : public CContainerObject
|
||||
HRESULT Load_Package(const _char* pPath);
|
||||
_uint Get_SkillType() const { return m_iSkillType; }
|
||||
public:
|
||||
void Add_Chlid_Light();
|
||||
void Delete_Chlid_Light();
|
||||
|
||||
protected:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user