[Modify] 병합
This commit is contained in:
@@ -165,12 +165,18 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Eessential_Spell.h" />
|
||||
<ClInclude Include="..\Public\Eessential_Spell_Slot.h" />
|
||||
<ClInclude Include="..\Public\HpBarBG.h" />
|
||||
<ClInclude Include="..\Public\Levioso.h" />
|
||||
<ClInclude Include="..\Public\Magic_Icon.h" />
|
||||
<ClInclude Include="..\Public\Magic_Item.h" />
|
||||
<ClInclude Include="..\Public\Magic_Meter.h" />
|
||||
<ClInclude Include="..\Public\DecendoSide.h" />
|
||||
<ClInclude Include="..\Public\BombardSide.h" />
|
||||
<ClInclude Include="..\Public\LeviosoSide.h" />
|
||||
<ClInclude Include="..\public\MapElement.h" />
|
||||
<ClInclude Include="..\public\MapElement_Light.h" />
|
||||
<ClInclude Include="..\Public\Potion.h" />
|
||||
<ClInclude Include="..\Public\NomalJapSide.h" />
|
||||
<ClInclude Include="..\Public\Lumos.h" />
|
||||
<ClInclude Include="..\Public\Protego.h" />
|
||||
<ClInclude Include="..\Public\Bombard.h" />
|
||||
<ClInclude Include="..\Public\Broom.h" />
|
||||
@@ -275,12 +281,18 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Eessential_Spell.cpp" />
|
||||
<ClCompile Include="..\Private\Eessential_Spell_Slot.cpp" />
|
||||
<ClCompile Include="..\Private\HpBarBG.cpp" />
|
||||
<ClCompile Include="..\Private\Levioso.cpp" />
|
||||
<ClCompile Include="..\Private\Magic_Icon.cpp" />
|
||||
<ClCompile Include="..\Private\Magic_Item.cpp" />
|
||||
<ClCompile Include="..\Private\Magic_Meter.cpp" />
|
||||
<ClCompile Include="..\Private\DecendoSide.cpp" />
|
||||
<ClCompile Include="..\Private\BombardSide.cpp" />
|
||||
<ClCompile Include="..\Private\LeviosoSide.cpp" />
|
||||
<ClCompile Include="..\private\MapElement.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Light.cpp" />
|
||||
<ClCompile Include="..\Private\Potion.cpp" />
|
||||
<ClCompile Include="..\Private\NomalJapSide.cpp" />
|
||||
<ClCompile Include="..\Private\Lumos.cpp" />
|
||||
<ClCompile Include="..\Private\Protego.cpp" />
|
||||
<ClCompile Include="..\Private\Bombard.cpp" />
|
||||
<ClCompile Include="..\Private\Broom.cpp" />
|
||||
|
||||
@@ -257,7 +257,16 @@
|
||||
<Filter>04.Mechanic\Skill\Skill_Data</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Revelio.h">
|
||||
<Filter>02.GameObjects\Effect\Revelio</Filter>
|
||||
<Filter>02.GameObjects\Effect\Effects\Revelio</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\NomalJapSide.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\NomalJap\NomalJapSide</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Levioso.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Levioso</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Lumos.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Lumos</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Troll.h">
|
||||
<Filter>02.GameObjects\Monster\Troll</Filter>
|
||||
@@ -265,6 +274,15 @@
|
||||
<ClInclude Include="..\Public\Troll_Weapon.h">
|
||||
<Filter>02.GameObjects\Item\Troll_Weapon</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\LeviosoSide.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Levioso\LeviosoSide</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\DecendoSide.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Decendo\DecendoSide</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\BombardSide.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Bombard\BombardSide</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\GamePlay_Canvas.h">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas</Filter>
|
||||
</ClInclude>
|
||||
@@ -626,9 +644,15 @@
|
||||
<Filter Include="02.GameObjects\Environment\00.MapContainer\StreetContainer">
|
||||
<UniqueIdentifier>{e12a4228-0754-4217-b65d-7f962409f85c}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Revelio">
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Revelio">
|
||||
<UniqueIdentifier>{19a2325e-1184-4ee0-92e1-657bf184418c}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Levioso">
|
||||
<UniqueIdentifier>{b982d9d6-7561-43d4-b542-88483119047b}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Lumos">
|
||||
<UniqueIdentifier>{6bc9fd95-31bc-40f3-83cc-15ebb756b04a}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\Skill">
|
||||
<UniqueIdentifier>{c5b61cb3-bc5f-4429-8715-b309dcf054b2}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -648,6 +672,18 @@
|
||||
<Filter Include="02.GameObjects\Item\Troll_Weapon">
|
||||
<UniqueIdentifier>{1d6c078d-dddd-493d-a6f0-f2cac2e4107e}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\NomalJap\NomalJapSide">
|
||||
<UniqueIdentifier>{d260ec7e-150c-4a25-8e25-83eb141652bc}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Levioso\LeviosoSide">
|
||||
<UniqueIdentifier>{dc00cfd8-105f-419f-a4e4-109096258347}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Decendo\DecendoSide">
|
||||
<UniqueIdentifier>{1cb823f5-a6fe-4bef-9292-b49480a42524}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Bombard\BombardSide">
|
||||
<UniqueIdentifier>{b6076bdb-df15-498f-b951-6b2d0b777a0b}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\Spell_Canvas">
|
||||
<UniqueIdentifier>{257a5a09-b15b-4fd2-9615-054a00cf4b25}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -948,7 +984,16 @@
|
||||
<Filter>02.GameObjects\Environment\00.MapContainer\StreetContainer</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Revelio.cpp">
|
||||
<Filter>02.GameObjects\Effect\Revelio</Filter>
|
||||
<Filter>02.GameObjects\Effect\Effects\Revelio</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\NomalJapSide.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\NomalJap\NomalJapSide</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Levioso.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Levioso</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Lumos.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Lumos</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Skill_Data.cpp">
|
||||
<Filter>04.Mechanic\Skill\Skill_Data</Filter>
|
||||
@@ -968,6 +1013,15 @@
|
||||
<ClCompile Include="..\Private\Troll_Weapon.cpp">
|
||||
<Filter>02.GameObjects\Item\Troll_Weapon</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\LeviosoSide.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Levioso\LeviosoSide</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\DecendoSide.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Decendo\DecendoSide</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\BombardSide.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Bombard\BombardSide</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\GamePlay_Canvas.cpp">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas</Filter>
|
||||
</ClCompile>
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "PhysXEffectHitBox.h"
|
||||
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
|
||||
CBombard::CBombard(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
@@ -50,6 +51,7 @@ void CBombard::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
XMStoreFloat4(&m_vStartPos, m_pLight_Projectile->Get_WorldPostion());
|
||||
}
|
||||
|
||||
void CBombard::Update(_float fTimeDelta)
|
||||
@@ -61,9 +63,18 @@ void CBombard::Update(_float fTimeDelta)
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
_vector vOwnerLook = m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK);
|
||||
CTransform* pPJTransform = m_pLight_Projectile->Get_Component<CTransform>();
|
||||
|
||||
pPJTransform->Translation(m_vCameraLook * 2.f);
|
||||
|
||||
|
||||
|
||||
if (true == m_pGameInstance->SphereCast(0.125f, XMLoadFloat4(&m_vStartPos), m_vCameraLook, XMVectorGetX(XMVector3Length(m_vCameraLook * 2.f))
|
||||
, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, hitBuffer))
|
||||
{
|
||||
OnCollision();
|
||||
}
|
||||
|
||||
m_pLight_Projectile->Get_Component<CTransform>()->Translation(vOwnerLook * 2.f);
|
||||
}
|
||||
|
||||
void CBombard::Late_Update(_float fTimeDelta)
|
||||
@@ -72,6 +83,8 @@ void CBombard::Late_Update(_float fTimeDelta)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
XMStoreFloat4(&m_vEndPos, m_pLight_Projectile->Get_WorldPostion());
|
||||
|
||||
}
|
||||
|
||||
@@ -91,15 +104,20 @@ HRESULT CBombard::Pre_Setting(CGameObject* pObject)
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
CWand* pWand = static_cast<CPlayer*>(m_pOwner)->Get_PartObject<CWand>();
|
||||
|
||||
if (pWand == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
CPartObject* pShootPt = Get_PartObject<CEffectParts>("Bombard_Shoot_Pt");
|
||||
|
||||
CPartObject* pCircle0 = Get_PartObject<CEffectParts>("Bombard_Circle0");
|
||||
|
||||
pShootPt->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pLight_Projectile->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
pCircle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_vCameraLook = m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK);
|
||||
|
||||
pShootPt->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
m_pLight_Projectile->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
pCircle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
pCircle0->Set_Visible(true);
|
||||
pShootPt->Set_Visible(true);
|
||||
@@ -124,32 +142,6 @@ HRESULT CBombard::Ready_Components(void* pArg)
|
||||
|
||||
HRESULT CBombard::Ready_Child()
|
||||
{
|
||||
CPhysXEffectHitBox::PHYSXDUMMY_DESC Desc{};
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
|
||||
XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f));
|
||||
|
||||
|
||||
_vector vOwnerLook = m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK);
|
||||
|
||||
_float3 vDir = {};
|
||||
|
||||
XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f));
|
||||
|
||||
XMStoreFloat3(&vDir, vOwnerLook * 2.f);
|
||||
|
||||
Desc.vRotRPY = { 0.f, 0.f, 0.f };
|
||||
Desc.iSubKind = 70;
|
||||
Desc.vDeltaPos = vDir;
|
||||
Desc.vLifeTime = { 0.f, 2.f };
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPhysXEffectHitBox>(g_iStaticLevel, CURRENT_LEVEL, LAYER_HITBOX, &Desc, this, &m_pPhysHitBox))) {
|
||||
assert(false);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
SAFE_ADDREF(m_pPhysHitBox);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -183,15 +175,16 @@ CGameObject* CBombard::Clone(void* pArg, CGameObject* pOwner)
|
||||
void CBombard::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
//CTransform* pOtherTransform = p
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
_vector vPos = XMVectorSet(hitBuffer.block.position.x, hitBuffer.block.position.y, hitBuffer.block.position.z, 1.f);
|
||||
|
||||
|
||||
for (auto& pPair : m_PartObjects)
|
||||
{
|
||||
pPair.second->Set_Visible(true);
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, CollisionDesc->vWorldPos);
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
|
||||
m_pLight_Projectile->Set_Visible(false);
|
||||
Get_PartObject<CEffectParts>("Bombard_Shoot_Pt")->Set_Visible(false);
|
||||
|
||||
@@ -200,18 +193,12 @@ void CBombard::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
|
||||
Get_PartObject<CEffectParts>("Bombard_Circle0")->Set_Visible(false);
|
||||
|
||||
|
||||
m_pPhysHitBox->Set_Dead();
|
||||
SAFE_RELEASE(m_pPhysHitBox);
|
||||
}
|
||||
|
||||
void CBombard::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
if (m_pPhysHitBox != nullptr)
|
||||
SAFE_RELEASE(m_pPhysHitBox);
|
||||
|
||||
SAFE_RELEASE(m_pLight_Projectile);
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,205 @@
|
||||
#include "pch.h"
|
||||
#include "BombardSide.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Player.h"
|
||||
#include "Wand.h"
|
||||
#include "TrailObject.h"
|
||||
|
||||
|
||||
CBombardSide::CBombardSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CBombardSide::CBombardSide(const CBombardSide& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CBombardSide::Initialize_Prototype()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CBombardSide::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/BombardaSide")))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"BombardSide";
|
||||
|
||||
|
||||
m_pWandParticle = Get_PartObject<CEffectParts>("WandParticle_B_100");
|
||||
m_pWandLight = Get_PartObject<CEffectParts>("Wand_Light_B");
|
||||
m_pWandTrail = Get_PartObject<CTrailObject>();
|
||||
|
||||
SAFE_ADDREF(m_pWandLight);
|
||||
SAFE_ADDREF(m_pWandTrail);
|
||||
SAFE_ADDREF(m_pWandParticle);
|
||||
|
||||
m_fDuration = 1.f;
|
||||
|
||||
m_Events.emplace(0.4f, [&](){
|
||||
m_pWandTrail->Set_Visible(false);
|
||||
});
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CBombardSide::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CBombardSide::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
m_pWandTrail->Get_Component<CTrail>()->Trail_Update(fTimeDelta, pWand->Get_WorldMatrix());
|
||||
m_pWandParticle->Get_Component<CTransform>()->Set_WorldMatrix(pWand->Get_WorldMatrix());
|
||||
|
||||
}
|
||||
|
||||
void CBombardSide::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CBombardSide::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
Reset_EffectParts();
|
||||
|
||||
m_fAccTime = 0.f;
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pWandParticle->Set_Visible(true);
|
||||
|
||||
m_pWandLight->Set_Visible(true);
|
||||
|
||||
/*트레일 초기화 */
|
||||
m_pWandTrail->Set_Visible(true);
|
||||
m_pWandTrail->Get_Component<CTrail>()->Reset_Trail();
|
||||
|
||||
/*_vector pPos = pPlayer->Get_WandPos().r[3];*/
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CBombardSide::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CBombardSide::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CBombardSide* CBombardSide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CBombardSide* pInstance = new CBombardSide(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CBombardSide");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CBombardSide::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CBombardSide* pInstance = new CBombardSide(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CBombardSide");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CBombardSide::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
}
|
||||
|
||||
void CBombardSide::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
|
||||
Safe_Release(m_pWandLight);
|
||||
Safe_Release(m_pWandTrail);
|
||||
Safe_Release(m_pWandParticle);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CBombardSide::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
HRESULT CBombardSide::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,15 +34,15 @@ void CBuildingContainer::Update(_float fTimeDelta)
|
||||
|
||||
void CBuildingContainer::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_pOcclusionQueryCom->isDraw()){
|
||||
// if (m_pOcclusionQueryCom->isDraw()){
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
//}
|
||||
|
||||
for (auto& pCollisiton : m_ColiisonPartObjects){
|
||||
pCollisiton->Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::OCCLUSION, this);
|
||||
//m_pGameInstance->Add_RenderGroup(RENDER::OCCLUSION, this);
|
||||
}
|
||||
|
||||
HRESULT CBuildingContainer::Render()
|
||||
|
||||
@@ -63,34 +63,59 @@ void CCamPosition_Shoulder::Priority_Update(_float fTimeDelta)
|
||||
if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_SHOULDER))) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_pGameInstance->Key_Up(DIK_PGDN))
|
||||
{
|
||||
m_bLerp = !m_bLerp;
|
||||
}
|
||||
if (true == m_bMovable) {
|
||||
m_vAccDegreeXY.y += m_pGameInstance->Get_MouseMove().x * m_fMouseSensor;
|
||||
m_vAccDegreeXY.x += m_pGameInstance->Get_MouseMove().y * m_fMouseSensor;
|
||||
CMyTools::AdjustAccumulateDegreePitchYawDegree(m_vAccDegreeXY);
|
||||
}
|
||||
|
||||
m_vPosLerpTimer.x += fTimeDelta;
|
||||
if (m_vPosLerpTimer.x > m_vPosLerpTimer.y) {
|
||||
m_vPosLerpTimer.x = 0.f;
|
||||
Start_LerpShoulderPos();
|
||||
if (m_bLerp)
|
||||
{
|
||||
m_vPosLerpTimer.x += fTimeDelta;
|
||||
if (m_vPosLerpTimer.x > m_vPosLerpTimer.y) {
|
||||
m_vPosLerpTimer.x = 0.f;
|
||||
Start_LerpShoulderPos();
|
||||
}
|
||||
_vector vShoulderPos = XMVectorLerp(XMLoadFloat4(&m_StartPos), XMLoadFloat4(&m_DestPos), (m_vPosLerpTimer.x / m_vPosLerpTimer.y));
|
||||
m_pTransformCom->Set_State(STATE::POSITION, vShoulderPos);
|
||||
|
||||
_vector vRotCameraq = XMQuaternionRotationRollPitchYaw(XMConvertToRadians(m_vAccDegreeXY.x), XMConvertToRadians(m_vAccDegreeXY.y), 0.f);
|
||||
_vector vCameraLook = XMVector3Normalize(XMVector3Rotate(XMVectorSet(0.f, 0.f, 1.f, 0.f), vRotCameraq));
|
||||
|
||||
CTransform* pLookTransform = m_pTarget_LookPart->Get_Component<CTransform>();
|
||||
CTransform* pFollowTransform = m_pTarget_FollowPart->Get_Component<CTransform>();
|
||||
|
||||
pLookTransform->Set_State(STATE::POSITION, vShoulderPos + vCameraLook * (m_fCameraFocalLength * m_fBackFrontRatio));
|
||||
pFollowTransform->Set_State(STATE::POSITION, vShoulderPos - vCameraLook * (m_fCameraFocalLength * (1 - m_fBackFrontRatio)));
|
||||
}
|
||||
_vector vShoulderPos = XMVectorLerp(XMLoadFloat4(&m_StartPos), XMLoadFloat4(&m_DestPos), (m_vPosLerpTimer.x / m_vPosLerpTimer.y));
|
||||
m_pTransformCom->Set_State(STATE::POSITION, vShoulderPos);
|
||||
else
|
||||
{
|
||||
_vector vLook = XMVector3Normalize(XMLoadFloat3(&m_vShoulderPosRatio));
|
||||
_vector vRotq = XMQuaternionRotationRollPitchYaw(0.f, XMConvertToRadians(m_vAccDegreeXY.y), 0.f);
|
||||
vLook = XMVector3Normalize(XMVector3Rotate(vLook, vRotq));
|
||||
|
||||
_vector vRotCameraq = XMQuaternionRotationRollPitchYaw(XMConvertToRadians(m_vAccDegreeXY.x), XMConvertToRadians(m_vAccDegreeXY.y), 0.f);
|
||||
_vector vCameraLook = XMVector3Normalize(XMVector3Rotate(XMVectorSet(0.f, 0.f, 1.f, 0.f), vRotCameraq));
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pParentTransformCom->Get_State(STATE::POSITION) + XMVector3Normalize(vLook) * m_fShoulderDistance);
|
||||
_vector vShoulderPos = Get_WorldPostion();
|
||||
_vector vCameraLook = XMVectorSet(0.f, 0.f, 1.f, 0.f);
|
||||
_vector vRotCameraq = XMQuaternionRotationRollPitchYaw(XMConvertToRadians(m_vAccDegreeXY.x), XMConvertToRadians(m_vAccDegreeXY.y), 0.f);
|
||||
vCameraLook = XMVector3Normalize(XMVector3Rotate(vCameraLook, vRotCameraq));
|
||||
|
||||
CTransform* pLookTransform = m_pTarget_LookPart->Get_Component<CTransform>();
|
||||
CTransform* pFollowTransform = m_pTarget_FollowPart->Get_Component<CTransform>();
|
||||
CTransform* pLookTransform = m_pTarget_LookPart->Get_Component<CTransform>();
|
||||
CTransform* pFollowTransform = m_pTarget_FollowPart->Get_Component<CTransform>();
|
||||
|
||||
pLookTransform->Set_State(STATE::POSITION, vShoulderPos + vCameraLook * (m_fCameraFocalLength * m_fBackFrontRatio));
|
||||
pFollowTransform->Set_State(STATE::POSITION, vShoulderPos - vCameraLook * (m_fCameraFocalLength * (1 - m_fBackFrontRatio)));
|
||||
pLookTransform->Set_State(STATE::POSITION, vShoulderPos + vCameraLook * (m_fCameraFocalLength * m_fBackFrontRatio));
|
||||
pFollowTransform->Set_State(STATE::POSITION, vShoulderPos - vCameraLook * (m_fCameraFocalLength * (1 - m_fBackFrontRatio)));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void CCamPosition_Shoulder::Update(_float fTimeDelta)
|
||||
{
|
||||
GUI::DragFloat3("Camera Shoulder Position",(_float*)&m_vShoulderPosRatio,0.01f);
|
||||
GUI::DragFloat("Camera Shoulder Length",&m_fCameraFocalLength, 0.01f);
|
||||
if (m_pGameInstance->Key_Up(DIK_INSERT)) {
|
||||
|
||||
m_pBinded_Camera->Toggle_Priority();
|
||||
|
||||
@@ -41,7 +41,6 @@ void CCamera_Gaze::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CCamera_Gaze::Update(_float fTimeDelta)
|
||||
{
|
||||
GUI::Text("CAM_GAZE_PRIORITY : %d", m_iPriority);
|
||||
if (false == m_bActive) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
#include "PhysXEffectHitBox.h"
|
||||
#include "TrailObject.h"
|
||||
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
|
||||
|
||||
CDecendo::CDecendo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
@@ -53,11 +56,7 @@ void CDecendo::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
|
||||
if (nullptr != m_pPhysHitBox) {
|
||||
m_pPhysHitBox->Get_Component<CTransform>()->RewindMomentum();
|
||||
}
|
||||
|
||||
XMStoreFloat4(&m_vStartPos, m_pProjectile->Get_WorldPostion());
|
||||
}
|
||||
|
||||
void CDecendo::Update(_float fTimeDelta)
|
||||
@@ -73,11 +72,6 @@ void CDecendo::Update(_float fTimeDelta)
|
||||
m_pProjectile->Get_Component<CTransform>()->Translation(m_vCameraLook * 0.5f);
|
||||
|
||||
|
||||
if (nullptr != m_pPhysHitBox) {
|
||||
m_pPhysHitBox->Get_Component<CTransform>()->AccumulateMomentum(m_vCameraLook * 0.5f);
|
||||
}
|
||||
|
||||
|
||||
if (m_fAccTime > XM_2PI)
|
||||
return;
|
||||
|
||||
@@ -86,9 +80,14 @@ void CDecendo::Update(_float fTimeDelta)
|
||||
m_pProjectile_Blur->Get_Component<CTransform>()->Translation(m_vRotateUp * 0.2f * sinf(m_fAccTime));
|
||||
m_pProjectile->Get_Component<CTransform>()->Translation(m_vRotateUp * 0.2f * sinf(m_fAccTime));
|
||||
|
||||
if (nullptr != m_pPhysHitBox) {
|
||||
m_pPhysHitBox->Get_Component<CTransform>()->AccumulateMomentum(m_vRotateUp * 0.2f * sinf(m_fAccTime));
|
||||
|
||||
//TODO : 다시 위치 잡기
|
||||
if (true == m_pGameInstance->SphereCast(0.125f, XMLoadFloat4(&m_vStartPos), m_vCameraLook, XMVectorGetX(XMVector3Length(m_vCameraLook * 0.5f))
|
||||
, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, hitBuffer))
|
||||
{
|
||||
OnCollision();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void CDecendo::Late_Update(_float fTimeDelta)
|
||||
@@ -98,6 +97,8 @@ void CDecendo::Late_Update(_float fTimeDelta)
|
||||
|
||||
Get_PartObject<CTrailObject>()->Trail_Update(m_pProjectile->Get_Component<CTransform>()->Get_XMWorldMatrix(), fTimeDelta);
|
||||
|
||||
XMStoreFloat4(&m_vEndPos, m_pProjectile->Get_WorldPostion());
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
@@ -120,12 +121,18 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject)
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CPlayer*>(m_pOwner)->Get_PartObject<CWand>();
|
||||
|
||||
if (pWand == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
CPartObject* pCircle0 = Get_PartObject<CEffectParts>();
|
||||
|
||||
/* 초기 객체 위치 초기화 */
|
||||
pCircle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pProjectile->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pProjectile_Blur->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pProjectile->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
m_pProjectile_Blur->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
/* 초기 객체 비지블 */
|
||||
pCircle0->Set_Visible(true);
|
||||
@@ -163,24 +170,6 @@ HRESULT CDecendo::Ready_Components(void* pArg)
|
||||
|
||||
HRESULT CDecendo::Ready_Child()
|
||||
{
|
||||
CPhysXEffectHitBox::PHYSXDUMMY_DESC Desc{};
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
|
||||
XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f));
|
||||
|
||||
|
||||
Desc.vRotRPY = { 0.f, 0.f, 0.f };
|
||||
Desc.iSubKind = 70;
|
||||
Desc.vDeltaPos = _float3(0.f, 0.f, 0.f);
|
||||
Desc.vLifeTime = { 0.f, 1.f };
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPhysXEffectHitBox>(g_iStaticLevel, CURRENT_LEVEL, LAYER_HITBOX, &Desc, this, &m_pPhysHitBox))) {
|
||||
assert(false);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
SAFE_ADDREF(m_pPhysHitBox);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -214,13 +203,13 @@ CGameObject* CDecendo::Clone(void* pArg, CGameObject* pOwner)
|
||||
void CDecendo::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
//CTransform* pOtherTransform = p
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
_vector vPos = XMVectorSet(hitBuffer.block.position.x, hitBuffer.block.position.y, hitBuffer.block.position.z, 1.f);
|
||||
|
||||
|
||||
for (auto& pPair : m_PartObjects)
|
||||
{
|
||||
pPair.second->Set_Visible(true);
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, CollisionDesc->vWorldPos);
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
|
||||
@@ -240,18 +229,12 @@ void CDecendo::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
Get_PartObject<CTrailObject>()->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f));
|
||||
Get_PartObject<CTrailObject>()->Set_Visible(false);
|
||||
|
||||
|
||||
m_pPhysHitBox->Set_Dead();
|
||||
SAFE_RELEASE(m_pPhysHitBox);
|
||||
}
|
||||
|
||||
void CDecendo::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
if (m_pPhysHitBox != nullptr)
|
||||
SAFE_RELEASE(m_pPhysHitBox);
|
||||
|
||||
SAFE_RELEASE(m_pProjectile_Blur);
|
||||
SAFE_RELEASE(m_pProjectile);
|
||||
|
||||
|
||||
@@ -0,0 +1,194 @@
|
||||
#include "pch.h"
|
||||
#include "DecendoSide.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Player.h"
|
||||
#include "Wand.h"
|
||||
#include "TrailObject.h"
|
||||
|
||||
|
||||
CDecendoSide::CDecendoSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CDecendoSide::CDecendoSide(const CDecendoSide& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CDecendoSide::Initialize_Prototype()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CDecendoSide::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/DecendoSide")))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"DecendoSide";
|
||||
|
||||
m_pWandLight = Get_PartObject<CEffectParts>("Wand_Light_R");
|
||||
m_pWandTrail = Get_PartObject<CTrailObject>();
|
||||
|
||||
SAFE_ADDREF(m_pWandLight);
|
||||
SAFE_ADDREF(m_pWandTrail);
|
||||
|
||||
m_fDuration = 1.f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CDecendoSide::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CDecendoSide::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
m_pWandTrail->Get_Component<CTrail>()->Trail_Update(fTimeDelta, pWand->Get_WorldMatrix());
|
||||
|
||||
}
|
||||
|
||||
void CDecendoSide::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CDecendoSide::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
Reset_EffectParts();
|
||||
|
||||
m_fAccTime = 0.f;
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pWandLight->Set_Visible(true);
|
||||
|
||||
/*트레일 초기화 */
|
||||
m_pWandTrail->Set_Visible(true);
|
||||
m_pWandTrail->Get_Component<CTrail>()->Reset_Trail();
|
||||
|
||||
/*_vector pPos = pPlayer->Get_WandPos().r[3];*/
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CDecendoSide::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CDecendoSide::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CDecendoSide* CDecendoSide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CDecendoSide* pInstance = new CDecendoSide(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CDecendoSide");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CDecendoSide::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CDecendoSide* pInstance = new CDecendoSide(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CDecendoSide");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CDecendoSide::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
}
|
||||
|
||||
void CDecendoSide::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
|
||||
Safe_Release(m_pWandLight);
|
||||
Safe_Release(m_pWandTrail);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CDecendoSide::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
HRESULT CDecendoSide::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -74,13 +74,30 @@ HRESULT CEffectObject::Render_Blur()
|
||||
|
||||
SHADER_PASS_INSTANCE_MODEL BlurPass = {};
|
||||
|
||||
|
||||
if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NON_WORLD || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::BLEND_NOWORLD)
|
||||
{
|
||||
BlurPass = SHADER_PASS_INSTANCE_MODEL::NON_WORLD_BLUR;
|
||||
if (m_EffectInfo.isBlurNoEmissive == false)
|
||||
{
|
||||
BlurPass = SHADER_PASS_INSTANCE_MODEL::NON_WORLD_BLUR;
|
||||
}
|
||||
else
|
||||
{
|
||||
BlurPass = SHADER_PASS_INSTANCE_MODEL::BLUR_NO_WORLD_NO_EMISSIVE;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
BlurPass = SHADER_PASS_INSTANCE_MODEL::BLUR;
|
||||
if (m_EffectInfo.isBlurNoEmissive == false)
|
||||
{
|
||||
BlurPass = SHADER_PASS_INSTANCE_MODEL::BLUR;
|
||||
}
|
||||
else
|
||||
{
|
||||
BlurPass = SHADER_PASS_INSTANCE_MODEL::BLUR_NO_EMMISVE;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
for (_uint i = 0; i < m_pInstance_ModelCom->Get_NumMeshes(); i++)
|
||||
@@ -524,11 +541,11 @@ HRESULT CEffectObject::Bind_ShaderResources()
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_isDiffuseBlur", &m_EffectInfo.isDiffuseBlur, sizeof(_bool)))) {
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_isBlurNoEmissive", &m_EffectInfo.isBlurNoEmissive, sizeof(_bool)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_isMaskBlur", &m_EffectInfo.isMaskBlur, sizeof(_bool)))) {
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_isTexBlur", &m_EffectInfo.isTexBlur, sizeof(_bool)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -687,11 +704,6 @@ HRESULT CEffectObject::Bind_ShaderResources()
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -88,6 +88,11 @@ void CEffectParts::Late_Update(_float fTimeDelta)
|
||||
|
||||
}
|
||||
|
||||
_vector CEffectParts::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
|
||||
|
||||
HRESULT CEffectParts::Ready_Components(void* pArg)
|
||||
|
||||
@@ -9,6 +9,14 @@
|
||||
#include "Decendo.h"
|
||||
#include "Protego.h"
|
||||
#include "Revelio.h"
|
||||
#include "Levioso.h"
|
||||
|
||||
#include "BombardSide.h"
|
||||
#include "LeviosoSide.h"
|
||||
#include "DecendoSide.h"
|
||||
|
||||
#include "NomalJapSide.h"
|
||||
#include "Lumos.h"
|
||||
|
||||
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
@@ -158,6 +166,65 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::JAP_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
|
||||
|
||||
CNomalJapSide* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CNomalJapSide>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LEVIOSO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CLevioso* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CLevioso>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LUMOS, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CLumos* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CLumos>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CBombardSide* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CBombardSide>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::LEVIOSO_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CLeviosoSide* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CLeviosoSide>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::DESCENDO_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CDecendoSide* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CDecendoSide>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -208,11 +208,6 @@ void CEffect_Container::Update_Event(_float fTimeDelta)
|
||||
pPart.second->Set_Visible(false);
|
||||
}
|
||||
|
||||
if (m_pPhysHitBox != nullptr && m_pPhysHitBox->isDead() == false)
|
||||
{
|
||||
m_pPhysHitBox->Set_Dead();
|
||||
SAFE_RELEASE(m_pPhysHitBox);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -57,7 +57,46 @@ void CLevel_Field::Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CLevel_Field::Render()
|
||||
{
|
||||
SetWindowText(g_hWnd, TEXT("필드레벨"));
|
||||
_float fDeltaTimeSeconds = m_pGameInstance->Get_TimeDelta(TEXT("Timer_60"));
|
||||
|
||||
static _float fAccumulatedTimeSeconds = 0.0f;
|
||||
static _uint iFrameCountForFps = 0;
|
||||
static _float fCurrentFps = 0.0f;
|
||||
static _float fAverageFrameTimeMilliseconds = 0.0f;
|
||||
|
||||
fAccumulatedTimeSeconds += fDeltaTimeSeconds;
|
||||
++iFrameCountForFps;
|
||||
|
||||
if (fAccumulatedTimeSeconds >= 1.0f)
|
||||
{
|
||||
if (fAccumulatedTimeSeconds > 0.0f)
|
||||
{
|
||||
fCurrentFps = static_cast<_float>(iFrameCountForFps) / fAccumulatedTimeSeconds;
|
||||
if (fCurrentFps > 0.0f)
|
||||
{
|
||||
fAverageFrameTimeMilliseconds = 1000.0f / fCurrentFps;
|
||||
}
|
||||
}
|
||||
|
||||
fAccumulatedTimeSeconds = 0.0f;
|
||||
iFrameCountForFps = 0;
|
||||
}
|
||||
|
||||
_float fCurrentFrameTimeMilliseconds = fDeltaTimeSeconds * 1000.0f;
|
||||
|
||||
_tchar szWindowTitle[256] = {};
|
||||
|
||||
// 현재 프레임 시간 + 평균 FPS / 평균 프레임 타임(ms)
|
||||
_stprintf_s(
|
||||
szWindowTitle,
|
||||
TEXT("필드레벨입니다 | Frame: %.3f ms | Avg: %.3f ms | FPS: %.1f"),
|
||||
fCurrentFrameTimeMilliseconds,
|
||||
fAverageFrameTimeMilliseconds,
|
||||
fCurrentFps
|
||||
);
|
||||
|
||||
SetWindowText(g_hWnd, szWindowTitle);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -92,7 +92,46 @@ void CLevel_GamePlay::Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CLevel_GamePlay::Render()
|
||||
{
|
||||
SetWindowText(g_hWnd, TEXT("게임플레이레벨입니다"));
|
||||
_float fDeltaTimeSeconds = m_pGameInstance->Get_TimeDelta(TEXT("Timer_60"));
|
||||
|
||||
static _float fAccumulatedTimeSeconds = 0.0f;
|
||||
static _uint iFrameCountForFps = 0;
|
||||
static _float fCurrentFps = 0.0f;
|
||||
static _float fAverageFrameTimeMilliseconds = 0.0f;
|
||||
|
||||
fAccumulatedTimeSeconds += fDeltaTimeSeconds;
|
||||
++iFrameCountForFps;
|
||||
|
||||
if (fAccumulatedTimeSeconds >= 1.0f)
|
||||
{
|
||||
if (fAccumulatedTimeSeconds > 0.0f)
|
||||
{
|
||||
fCurrentFps = static_cast<_float>(iFrameCountForFps) / fAccumulatedTimeSeconds;
|
||||
if (fCurrentFps > 0.0f)
|
||||
{
|
||||
fAverageFrameTimeMilliseconds = 1000.0f / fCurrentFps;
|
||||
}
|
||||
}
|
||||
|
||||
fAccumulatedTimeSeconds = 0.0f;
|
||||
iFrameCountForFps = 0;
|
||||
}
|
||||
|
||||
_float fCurrentFrameTimeMilliseconds = fDeltaTimeSeconds * 1000.0f;
|
||||
|
||||
_tchar szWindowTitle[256] = {};
|
||||
|
||||
// 현재 프레임 시간 + 평균 FPS / 평균 프레임 타임(ms)
|
||||
_stprintf_s(
|
||||
szWindowTitle,
|
||||
TEXT("게임플레이레벨입니다 | Frame: %.3f ms | Avg: %.3f ms | FPS: %.1f"),
|
||||
fCurrentFrameTimeMilliseconds,
|
||||
fAverageFrameTimeMilliseconds,
|
||||
fCurrentFps
|
||||
);
|
||||
|
||||
SetWindowText(g_hWnd, szWindowTitle);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -120,6 +159,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
|
||||
/* Map Containters */
|
||||
/* 테스트용 맵 */
|
||||
|
||||
//CInfoInstance::GetInstance()->Load_MapObjects("ClientTest");
|
||||
/* 전체 맵 */
|
||||
CInfoInstance::GetInstance()->Load_MapObjects("Map1129");
|
||||
@@ -236,15 +276,15 @@ HRESULT CLevel_GamePlay::Ready_Layer_SkyBox(const _wstring& strLayerTag)
|
||||
|
||||
HRESULT CLevel_GamePlay::Ready_Layer_Monster()
|
||||
{
|
||||
//for (_uint i = 0; i < 2; ++i)
|
||||
//{
|
||||
// if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGoblin>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER,&i))) {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//}
|
||||
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CTroll>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
for (_uint i = 0; i < 2; ++i)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGoblin>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER,&i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CTroll>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -39,7 +39,46 @@ void CLevel_Logo::Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CLevel_Logo::Render()
|
||||
{
|
||||
SetWindowText(g_hWnd, TEXT("로고레벨입니다"));
|
||||
_float fDeltaTimeSeconds = m_pGameInstance->Get_TimeDelta(TEXT("Timer_60"));
|
||||
|
||||
static _float fAccumulatedTimeSeconds = 0.0f;
|
||||
static _uint iFrameCountForFps = 0;
|
||||
static _float fCurrentFps = 0.0f;
|
||||
static _float fAverageFrameTimeMilliseconds = 0.0f;
|
||||
|
||||
fAccumulatedTimeSeconds += fDeltaTimeSeconds;
|
||||
++iFrameCountForFps;
|
||||
|
||||
if (fAccumulatedTimeSeconds >= 1.0f)
|
||||
{
|
||||
if (fAccumulatedTimeSeconds > 0.0f)
|
||||
{
|
||||
fCurrentFps = static_cast<_float>(iFrameCountForFps) / fAccumulatedTimeSeconds;
|
||||
if (fCurrentFps > 0.0f)
|
||||
{
|
||||
fAverageFrameTimeMilliseconds = 1000.0f / fCurrentFps;
|
||||
}
|
||||
}
|
||||
|
||||
fAccumulatedTimeSeconds = 0.0f;
|
||||
iFrameCountForFps = 0;
|
||||
}
|
||||
|
||||
_float fCurrentFrameTimeMilliseconds = fDeltaTimeSeconds * 1000.0f;
|
||||
|
||||
_tchar szWindowTitle[256] = {};
|
||||
|
||||
// 현재 프레임 시간 + 평균 FPS / 평균 프레임 타임(ms)
|
||||
_stprintf_s(
|
||||
szWindowTitle,
|
||||
TEXT("로고 레벨입니다 | Frame: %.3f ms | Avg: %.3f ms | FPS: %.1f"),
|
||||
fCurrentFrameTimeMilliseconds,
|
||||
fAverageFrameTimeMilliseconds,
|
||||
fCurrentFps
|
||||
);
|
||||
|
||||
SetWindowText(g_hWnd, szWindowTitle);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,46 @@ void CLevel_Restart::Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CLevel_Restart::Render()
|
||||
{
|
||||
SetWindowText(g_hWnd, TEXT("리스타트레벨"));
|
||||
_float fDeltaTimeSeconds = m_pGameInstance->Get_TimeDelta(TEXT("Timer_60"));
|
||||
|
||||
static _float fAccumulatedTimeSeconds = 0.0f;
|
||||
static _uint iFrameCountForFps = 0;
|
||||
static _float fCurrentFps = 0.0f;
|
||||
static _float fAverageFrameTimeMilliseconds = 0.0f;
|
||||
|
||||
fAccumulatedTimeSeconds += fDeltaTimeSeconds;
|
||||
++iFrameCountForFps;
|
||||
|
||||
if (fAccumulatedTimeSeconds >= 1.0f)
|
||||
{
|
||||
if (fAccumulatedTimeSeconds > 0.0f)
|
||||
{
|
||||
fCurrentFps = static_cast<_float>(iFrameCountForFps) / fAccumulatedTimeSeconds;
|
||||
if (fCurrentFps > 0.0f)
|
||||
{
|
||||
fAverageFrameTimeMilliseconds = 1000.0f / fCurrentFps;
|
||||
}
|
||||
}
|
||||
|
||||
fAccumulatedTimeSeconds = 0.0f;
|
||||
iFrameCountForFps = 0;
|
||||
}
|
||||
|
||||
_float fCurrentFrameTimeMilliseconds = fDeltaTimeSeconds * 1000.0f;
|
||||
|
||||
_tchar szWindowTitle[256] = {};
|
||||
|
||||
// 현재 프레임 시간 + 평균 FPS / 평균 프레임 타임(ms)
|
||||
_stprintf_s(
|
||||
szWindowTitle,
|
||||
TEXT("리스타트레벨입니다 | Frame: %.3f ms | Avg: %.3f ms | FPS: %.1f"),
|
||||
fCurrentFrameTimeMilliseconds,
|
||||
fAverageFrameTimeMilliseconds,
|
||||
fCurrentFps
|
||||
);
|
||||
|
||||
SetWindowText(g_hWnd, szWindowTitle);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,262 @@
|
||||
#include "pch.h"
|
||||
#include "Levioso.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Player.h"
|
||||
#include "TrailObject.h"
|
||||
#include "PhysXEffectHitBox.h"
|
||||
|
||||
|
||||
CLevioso::CLevioso(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CLevioso::CLevioso(const CLevioso& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CLevioso::Initialize_Prototype()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CLevioso::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Levioso")))
|
||||
return E_FAIL;
|
||||
|
||||
m_pLeviosoPJ_0 = Get_PartObject<CEffectParts>("Levioso_PJ0");
|
||||
m_pLeviosoPJ_1 = Get_PartObject<CEffectParts>("Levioso_PJ1");
|
||||
m_pLeviosoTrail = Get_PartObject<CTrailObject>("Levioso_Trail");
|
||||
m_pTrail_PT_0 = Get_PartObject<CEffectParts>("Trail_PT0");
|
||||
|
||||
SAFE_ADDREF(m_pLeviosoPJ_0);
|
||||
SAFE_ADDREF(m_pLeviosoPJ_1);
|
||||
SAFE_ADDREF(m_pLeviosoTrail);
|
||||
SAFE_ADDREF(m_pTrail_PT_0);
|
||||
|
||||
m_wstrEffectName = L"Levioso";
|
||||
|
||||
m_fTurnSpeed = 10.f;
|
||||
m_fRange = 1.f;
|
||||
|
||||
m_fDuration = 2.f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CLevioso::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
|
||||
XMStoreFloat4(&m_vStartPos, m_pLeviosoPJ_0->Get_WorldPostion());
|
||||
|
||||
}
|
||||
|
||||
void CLevioso::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
m_pLeviosoPJ_0->Get_Component<CTransform>()->Translation(m_vOwnerLook * 0.25f);
|
||||
m_pLeviosoPJ_1->Get_Component<CTransform>()->Translation(m_vOwnerLook * 0.25f);
|
||||
|
||||
|
||||
m_pTrail_PT_0->Get_Component<CTransform>()->Translation(m_vOwnerLook * 0.25f);
|
||||
|
||||
if (true == m_pGameInstance->SphereCast(0.125f, XMLoadFloat4(&m_vStartPos), m_vOwnerLook, XMVectorGetX(XMVector3Length(m_vOwnerLook * 1.f))
|
||||
, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, hitBuffer))
|
||||
{
|
||||
OnCollision();
|
||||
}
|
||||
|
||||
_matrix WorldMat = m_pTrail_PT_0->Get_Component<CTransform>()->Get_XMWorldMatrix();
|
||||
|
||||
m_pLeviosoTrail->Trail_Update(WorldMat, fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CLevioso::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
CPlayer* pPlayer = static_cast<CPlayer*>(m_pOwner);
|
||||
|
||||
if (pPlayer == nullptr)
|
||||
return;
|
||||
|
||||
_matrix WandWorld = pPlayer->Get_WandPos();
|
||||
|
||||
//m_pLeviosoTrail->Get_Component<CTrail>()->Fixed_Trail(WandWorld);
|
||||
|
||||
XMStoreFloat4(&m_vEndPos, m_pLeviosoPJ_0->Get_WorldPostion());
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CLevioso::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
|
||||
Reset_EffectParts();
|
||||
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
m_fAccRotateTime = 0.f;
|
||||
|
||||
if (FAILED(Ready_Child()))
|
||||
return E_FAIL;
|
||||
|
||||
CPlayer* pPlayer = static_cast<CPlayer*>(m_pOwner);
|
||||
|
||||
if (pPlayer == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
_vector WandPos = pPlayer->Get_WandPos().r[3];
|
||||
|
||||
m_pLeviosoPJ_0->Get_Component<CTransform>()->Set_WorldMatrix(m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix());
|
||||
m_pLeviosoPJ_1->Get_Component<CTransform>()->Set_WorldMatrix(m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix());
|
||||
m_pTrail_PT_0->Get_Component<CTransform>()->Set_WorldMatrix(m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix());
|
||||
|
||||
m_pLeviosoPJ_0->Get_Component<CTransform>()->Set_State(STATE::POSITION, WandPos);
|
||||
m_pLeviosoPJ_1->Get_Component<CTransform>()->Set_State(STATE::POSITION, WandPos);
|
||||
m_pTrail_PT_0->Get_Component<CTransform>()->Set_State(STATE::POSITION, WandPos);
|
||||
|
||||
|
||||
m_pLeviosoPJ_0 ->Set_Visible(true);
|
||||
m_pLeviosoPJ_1->Set_Visible(true);
|
||||
m_pTrail_PT_0->Set_Visible(true);
|
||||
|
||||
m_pLeviosoTrail->Set_Visible(true);
|
||||
m_pLeviosoTrail->Get_Component<CTrail>()->Reset_Trail();
|
||||
|
||||
m_vOwnerLook = XMVector3Normalize(m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK));
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevioso::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevioso::Ready_Child()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CLevioso* CLevioso::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CLevioso* pInstance = new CLevioso(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CLevioso");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CLevioso::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CLevioso* pInstance = new CLevioso(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CLevioso");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CLevioso::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
_vector vPos = XMVectorSet(hitBuffer.block.position.x, hitBuffer.block.position.y, hitBuffer.block.position.z, 1.f);
|
||||
|
||||
|
||||
for (auto& pPair : m_PartObjects)
|
||||
{
|
||||
pPair.second->Set_Visible(true);
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fDuration = 3.f; //적중하면 지속시간 3초
|
||||
|
||||
//CEditEffect* pLevioso_Hit = Get_PartObject<CEditEffect>("Levioso_Hit");
|
||||
//CEditEffect* pLevioso_Bottom_Wind = Get_PartObject<CEditEffect>("Levioso_Bottom_Wind");
|
||||
//CEditEffect* pLevioso_Rotate0 = Get_PartObject<CEditEffect>("Levioso_Rotate0");
|
||||
//CEditEffect* pLevioso_Rotate1 = Get_PartObject<CEditEffect>("Levioso_Rotate1");
|
||||
//CEditEffect* pLevioso_Tornado = Get_PartObject<CEditEffect>("Levioso_Tornado");
|
||||
|
||||
m_pLeviosoPJ_0->Set_Visible(false);
|
||||
m_pLeviosoPJ_1->Set_Visible(false);
|
||||
m_pTrail_PT_0->Set_Visible(false);
|
||||
m_pLeviosoTrail->Set_Visible(false);
|
||||
}
|
||||
|
||||
void CLevioso::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
|
||||
SAFE_RELEASE(m_pLeviosoPJ_0);
|
||||
SAFE_RELEASE(m_pLeviosoPJ_1);
|
||||
SAFE_RELEASE(m_pLeviosoTrail);
|
||||
SAFE_RELEASE(m_pTrail_PT_0);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CLevioso::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("LEVIOSO");
|
||||
|
||||
GUI::DragFloat("TURN SPEED", &m_fTurnSpeed);
|
||||
GUI::DragFloat("RANGE", &m_fRange);
|
||||
GUI::End();
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
HRESULT CLevioso::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,196 @@
|
||||
#include "pch.h"
|
||||
#include "LeviosoSide.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Player.h"
|
||||
#include "Wand.h"
|
||||
#include "TrailObject.h"
|
||||
|
||||
|
||||
CLeviosoSide::CLeviosoSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CLeviosoSide::CLeviosoSide(const CLeviosoSide& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CLeviosoSide::Initialize_Prototype()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CLeviosoSide::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/LeviosoSide")))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"LeviosoSide";
|
||||
|
||||
|
||||
m_pWandLight = Get_PartObject<CEffectParts>("Wand_Light_P");
|
||||
m_pWandTrail = Get_PartObject<CTrailObject>();
|
||||
|
||||
SAFE_ADDREF(m_pWandLight);
|
||||
SAFE_ADDREF(m_pWandTrail);
|
||||
|
||||
m_fDuration = 1.f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CLeviosoSide::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CLeviosoSide::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
m_pWandTrail->Get_Component<CTrail>()->Trail_Update(fTimeDelta, pWand->Get_WorldMatrix());
|
||||
|
||||
}
|
||||
|
||||
void CLeviosoSide::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CLeviosoSide::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
Reset_EffectParts();
|
||||
|
||||
m_fAccTime = 0.f;
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
m_pWandLight->Set_Visible(true);
|
||||
|
||||
/*트레일 초기화 */
|
||||
m_pWandTrail->Set_Visible(true);
|
||||
m_pWandTrail->Get_Component<CTrail>()->Reset_Trail();
|
||||
|
||||
/*_vector pPos = pPlayer->Get_WandPos().r[3];*/
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLeviosoSide::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLeviosoSide::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CLeviosoSide* CLeviosoSide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CLeviosoSide* pInstance = new CLeviosoSide(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CNomalJapSide");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CLeviosoSide::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CLeviosoSide* pInstance = new CLeviosoSide(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CNomalJapSide");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CLeviosoSide::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
}
|
||||
|
||||
void CLeviosoSide::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
|
||||
Safe_Release(m_pWandLight);
|
||||
Safe_Release(m_pWandTrail);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CLeviosoSide::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
HRESULT CLeviosoSide::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -87,11 +87,17 @@
|
||||
#include "NomalJap.h"
|
||||
#include "Protego.h"
|
||||
#include "Revelio.h"
|
||||
#include "NomalJapSide.h"
|
||||
#include "DecendoSide.h"
|
||||
#include "BombardSide.h"
|
||||
#include "LeviosoSide.h"
|
||||
|
||||
#include "TrailObject.h"
|
||||
#include "Instance_Model.h"
|
||||
#include "Trail.h"
|
||||
#include "EffectPool.h"
|
||||
#include "Levioso.h"
|
||||
#include "Lumos.h"
|
||||
|
||||
|
||||
|
||||
@@ -920,6 +926,25 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
#pragma region EFFECT
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Textures/Effect/Trails", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
|
||||
_string strFilePath = pFilePath;
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::GAMEPLAY), wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Textures/Effect/Noises", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
|
||||
@@ -980,6 +1005,8 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
});
|
||||
|
||||
#pragma endregion
|
||||
|
||||
m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIEDITOR,
|
||||
@@ -1219,6 +1246,30 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CNomalJapSide>(NEXT_LEVEL, CNomalJapSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLevioso>(NEXT_LEVEL, CLevioso::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLumos>(NEXT_LEVEL, CLumos::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLeviosoSide>(NEXT_LEVEL, CLeviosoSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CBombardSide>(NEXT_LEVEL, CBombardSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CDecendoSide>(NEXT_LEVEL, CDecendoSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CEffectPool>(g_iStaticLevel, CEffectPool::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,180 @@
|
||||
#include "pch.h"
|
||||
#include "Lumos.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
|
||||
CLumos::CLumos(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CLumos::CLumos(const CLumos& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CLumos::Initialize_Prototype()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CLumos::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Lumos")))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"Lumos";
|
||||
|
||||
m_pLumos_Light = Get_PartObject<CEffectParts>("Lumos");
|
||||
|
||||
SAFE_ADDREF(m_pLumos_Light);
|
||||
|
||||
m_fDuration = 2.5f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CLumos::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CLumos::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
m_pLumos_Light->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
}
|
||||
|
||||
void CLumos::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CLumos::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
Reset_EffectParts();
|
||||
|
||||
m_fAccTime = 0.f;
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pLumos_Light->Set_Visible(true);
|
||||
m_pLumos_Light->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
m_isLoop = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLumos::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLumos::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CLumos* CLumos::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CLumos* pInstance = new CLumos(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CLumos");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CLumos::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CLumos* pInstance = new CLumos(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CLumos");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CLumos::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
//CTransform* pOtherTransform = p
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
}
|
||||
|
||||
void CLumos::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
Safe_Release(m_pLumos_Light);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CLumos::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
HRESULT CLumos::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "MapContainer.h"
|
||||
#include "PartObject.h"
|
||||
#include "MapObject_Collision.h"
|
||||
|
||||
//#include "MapObject_LOD.h"
|
||||
|
||||
@@ -44,6 +45,10 @@ void CMapContainer::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CMapContainer::Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
@@ -57,7 +62,33 @@ HRESULT CMapContainer::Render()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMapContainer::ReadyForPhysX()
|
||||
{
|
||||
vector<class CPartObject*>::iterator iter = m_ColiisonPartObjects.begin();
|
||||
for (; iter != m_ColiisonPartObjects.end(); ++iter) {
|
||||
CMapObject_Collision* pObject = static_cast<CMapObject_Collision*>(*iter);
|
||||
pObject->ReadyForPhysX();
|
||||
}
|
||||
}
|
||||
|
||||
void CMapContainer::ConvertToPhysX()
|
||||
{
|
||||
vector<class CPartObject*>::iterator iter = m_ColiisonPartObjects.begin();
|
||||
for (; iter != m_ColiisonPartObjects.end(); ++iter) {
|
||||
CMapObject_Collision* pObject = static_cast<CMapObject_Collision*>(*iter);
|
||||
pObject->ConvertToPhysX();
|
||||
}
|
||||
}
|
||||
|
||||
void CMapContainer::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CMapContainer::Describe_Entity()
|
||||
{
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "MapObject_Render.h"
|
||||
#include "MapObject_Collision.h"
|
||||
#include "MapElement_Light.h"
|
||||
#include "Layer.h"
|
||||
|
||||
CMapInfo::CMapInfo()
|
||||
{
|
||||
@@ -15,6 +16,41 @@ CMapInfo::CMapInfo()
|
||||
|
||||
void CMapInfo::Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
|
||||
static _bool s_bConverted = { false };
|
||||
static _bool s_bReadyToCreate = { false };
|
||||
|
||||
if (true != s_bConverted || true != s_bReadyToCreate) {
|
||||
CLayer* pLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_BACKGROUND);
|
||||
if (nullptr == pLayer) {
|
||||
return;
|
||||
}
|
||||
const list<CGameObject*>* pObjects = pLayer->Get_Objects();
|
||||
|
||||
if (false == s_bReadyToCreate) {
|
||||
s_bReadyToCreate = true;
|
||||
list<CGameObject*>::const_iterator iter = pObjects->begin();
|
||||
for (; iter != pObjects->end(); ++iter) {
|
||||
CMapContainer* pContainer = dynamic_cast<CMapContainer*>(*iter);
|
||||
if (nullptr != pContainer) {
|
||||
pContainer->ReadyForPhysX();
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (false == s_bConverted) {
|
||||
s_bConverted = true;
|
||||
list<CGameObject*>::const_iterator iter = pObjects->begin();
|
||||
for (; iter != pObjects->end(); ++iter) {
|
||||
CMapContainer* pContainer = dynamic_cast<CMapContainer*>(*iter);
|
||||
if (nullptr != pContainer) {
|
||||
pContainer->ConvertToPhysX();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CMapInfo::Change_Level()
|
||||
@@ -214,8 +250,9 @@ HRESULT CMapInfo::Load_MapRenderObjects(tinyxml2::XMLElement* Container, CMapCon
|
||||
Rotation->QueryFloatAttribute("y", &Desc.vRotation.y);
|
||||
Rotation->QueryFloatAttribute("z", &Desc.vRotation.z);
|
||||
|
||||
if (FAILED(pContainerObject->Add_Part<CMapObject_Render>(strKey, g_iStaticLevel, nullptr, &Desc)))
|
||||
if (FAILED(pContainerObject->Add_Part<CMapObject_Render>(strKey, g_iStaticLevel, nullptr, &Desc))){
|
||||
return E_FAIL;
|
||||
}
|
||||
#pragma endregion
|
||||
}
|
||||
|
||||
@@ -263,7 +300,6 @@ HRESULT CMapInfo::Load_MapCollisionObjects(tinyxml2::XMLElement* Container, CMap
|
||||
|
||||
pContainerObject->Add_Collision<CMapObject_Collision>(g_iStaticLevel, &Desc);
|
||||
#pragma endregion
|
||||
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
@@ -397,3 +433,49 @@ void CMapInfo::Free()
|
||||
SAFE_RELEASE(m_pContext);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CMapInfo::Describe_Entity()
|
||||
{
|
||||
CLayer* pLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_BACKGROUND);
|
||||
if (nullptr == pLayer) {
|
||||
return;
|
||||
}
|
||||
static _bool s_bConverted = { false };
|
||||
static _bool s_bReadyToCreate = { false };
|
||||
|
||||
const list<CGameObject*>* pObjects = pLayer->Get_Objects();
|
||||
|
||||
GUI::Begin("MapInfoDesc");
|
||||
GUI::SetNextItemWidth(80.f);
|
||||
GUI::BeginChild("CollisonPartObjects");
|
||||
GUI::SetNextItemWidth(80.f);
|
||||
if (false == s_bReadyToCreate) {
|
||||
if (GUI::Button("Ready_StaticMeshesForPhyX_ALL")) {
|
||||
s_bReadyToCreate = true;
|
||||
list<CGameObject*>::const_iterator iter = pObjects->begin();
|
||||
for (; iter != pObjects->end(); ++iter) {
|
||||
CMapContainer* pContainer = dynamic_cast<CMapContainer*>(*iter);
|
||||
if (nullptr != pContainer) {
|
||||
pContainer->ReadyForPhysX();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (false == s_bConverted) {
|
||||
if (GUI::Button("Convert_StaticMeshesForPhyX_ALL")) {
|
||||
s_bConverted = true;
|
||||
list<CGameObject*>::const_iterator iter = pObjects->begin();
|
||||
for (; iter != pObjects->end(); ++iter) {
|
||||
CMapContainer* pContainer = dynamic_cast<CMapContainer*>(*iter);
|
||||
if (nullptr != pContainer) {
|
||||
pContainer->ConvertToPhysX();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
GUI::EndChild();
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -72,12 +72,59 @@ HRESULT CMapObject_Collision::Initialize(void* pArg)
|
||||
|
||||
_wstring CMapObject_Collision::Get_PrototypeTag(_uint iLodIndex)
|
||||
{
|
||||
if (m_iMaxLodLevel < iLodIndex)
|
||||
if (m_iMaxLodLevel < iLodIndex){
|
||||
return m_ModelPrototypeTags[0];
|
||||
}
|
||||
|
||||
return m_ModelPrototypeTags[iLodIndex];
|
||||
}
|
||||
|
||||
void CMapObject_Collision::ReadyForPhysX()
|
||||
{
|
||||
if (true == m_bConverted) {
|
||||
return;
|
||||
}
|
||||
m_bConverted = true;
|
||||
|
||||
for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
|
||||
{
|
||||
CModel* pModel = m_pModelComs[iIndexLOD];
|
||||
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix)))) {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CMapObject_Collision::ConvertToPhysX()
|
||||
{
|
||||
if (true == m_bReadyToCreatePhysX) {
|
||||
return;
|
||||
}
|
||||
m_bReadyToCreatePhysX = true;
|
||||
|
||||
m_RigidBodies.resize(m_iMaxLodLevel + 1);
|
||||
for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
|
||||
{
|
||||
CModel* pModel = m_pModelComs[iIndexLOD];
|
||||
|
||||
_uint iNumMeshes = pModel->Get_NumMeshes();
|
||||
|
||||
for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
|
||||
{
|
||||
_wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
|
||||
CRigidBody_Static* pRigidBody = { nullptr };
|
||||
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
|
||||
Desc.pMeshName = wstrName.c_str();
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, wstrName, (CComponent**)&pRigidBody, &Desc))) {
|
||||
assert(false);
|
||||
}
|
||||
m_RigidBodies[iIndexLOD].push_back(pRigidBody);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CMapObject_Collision::Ready_Components()
|
||||
{
|
||||
__super::Ready_Components();
|
||||
@@ -93,19 +140,6 @@ HRESULT CMapObject_Collision::Ready_Components()
|
||||
}
|
||||
|
||||
m_pModelComs.push_back(pModel);
|
||||
|
||||
// _uint iMeshes = pModel->Get_NumMeshes();
|
||||
// for (_uint iIndex = 0; iIndex < iMeshes; ++iIndex) {
|
||||
// _wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
|
||||
// CRigidBody_Static* pRigidBody = { nullptr };
|
||||
// CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
|
||||
// Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
|
||||
// Desc.pMeshName = wstrName.c_str();
|
||||
// if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, wstrName, (CComponent**)&pRigidBody, &Desc))) {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
// m_RigidBodies[iIndexLOD].push_back(pRigidBody);
|
||||
// }
|
||||
}
|
||||
|
||||
/* Com_Shader */
|
||||
|
||||
@@ -50,7 +50,7 @@ HRESULT CNomalJap::Initialize(void* pArg)
|
||||
SAFE_ADDREF(m_pProjectile);
|
||||
SAFE_ADDREF(m_pProjectile_Side);
|
||||
|
||||
m_fDuration = 1.f;
|
||||
m_fDuration = 1.7f;
|
||||
assert(m_fDuration > 0.f);
|
||||
return S_OK;
|
||||
}
|
||||
@@ -59,10 +59,6 @@ void CNomalJap::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
if (nullptr != m_pPhysHitBox) {
|
||||
m_pPhysHitBox->Get_Component<CTransform>()->RewindMomentum();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void CNomalJap::Update(_float fTimeDelta)
|
||||
@@ -80,15 +76,24 @@ void CNomalJap::Update(_float fTimeDelta)
|
||||
|
||||
_vector vDirection = XMLoadFloat3(&m_vDirection);
|
||||
|
||||
//_vector vStartPos = Get_WorldPostion();
|
||||
//_float3 vfStartPos = {};
|
||||
//XMStoreFloat3(&vfStartPos, Get_WorldPostion());
|
||||
|
||||
// 선속도
|
||||
m_pProjectile_Side->Get_Component<CTransform>()->Translation(vDirection * m_fLinearSpeed * fTimeDelta);
|
||||
m_pProjectile->Get_Component<CTransform>()->Translation(vDirection * m_fLinearSpeed * fTimeDelta);
|
||||
|
||||
//_vector vEndPos = Get_WorldPostion();
|
||||
|
||||
//_float3 vfEndPos = {};
|
||||
//XMStoreFloat3(&vfEndPos, Get_WorldPostion());
|
||||
|
||||
//_float3 vDir = {};
|
||||
//XMStoreFloat3(&vDir, vEndPos - vStartPos);
|
||||
|
||||
//m_pGameInstance->SphereCast(0.125f, vfStartPos, vDir, XMVectorGetX(XMVector3Length(vEndPos - vStartPos)), )
|
||||
|
||||
if (nullptr != m_pPhysHitBox) {
|
||||
m_pPhysHitBox->Get_Component<CTransform>()->AccumulateMomentum(vDirection * m_fLinearSpeed * fTimeDelta);
|
||||
}
|
||||
|
||||
if (false == m_bTrailPulseEnded && m_fAccTime > m_fDuration * 0.3f) {
|
||||
m_bTrailPulseEnded = true;
|
||||
@@ -104,11 +109,10 @@ void CNomalJap::Update(_float fTimeDelta)
|
||||
SAFE_RELEASE(m_pTargetUnit);
|
||||
}
|
||||
|
||||
MoveHitBox(fTimeDelta);
|
||||
return;
|
||||
}
|
||||
if (true == m_bTrailPulseEnded) {
|
||||
MoveHitBox(fTimeDelta);
|
||||
|
||||
return;
|
||||
}
|
||||
_vector vRotateUp = XMLoadFloat3(&m_vRotateUp);
|
||||
@@ -117,24 +121,14 @@ void CNomalJap::Update(_float fTimeDelta)
|
||||
// 각속도
|
||||
m_pProjectile_Side->Get_Component<CTransform>()->Translation(vRotateUp * 0.6f * sinf(m_fAngularSpeed * m_fAccTime));
|
||||
m_pProjectile->Get_Component<CTransform>()->Translation(vRotateUp * 0.6f * sinf(m_fAngularSpeed * m_fAccTime));
|
||||
|
||||
if (nullptr != m_pPhysHitBox) {
|
||||
m_pPhysHitBox->Get_Component<CTransform>()->AccumulateMomentum(vRotateUp * 0.6f * sinf(m_fAngularSpeed * m_fAccTime));
|
||||
MoveHitBox(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
void CNomalJap::MoveHitBox(Engine::_float fTimeDelta)
|
||||
{
|
||||
if (nullptr != m_pPhysHitBox) {
|
||||
m_pPhysHitBox->Get_Component<CCharacter_Controller>()->Move(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
void CNomalJap::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
if (m_bVisible == false){
|
||||
return;
|
||||
}
|
||||
|
||||
Get_PartObject<CTrailObject>()->Trail_Update(m_pProjectile->Get_Component<CTransform>()->Get_XMWorldMatrix(), fTimeDelta);
|
||||
|
||||
@@ -182,6 +176,9 @@ HRESULT CNomalJap::Pre_Setting(CGameObject* pObject)
|
||||
_vector vUp = XMVectorSet(0.f, 1.f, 0.f, 0.f);
|
||||
XMStoreFloat3(&m_vDirection, vDirection);
|
||||
|
||||
//Get_PartObject<CEffectParts>("Circle_Particle_Red")->Set_Visible(true);
|
||||
//Get_PartObject<CEffectParts>("Circle_Particle_Red")->Get_Component<CTransform>()->Set_WorldMatrix(m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix());
|
||||
|
||||
_vector vQuaternion = XMQuaternionRotationAxis(vDirection, m_pGameInstance->Random_Float(0.f, XM_PIDIV2));
|
||||
|
||||
{ /* 대상 위치 지정 */
|
||||
@@ -223,23 +220,7 @@ HRESULT CNomalJap::Ready_Components(void* pArg)
|
||||
|
||||
HRESULT CNomalJap::Ready_Child()
|
||||
{
|
||||
CPhysXEffectHitBox::PHYSXDUMMY_DESC Desc{};
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
|
||||
XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f));
|
||||
|
||||
Desc.vRotRPY = { 0.f, 0.f, 0.f };
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::SKILL_NORMALJAP);
|
||||
Desc.vDeltaPos = _float3(0.f, 0.f, 0.f);
|
||||
Desc.vLifeTime = { 0.f, 1.f };
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPhysXEffectHitBox>(g_iStaticLevel, CURRENT_LEVEL, LAYER_HITBOX, &Desc, this, &m_pPhysHitBox))) {
|
||||
assert(false);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
SAFE_ADDREF(m_pPhysHitBox);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -287,24 +268,17 @@ void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
SAFE_RELEASE(m_pTargetUnit);
|
||||
m_pProjectile_Side->Set_Visible(false);
|
||||
m_pProjectile->Set_Visible(false);
|
||||
Get_PartObject<CEffectParts>("Circle_Particle_Red")->Set_Visible(false);
|
||||
|
||||
Get_PartObject<CTrailObject>()->Set_Visible(false);
|
||||
Get_PartObject<CTrailObject>()->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f));
|
||||
|
||||
if (nullptr != m_pPhysHitBox) {
|
||||
m_pPhysHitBox->Set_Dead();
|
||||
SAFE_RELEASE(m_pPhysHitBox);
|
||||
}
|
||||
}
|
||||
|
||||
void CNomalJap::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
if (m_pPhysHitBox != nullptr){
|
||||
SAFE_RELEASE(m_pPhysHitBox);
|
||||
}
|
||||
|
||||
SAFE_RELEASE(m_pTargetUnit);
|
||||
Safe_Release(m_pProjectile);
|
||||
Safe_Release(m_pProjectile_Side);
|
||||
|
||||
@@ -0,0 +1,201 @@
|
||||
#include "pch.h"
|
||||
#include "NomalJapSide.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Player.h"
|
||||
#include "Wand.h"
|
||||
#include "TrailObject.h"
|
||||
|
||||
|
||||
CNomalJapSide::CNomalJapSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CNomalJapSide::CNomalJapSide(const CNomalJapSide& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CNomalJapSide::Initialize_Prototype()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CNomalJapSide::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/JapsideEffect")))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"JapSideEffect";
|
||||
|
||||
|
||||
m_pWandParticle = Get_PartObject<CEffectParts>("WandParticle1");
|
||||
m_pWandLight = Get_PartObject<CEffectParts>("Wand_Red_Long");
|
||||
m_pWandTrail = Get_PartObject<CTrailObject>();
|
||||
|
||||
SAFE_ADDREF(m_pWandLight);
|
||||
SAFE_ADDREF(m_pWandTrail);
|
||||
SAFE_ADDREF(m_pWandParticle);
|
||||
|
||||
m_fDuration = 1.f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CNomalJapSide::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CNomalJapSide::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
m_pWandTrail->Get_Component<CTrail>()->Trail_Update(fTimeDelta, pWand->Get_WorldMatrix());
|
||||
m_pWandParticle->Get_Component<CTransform>()->Set_WorldMatrix(pWand->Get_WorldMatrix());
|
||||
|
||||
}
|
||||
|
||||
void CNomalJapSide::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CNomalJapSide::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
Reset_EffectParts();
|
||||
|
||||
m_fAccTime = 0.f;
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pWandParticle->Set_Visible(true);
|
||||
|
||||
m_pWandLight->Set_Visible(true);
|
||||
|
||||
/*트레일 초기화 */
|
||||
m_pWandTrail->Set_Visible(true);
|
||||
m_pWandTrail->Get_Component<CTrail>()->Reset_Trail();
|
||||
|
||||
/*_vector pPos = pPlayer->Get_WandPos().r[3];*/
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CNomalJapSide::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CNomalJapSide::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CNomalJapSide* CNomalJapSide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CNomalJapSide* pInstance = new CNomalJapSide(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CNomalJapSide");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CNomalJapSide::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CNomalJapSide* pInstance = new CNomalJapSide(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CNomalJapSide");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CNomalJapSide::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
}
|
||||
|
||||
void CNomalJapSide::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
|
||||
Safe_Release(m_pWandLight);
|
||||
Safe_Release(m_pWandTrail);
|
||||
Safe_Release(m_pWandParticle);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CNomalJapSide::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
HRESULT CNomalJapSide::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -392,22 +392,12 @@ void CPlayer::Update_CameraCoordinateSystem()
|
||||
|
||||
_matrix CPlayer::Get_WandPos()
|
||||
{
|
||||
CModel* pWand = Get_PartObject<CWand>()->Get_Component<CModel>();
|
||||
CWand* pWand = Get_PartObject<CWand>();
|
||||
|
||||
if (pWand == nullptr)
|
||||
return _matrix();
|
||||
|
||||
_matrix BoneMatrix = XMLoadFloat4x4(pWand->Get_BoneMatrixPtr("root"));
|
||||
|
||||
BoneMatrix = BoneMatrix * m_pTransformCom->Get_XMWorldMatrix();
|
||||
|
||||
_float3 vOffset = _float3(0.f, -0.27f, -0.32f);
|
||||
|
||||
BoneMatrix.r[3] += XMVector3Normalize(BoneMatrix.r[0]) * vOffset.x;
|
||||
BoneMatrix.r[3] += XMVector3Normalize(BoneMatrix.r[1]) * vOffset.y;
|
||||
BoneMatrix.r[3] += XMVector3Normalize(BoneMatrix.r[2]) * vOffset.z;
|
||||
|
||||
return BoneMatrix;
|
||||
return pWand->Get_WorldMatrix();
|
||||
}
|
||||
|
||||
void CPlayer::Play_Event()
|
||||
|
||||
@@ -58,6 +58,8 @@ void CPlayer::TestKeyInput(_float fTimeDelta)
|
||||
if (m_pGameInstance->Key_Down(DIK_F7))
|
||||
{
|
||||
m_eSpell = STATEANIM::LUMOS;
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::LUMOS, Get_PartObject<CWand>());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -724,7 +726,10 @@ void CPlayer::Behavior_CombatEnter()
|
||||
else if (m_pGameInstance->Mouse_Up(DIM_LBUTTON)) {
|
||||
m_pFSM->Enable_State(FSMSTATE::LIGHT_ATTACK);
|
||||
pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK];
|
||||
|
||||
Add_Event(pairAnimInfo.first, [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, Get_PartObject<CWand>()); }, 0.1f);
|
||||
|
||||
Add_Event(pairAnimInfo.first, [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE, Get_PartObject<CWand>()); }, 0.0f);
|
||||
}
|
||||
else if (SUCCEEDED(InputSpell())) {
|
||||
m_pFSM->Enable_State(FSMSTATE::SPELL);
|
||||
@@ -732,13 +737,45 @@ void CPlayer::Behavior_CombatEnter()
|
||||
{
|
||||
switch (m_eSpell)
|
||||
{
|
||||
case STATEANIM::ACCIO:
|
||||
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL];
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject<CWand>()); },
|
||||
0.f);
|
||||
|
||||
break;
|
||||
|
||||
case STATEANIM::DESCENDO:
|
||||
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL];
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::DESCENDO_SIDE, Get_PartObject<CWand>()); },
|
||||
0.f);
|
||||
|
||||
break;
|
||||
case STATEANIM::DEPULSO:
|
||||
pairAnimInfo = m_Animation[STATEANIM::DEPULSO];
|
||||
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO, this); },
|
||||
0.2f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO_SIDE, Get_PartObject<CWand>()); },
|
||||
0.f);
|
||||
|
||||
m_eSpell = STATEANIM::END;
|
||||
|
||||
break;
|
||||
case STATEANIM::DIFFINDO:
|
||||
pairAnimInfo = m_Animation[STATEANIM::DIFFINDO];
|
||||
|
||||
|
||||
|
||||
m_eSpell = STATEANIM::END;
|
||||
break;
|
||||
case STATEANIM::DISILLUSION_ENTER:
|
||||
@@ -796,7 +833,12 @@ void CPlayer::Behavior_CombatEnter()
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL];
|
||||
}
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_V)) {
|
||||
m_pFSM->Enable_State(FSMSTATE::MAPHELP);
|
||||
@@ -922,9 +964,14 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::ACCIO];
|
||||
Add_Event(pairAnimInfo.first,
|
||||
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA, this);},
|
||||
0.15f);
|
||||
|
||||
|
||||
|
||||
m_eSpell = STATEANIM::END;
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
break;
|
||||
@@ -934,10 +981,21 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::DESCENDO, this);},
|
||||
0.1f);
|
||||
|
||||
m_eSpell = STATEANIM::END;
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
break;
|
||||
|
||||
case STATEANIM::DEPULSO:
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::DEPULSO];
|
||||
|
||||
|
||||
m_eSpell = STATEANIM::END;
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -91,3 +91,5 @@ void CSkill_Data::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -254,6 +254,9 @@ HRESULT CTrailObject::Render()
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_POSTEX::TRAIL))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Bind_DepthStencil(m_pShaderCom, "g_DepthStencilTexture")))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pTrailCom->Render()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ HRESULT CTroll::Initialize(void* pArg)
|
||||
|
||||
|
||||
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(30.f, 10.f, 30.f, 1.f));
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(3.f, -5.f, -20.f, 1.f));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -98,8 +98,8 @@ HRESULT CWand::Render()
|
||||
}
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
m_pGripShape->Draw(m_pTransformCom->Get_XMWorldMatrix(), m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), DirectX::Colors::Green, nullptr, true);
|
||||
m_pSubShape->Draw(XMLoadFloat4x4(&m_pWandTipMatrix), m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), DirectX::Colors::Purple, nullptr, true);
|
||||
//m_pGripShape->Draw(m_pTransformCom->Get_XMWorldMatrix(), m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), DirectX::Colors::Green, nullptr, true);
|
||||
//m_pSubShape->Draw(XMLoadFloat4x4(&m_pWandTipMatrix), m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), DirectX::Colors::Purple, nullptr, true);
|
||||
#endif // _DEBUG
|
||||
|
||||
return S_OK;
|
||||
@@ -110,6 +110,11 @@ _vector CWand::Get_WorldPostion()
|
||||
return XMLoadFloat4((_float4*)&m_pWandTipMatrix.m[3][0]);
|
||||
}
|
||||
|
||||
_matrix CWand::Get_WorldMatrix()
|
||||
{
|
||||
return XMLoadFloat4x4(&m_pWandTipMatrix);
|
||||
}
|
||||
|
||||
|
||||
HRESULT CWand::Ready_Components()
|
||||
{
|
||||
|
||||
@@ -32,7 +32,8 @@ class CBombard final : public CEffect_Container
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
class CPartObject* m_pLight_Projectile = {};
|
||||
class CEffectParts* m_pLight_Projectile = {};
|
||||
_vector m_vCameraLook = {};
|
||||
public:
|
||||
static CBombard* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CBombardSide final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CBombardSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CBombardSide(const CBombardSide& rhs);
|
||||
virtual ~CBombardSide() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
|
||||
public:
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject) override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
HRESULT Ready_Child();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
class CEffectParts* m_pWandLight = { nullptr };
|
||||
class CTrailObject* m_pWandTrail = { nullptr };
|
||||
class CEffectParts* m_pWandParticle = { nullptr };
|
||||
|
||||
public:
|
||||
static CBombardSide* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -55,6 +55,7 @@ class CCamPosition_Shoulder final : public CCamPosition
|
||||
_float4 m_DestPos = { };
|
||||
|
||||
_bool m_bZoomIn = { false };
|
||||
_bool m_bLerp = {};
|
||||
|
||||
|
||||
CCamPosition_Target* m_pTarget_LookPart = { nullptr };
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Client
|
||||
enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, ENV_TERRAIN_ANISO, END };
|
||||
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
|
||||
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLUR, TRAIL_BLOOM, END };
|
||||
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, END };
|
||||
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, END };
|
||||
enum class SHADER_PASS_UIEDITOR { DEFAULT, 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, END };
|
||||
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, END };
|
||||
|
||||
@@ -24,7 +24,10 @@ namespace Client
|
||||
BOMBARDA, INCENDIO, DISILLUSIONMENT, LUMOS, REPARO, WINGARDIUM_LEVIOSA,
|
||||
CONJURING_SPELL, ALTERING_SPELL, EVANESCO, AVADA_KEDAVRA, CRUCIO, IMPERIO,
|
||||
BEAST_PETTING_BRUSH, BEAST_FEED, NAB_SACK, JAP, REVELIO, PROTEGO, STUPEFY,
|
||||
ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS, END
|
||||
|
||||
ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS,
|
||||
JAP_SIDE, BOMBARDA_SIDE , DESCENDO_SIDE , LEVIOSO_SIDE
|
||||
,END
|
||||
};
|
||||
enum class BLOOM_TYPE { NONE, BASIC, MULTIPLY, END };
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CDecendoSide final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CDecendoSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CDecendoSide(const CDecendoSide& rhs);
|
||||
virtual ~CDecendoSide() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
|
||||
public:
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject) override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
HRESULT Ready_Child();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
class CEffectParts* m_pWandLight = { nullptr };
|
||||
class CTrailObject* m_pWandTrail = { nullptr };
|
||||
|
||||
public:
|
||||
static CDecendoSide* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -86,8 +86,9 @@ class CEffectObject abstract : public CPartObject
|
||||
|
||||
SHADER_PASS_INSTANCE_MODEL eShaderPass = { SHADER_PASS_INSTANCE_MODEL::NON_NOMALMAP };
|
||||
|
||||
_bool isDiffuseBlur = {};
|
||||
_bool isMaskBlur = {};
|
||||
_bool isBlurNoEmissive = {};
|
||||
|
||||
_bool isTexBlur = {};
|
||||
_bool isBlurDissolve = {};
|
||||
_bool isBlurReverseDissolve = {};
|
||||
|
||||
@@ -103,7 +104,6 @@ class CEffectObject abstract : public CPartObject
|
||||
|
||||
BLOOM_TYPE eBloomType = {};
|
||||
|
||||
|
||||
}EFFECT_INFO;
|
||||
|
||||
|
||||
|
||||
@@ -21,12 +21,16 @@ class CEffectParts final : public CEffectObject
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
|
||||
|
||||
public:
|
||||
static CEffectParts* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -25,6 +25,8 @@ class CEffect_Container abstract : public CContainerObject
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject);
|
||||
HRESULT Load_Package(const _char* pPath);
|
||||
|
||||
public:
|
||||
|
||||
protected:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
@@ -35,8 +37,9 @@ class CEffect_Container abstract : public CContainerObject
|
||||
void Update_Event(_float fTimeDelta);
|
||||
HRESULT Reset_EffectParts();
|
||||
protected:
|
||||
class CPhysXEffectHitBox* m_pPhysHitBox = {};
|
||||
|
||||
_float4 m_vStartPos = {};
|
||||
_float4 m_vEndPos = {};
|
||||
PSX::PxSweepBuffer hitBuffer = {};
|
||||
protected:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CLevioso final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CLevioso(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CLevioso(const CLevioso& rhs);
|
||||
virtual ~CLevioso() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
|
||||
public:
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject) override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
HRESULT Ready_Child();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
class CPlayer* m_pPlayer = {};
|
||||
|
||||
class CEffectParts* m_pLeviosoPJ_0 = { nullptr };
|
||||
class CEffectParts* m_pLeviosoPJ_1 = { nullptr };
|
||||
class CTrailObject* m_pLeviosoTrail = { nullptr };
|
||||
class CEffectParts* m_pTrail_PT_0 = { nullptr };
|
||||
|
||||
_vector m_vOwnerLook = {};
|
||||
_float m_fAccRotateTime = {};
|
||||
_float m_fTurnSpeed = {};
|
||||
_float m_fRange = {};
|
||||
public:
|
||||
static CLevioso* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,48 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CLeviosoSide final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CLeviosoSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CLeviosoSide(const CLeviosoSide& rhs);
|
||||
virtual ~CLeviosoSide() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
|
||||
public:
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject) override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
HRESULT Ready_Child();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
class CEffectParts* m_pWandLight = { nullptr };
|
||||
class CTrailObject* m_pWandTrail = { nullptr };
|
||||
|
||||
public:
|
||||
static CLeviosoSide* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,48 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CLumos final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CLumos(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CLumos(const CLumos& rhs);
|
||||
virtual ~CLumos() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
|
||||
public:
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject) override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
HRESULT Ready_Child();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
class CEffectParts* m_pLumos_Light = {};
|
||||
|
||||
|
||||
public:
|
||||
static CLumos* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -26,6 +26,9 @@ class CMapContainer abstract : public CContainerObject
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
|
||||
void ReadyForPhysX();
|
||||
void ConvertToPhysX();
|
||||
|
||||
public:
|
||||
template<typename T>
|
||||
HRESULT Add_Part(const _string& strPartKey, _uint iPrototypeLevelIndex, T** ppOut, void* pArg = nullptr) {
|
||||
@@ -53,10 +56,14 @@ class CMapContainer abstract : public CContainerObject
|
||||
protected:
|
||||
_uint m_iMaxLodLevel = {};
|
||||
|
||||
vector<class CPartObject*> m_ColiisonPartObjects;
|
||||
vector<class CPartObject*> m_ColiisonPartObjects = {};
|
||||
|
||||
public:
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
virtual void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -36,6 +36,10 @@ class CMapInfo final : public CBase
|
||||
public:
|
||||
static CMapInfo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
virtual void Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -20,13 +20,16 @@ class CMapObject_Collision final : public CMapPartObject // 충돌용 Mesh
|
||||
|
||||
public:
|
||||
virtual _wstring Get_PrototypeTag(_uint iLodIndex = 0);
|
||||
|
||||
void ReadyForPhysX();
|
||||
void ConvertToPhysX();
|
||||
private:
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
vector<vector<CRigidBody_Static*>> m_RigidBodies;
|
||||
vector<CModel*> m_pModelComs;
|
||||
|
||||
_uint m_iLodIndex = {};
|
||||
_bool m_bReadyToCreatePhysX = { false };
|
||||
_bool m_bConverted = { false };
|
||||
|
||||
vector<_wstring> m_ModelPrototypeTags;
|
||||
vector<_uint> m_ModelPathIndices = { };
|
||||
|
||||
@@ -18,7 +18,6 @@ class CNomalJap final : public CEffect_Container
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
void MoveHitBox(Engine::_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CNomalJapSide final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CNomalJapSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CNomalJapSide(const CNomalJapSide& rhs);
|
||||
virtual ~CNomalJapSide() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
|
||||
public:
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject) override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
HRESULT Ready_Child();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
class CEffectParts* m_pWandLight = { nullptr };
|
||||
class CTrailObject* m_pWandTrail = { nullptr };
|
||||
class CEffectParts* m_pWandParticle = { nullptr };
|
||||
|
||||
public:
|
||||
static CNomalJapSide* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -25,6 +25,7 @@ class CWand final : public CPartObject
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
_matrix Get_WorldMatrix();
|
||||
public:
|
||||
|
||||
private:
|
||||
|
||||
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.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
@@ -116,8 +116,9 @@ bool g_isNoiseAlpha;
|
||||
bool g_isNomalDissolve;
|
||||
|
||||
|
||||
bool g_isDiffuseBlur;
|
||||
bool g_isMaskBlur;
|
||||
bool g_isBlurNoEmissive;
|
||||
bool g_isTexBlur;
|
||||
|
||||
bool g_isBlurDissolve;
|
||||
bool g_isBlurReverseDissolve;
|
||||
|
||||
@@ -272,7 +273,7 @@ float4 DrawEffect(PS_IN In)
|
||||
UV += SelectLerpUV((g_vDiffuseUVGainAmount / g_vUVCutting), (vDiffuseTime.x / vDiffuseTime.y), g_iDiffuseMoveLerpOption);
|
||||
}
|
||||
|
||||
if (g_isDiffuseBlur)
|
||||
if (g_isTexBlur)
|
||||
{
|
||||
float4 fAccDiffuse;
|
||||
|
||||
@@ -380,7 +381,7 @@ float4 DrawEffect(PS_IN In)
|
||||
vMtrlMask = g_MaskingTexture.Sample(DefaultSampler, vMaskTexcoord);
|
||||
|
||||
|
||||
if (g_isMaskBlur)
|
||||
if (g_isTexBlur)
|
||||
{
|
||||
float4 fAccMask;
|
||||
|
||||
@@ -504,7 +505,7 @@ float4 EmissiveDraw(PS_IN In)
|
||||
}
|
||||
}
|
||||
|
||||
return vEmissiveMtrl * fEmissive * fEmissiveStrength;
|
||||
return saturate(vEmissiveMtrl * fEmissive * fEmissiveStrength);
|
||||
|
||||
}
|
||||
|
||||
@@ -533,8 +534,6 @@ PS_OUT BlendedWeight(vector fDiffuse, float fLinearZ)
|
||||
|
||||
float fWeight = clamp(pow(fLinearZ, -2.5f), 1.0f, 1000.0f);
|
||||
|
||||
|
||||
|
||||
Out.vDiffuse = vector(vColor.rgb * fAlpha, fAlpha) * fWeight;
|
||||
|
||||
Out.vRevealage.r = fAlpha;
|
||||
@@ -578,20 +577,22 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
|
||||
|
||||
vMtrlDiffuse = DrawEffect(In);
|
||||
|
||||
//int2 iTexel = int2(In.vPosition.xy);
|
||||
int2 iTexel = int2(In.vPosition.xy);
|
||||
|
||||
//float fDepthStencilValue = g_DepthStencilTexture.Load(int3(iTexel, 0)).r;
|
||||
float fDepthStencilValue = g_DepthStencilTexture.Load(int3(iTexel, 0)).r;
|
||||
|
||||
//float fbias = 0.000005f;
|
||||
float fbias = 0.000005f;
|
||||
|
||||
//if (fDepthStencilValue <= In.vProjPos.z / In.vProjPos.w + fbias)
|
||||
// discard;
|
||||
if (fDepthStencilValue <= In.vProjPos.z / In.vProjPos.w + fbias)
|
||||
discard;
|
||||
|
||||
vMtrlDiffuse.rgb += EmissiveDraw(In).rgb;
|
||||
|
||||
Out = BlendedWeight(vMtrlDiffuse, In.vProjPos.w);
|
||||
|
||||
//// 색깔 추가할 처리 (이미시브)
|
||||
|
||||
Out.vDiffuse += EmissiveDraw(In); // 이미시브 스트랭스
|
||||
//Out.vDiffuse // 이미시브 스트랭스
|
||||
Out.vColorTarget = vector(0.f, 0.f, 0.f, 0.f);
|
||||
|
||||
return Out;
|
||||
@@ -655,17 +656,17 @@ struct PS_BLOOM_OUT
|
||||
float4 vDiffuse : SV_TARGET0;
|
||||
};
|
||||
|
||||
PS_BLUR_OUT PS_BLUR(PS_IN In)
|
||||
PS_BLUR_OUT PS_BLUR_NOEMISSIVE(PS_IN In)
|
||||
{
|
||||
PS_BLUR_OUT Out;
|
||||
|
||||
vector vMtrlDiffuse;
|
||||
|
||||
vMtrlDiffuse = DrawEffect(In);
|
||||
vMtrlDiffuse= DrawEffect(In);
|
||||
|
||||
//// 색깔 추가할 처리 (이미시브)
|
||||
|
||||
vMtrlDiffuse += EmissiveDraw(In);
|
||||
|
||||
vMtrlDiffuse.a = 1.f;
|
||||
|
||||
if (g_isDissolve == true)
|
||||
{
|
||||
@@ -681,6 +682,34 @@ PS_BLUR_OUT PS_BLUR(PS_IN In)
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_BLUR_OUT PS_BLUR(PS_IN In)
|
||||
{
|
||||
PS_BLUR_OUT Out;
|
||||
|
||||
vector vMtrlDiffuse;
|
||||
|
||||
vMtrlDiffuse = DrawEffect(In);
|
||||
|
||||
//// 색깔 추가할 처리 (이미시브)
|
||||
|
||||
vMtrlDiffuse.rgb += EmissiveDraw(In).rgb;
|
||||
|
||||
vMtrlDiffuse.a = 1.f;
|
||||
|
||||
if (g_isDissolve == true)
|
||||
{
|
||||
if (g_isNomalDissolve)
|
||||
{
|
||||
vMtrlDiffuse.a *= (0.95f - In.vLifeTime.x / In.vLifeTime.y);
|
||||
}
|
||||
}
|
||||
|
||||
Out.vDiffuse = vector(vMtrlDiffuse.rgb * g_fBlurIntensity, vMtrlDiffuse.a);
|
||||
Out.vBlurWeight = g_iBlurWeight / 128.f;
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_BLOOM_OUT PS_BLOOM(PS_IN In)
|
||||
{
|
||||
PS_BLOOM_OUT Out;
|
||||
@@ -693,9 +722,9 @@ PS_BLOOM_OUT PS_BLOOM(PS_IN In)
|
||||
|
||||
//// 색깔 추가할 처리 (이미시브)
|
||||
|
||||
vMtrlDiffuse += EmissiveDraw(In);
|
||||
vMtrlDiffuse.rgb += EmissiveDraw(In).rgb;
|
||||
|
||||
float fBloomStrength = g_fBloomStrength;
|
||||
float fBloomStrength = g_fBloomStrength;
|
||||
|
||||
if (g_isBloomDissolve == true)
|
||||
{
|
||||
@@ -707,6 +736,9 @@ PS_BLOOM_OUT PS_BLOOM(PS_IN In)
|
||||
{
|
||||
fBloomStrength = g_fBloomStrength * ((In.vLifeTime.x / In.vLifeTime.y));
|
||||
}
|
||||
|
||||
if (vMtrlDiffuse.a <= 0.1f)
|
||||
discard;
|
||||
|
||||
Out.vDiffuse = vector(vMtrlDiffuse.rgb * fBloomStrength, (float) g_iBloomType / 255.f);
|
||||
|
||||
@@ -722,18 +754,6 @@ PS_BLOOM_OUT PS_BLEND(PS_IN In)
|
||||
|
||||
vMtrlDiffuse = DrawEffect(In);
|
||||
|
||||
|
||||
//int2 iTexel = int2(In.vPosition.xy);
|
||||
|
||||
//float fDepthStencilValue = g_DepthStencilTexture.Load(int3(iTex el, 0)).r;
|
||||
|
||||
//float fbias = 0.000005f;
|
||||
|
||||
//if (fDepthStencilValue <= In.vProjPos.z / In.vProjPos.w + fbias)
|
||||
// discard;
|
||||
|
||||
//// 색깔 추가할 처리 (이미시브)
|
||||
|
||||
vMtrlDiffuse.rgb += EmissiveDraw(In).rgb;
|
||||
|
||||
Out.vDiffuse = vMtrlDiffuse;
|
||||
@@ -741,6 +761,22 @@ PS_BLOOM_OUT PS_BLEND(PS_IN In)
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_BLOOM_OUT PS_WEIGHTED_FOR_BLEND(PS_IN In)
|
||||
{
|
||||
PS_BLOOM_OUT Out;
|
||||
|
||||
vector vMtrlDiffuse;
|
||||
|
||||
vMtrlDiffuse = DrawEffect(In);
|
||||
|
||||
vMtrlDiffuse.rgb += EmissiveDraw(In).rgb;
|
||||
|
||||
Out.vDiffuse = BlendedWeight(vMtrlDiffuse, In.vProjPos.w).vDiffuse;
|
||||
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
technique11 DefaultTechnique
|
||||
{
|
||||
pass Model
|
||||
@@ -844,6 +880,37 @@ technique11 DefaultTechnique
|
||||
PixelShader = compile ps_5_0 PS_BLOOM();
|
||||
}
|
||||
|
||||
|
||||
pass BLUR_NO_EMMISVE
|
||||
{
|
||||
SetRasterizerState(RS_Nocull);
|
||||
SetDepthStencilState(DSS_Effect, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_BLUR();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_BLUR_NOEMISSIVE();
|
||||
}
|
||||
|
||||
pass BLUR_NO_WORLD_NO_EMISSIVE
|
||||
{
|
||||
SetRasterizerState(RS_Nocull);
|
||||
SetDepthStencilState(DSS_Effect, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_BLUR_NOWORLD();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_BLUR_NOEMISSIVE();
|
||||
}
|
||||
|
||||
pass WEIGHTBLEND_FOR_BLEND
|
||||
{
|
||||
SetRasterizerState(RS_Nocull);
|
||||
SetDepthStencilState(DSS_Effect, 0);
|
||||
SetBlendState(BS_WB_Acc, 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_WEIGHTED_FOR_BLEND();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@ float g_fFar;
|
||||
float3 g_vContainerMin;
|
||||
float3 g_vContainerMax;
|
||||
|
||||
|
||||
|
||||
struct VS_IN
|
||||
{
|
||||
float3 vPosition : POSITION;
|
||||
|
||||
@@ -16,6 +16,7 @@ Texture2D g_DiffuseTexture;
|
||||
Texture2D g_MaskingTexture;
|
||||
Texture2D g_NoiseTexture;
|
||||
Texture2D g_DistortionTexture;
|
||||
Texture2D g_DepthStencilTexture;
|
||||
|
||||
/* 디퓨즈 */
|
||||
bool g_isDiffuse;
|
||||
@@ -62,6 +63,8 @@ int g_iBloomType;
|
||||
|
||||
float2 g_vBloomTime;
|
||||
|
||||
|
||||
|
||||
struct VS_IN
|
||||
{
|
||||
float3 vPosition : POSITION;
|
||||
@@ -273,18 +276,33 @@ float4 EmissiveDraw(PS_IN In)
|
||||
float fCore = pow(saturate(1.0 - fDistance * 2.f), max(0.001, g_fCoreBoost)) * g_fCoreBoost; // CoreBust 중심강조
|
||||
|
||||
fEmissive = fSoftEdge + fCore;
|
||||
|
||||
|
||||
}
|
||||
|
||||
return vEmissiveMtrl * fEmissive * fEmissiveStrength;
|
||||
if (fEmissive == 0.f)
|
||||
fEmissive = 1.f;
|
||||
|
||||
return saturate(vEmissiveMtrl * fEmissive * fEmissiveStrength);
|
||||
}
|
||||
|
||||
PS_TRAILOUT PS_Trail(PS_IN In)
|
||||
{
|
||||
PS_TRAILOUT Out;
|
||||
|
||||
int2 iTexel = int2(In.vPosition.xy);
|
||||
|
||||
float fDepthStencilValue = g_DepthStencilTexture.Load(int3(iTexel, 0)).r;
|
||||
|
||||
float fbias = 0.000005f;
|
||||
|
||||
if (fDepthStencilValue <= In.vProjPos.z / In.vProjPos.w + fbias)
|
||||
discard;
|
||||
|
||||
vector vMtrlDiffuse;
|
||||
|
||||
vMtrlDiffuse = Draw_Trail(In);
|
||||
|
||||
|
||||
/* 웨이트 블랜드 */
|
||||
|
||||
@@ -294,8 +312,9 @@ PS_TRAILOUT PS_Trail(PS_IN In)
|
||||
Out.vRevealage.r = vMtrlDiffuse.a;
|
||||
|
||||
/* 이미시브 */
|
||||
|
||||
Out.vDiffuse.rgb += EmissiveDraw(In).rgb;
|
||||
|
||||
Out.vDiffuse = saturate(Out.vDiffuse + EmissiveDraw(In)); // 이미시브 스트랭스
|
||||
Out.vColorTarget = vector(0.f, 0.f, 0.f, 0.f);
|
||||
|
||||
return Out;
|
||||
@@ -323,7 +342,7 @@ PS_BLUR_OUT PS_TRAIL_BLUR(PS_IN In)
|
||||
|
||||
//// 색깔 추가할 처리 (이미시브)
|
||||
|
||||
vMtrlDiffuse += EmissiveDraw(In);
|
||||
//vMtrlDiffuse += EmissiveDraw(In);
|
||||
|
||||
Out.vDiffuse = vector(vMtrlDiffuse.rgb * g_fBlurIntensity, vMtrlDiffuse.a);
|
||||
Out.vBlurWeight = g_iBlurWeight / 128.f;
|
||||
@@ -347,7 +366,7 @@ PS_BLUR_OUT PS_TRAIL_BLOOM(PS_IN In)
|
||||
|
||||
//// 색깔 추가할 처리 (이미시브)
|
||||
|
||||
vMtrlDiffuse += EmissiveDraw(In);
|
||||
//vMtrlDiffuse += EmissiveDraw(In);
|
||||
|
||||
float fBloomStrength = g_fBloomStrength;
|
||||
|
||||
@@ -422,7 +441,7 @@ technique11 PosTexTechnique11
|
||||
pass TrailBlur
|
||||
{
|
||||
SetRasterizerState(RS_Nocull);
|
||||
SetDepthStencilState(DSS_None, 0);
|
||||
SetDepthStencilState(DSS_Effect, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
Diffuse=VFX_T_Circle_Sphere_D
|
||||
Normal=VFX_T_SmokeTiled_N
|
||||
SpecPower=VFX_T_Circle_Sphere_D
|
||||
Other[0]=VFX_T_GradientMask_D
|
||||
Other[1]=VFX_T_RibbonOffset_N
|
||||
+96
@@ -0,0 +1,96 @@
|
||||
Parent = Material3'/Game/VFX/MasterMaterials/Particles/VFX_MM_Refraction.VFX_MM_Refraction'
|
||||
ScalarParameterValues[6] =
|
||||
{
|
||||
ScalarParameterValues[0] =
|
||||
{
|
||||
ParameterInfo = { Name=IndexofRefraction }
|
||||
ParameterValue = 0.95
|
||||
ParameterName = None
|
||||
}
|
||||
ScalarParameterValues[1] =
|
||||
{
|
||||
ParameterInfo = { Name=FadeDistance }
|
||||
ParameterValue = 200
|
||||
ParameterName = None
|
||||
}
|
||||
ScalarParameterValues[2] =
|
||||
{
|
||||
ParameterInfo = { Name=TileX }
|
||||
ParameterValue = 3
|
||||
ParameterName = None
|
||||
}
|
||||
ScalarParameterValues[3] =
|
||||
{
|
||||
ParameterInfo = { Name=TileY }
|
||||
ParameterValue = 0.3
|
||||
ParameterName = None
|
||||
}
|
||||
ScalarParameterValues[4] =
|
||||
{
|
||||
ParameterInfo = { Name=PanY }
|
||||
ParameterValue = 0.15
|
||||
ParameterName = None
|
||||
}
|
||||
ScalarParameterValues[5] =
|
||||
{
|
||||
ParameterInfo = { Name=RefractionDepthBias }
|
||||
ParameterValue = 0
|
||||
ParameterName = None
|
||||
}
|
||||
}
|
||||
TextureParameterValues[2] =
|
||||
{
|
||||
TextureParameterValues[0] =
|
||||
{
|
||||
ParameterInfo = { Name=Normal Map }
|
||||
ParameterValue = Texture2D'/Game/VFX/Textures/Noises/VFX_T_SmokeTiled_N.VFX_T_SmokeTiled_N'
|
||||
ParameterName = None
|
||||
}
|
||||
TextureParameterValues[1] =
|
||||
{
|
||||
ParameterInfo = { Name=Mask }
|
||||
ParameterValue = Texture2D'/Game/VFX/Textures/Gradients/VFX_T_GradientMask_D.VFX_T_GradientMask_D'
|
||||
ParameterName = None
|
||||
}
|
||||
}
|
||||
VectorParameterValues[0] = {}
|
||||
BasePropertyOverrides =
|
||||
{
|
||||
bOverride_BlendMode = false
|
||||
BlendMode = BLEND_Translucent (2)
|
||||
bOverride_TwoSided = false
|
||||
TwoSided = true
|
||||
bOverride_OpacityMaskClipValue = false
|
||||
OpacityMaskClipValue = 0
|
||||
}
|
||||
StaticParameters =
|
||||
{
|
||||
StaticSwitchParameters[0] = {}
|
||||
StaticComponentMaskParameters[0] = {}
|
||||
TerrainLayerWeightParameters[0] = {}
|
||||
MaterialLayersParameters[0] = {}
|
||||
}
|
||||
RuntimeVirtualTextureParameterValues[0] = {}
|
||||
FontParameterValues[0] = {}
|
||||
FlattenedTexture = None
|
||||
MobileBaseTexture = None
|
||||
MobileNormalTexture = None
|
||||
bUseMobileSpecular = false
|
||||
MobileSpecularPower = 16
|
||||
MobileSpecularMask = MSM_Constant (0)
|
||||
MobileMaskTexture = None
|
||||
TextureStreamingData[2] =
|
||||
{
|
||||
TextureStreamingData[0] =
|
||||
{
|
||||
SamplingScale = 1
|
||||
UVChannelIndex = 0
|
||||
TextureName = VFX_T_GradientMask_D
|
||||
}
|
||||
TextureStreamingData[1] =
|
||||
{
|
||||
SamplingScale = 0.296875
|
||||
UVChannelIndex = 0
|
||||
TextureName = VFX_T_SmokeTiled_N
|
||||
}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Diffuse=VFX_T_Circle_Sphere_D
|
||||
Normal=VFX_T_RibbonOffset_N
|
||||
SpecPower=VFX_T_Circle_Sphere_D
|
||||
Other[0]=VFX_T_GradientMask_D
|
||||
+90
@@ -0,0 +1,90 @@
|
||||
Parent = Material3'/Game/VFX/MasterMaterials/Particles/VFX_MM_Refraction.VFX_MM_Refraction'
|
||||
ScalarParameterValues[5] =
|
||||
{
|
||||
ScalarParameterValues[0] =
|
||||
{
|
||||
ParameterInfo = { Name=IndexofRefraction }
|
||||
ParameterValue = 0.95
|
||||
ParameterName = None
|
||||
}
|
||||
ScalarParameterValues[1] =
|
||||
{
|
||||
ParameterInfo = { Name=TileX }
|
||||
ParameterValue = 1
|
||||
ParameterName = None
|
||||
}
|
||||
ScalarParameterValues[2] =
|
||||
{
|
||||
ParameterInfo = { Name=TileY }
|
||||
ParameterValue = 0.3
|
||||
ParameterName = None
|
||||
}
|
||||
ScalarParameterValues[3] =
|
||||
{
|
||||
ParameterInfo = { Name=PanY }
|
||||
ParameterValue = 0.1
|
||||
ParameterName = None
|
||||
}
|
||||
ScalarParameterValues[4] =
|
||||
{
|
||||
ParameterInfo = { Name=RefractionDepthBias }
|
||||
ParameterValue = 0
|
||||
ParameterName = None
|
||||
}
|
||||
}
|
||||
TextureParameterValues[2] =
|
||||
{
|
||||
TextureParameterValues[0] =
|
||||
{
|
||||
ParameterInfo = { Name=Normal Map }
|
||||
ParameterValue = Texture2D'/Game/VFX/Textures/Noises/VFX_T_RibbonOffset_N.VFX_T_RibbonOffset_N'
|
||||
ParameterName = None
|
||||
}
|
||||
TextureParameterValues[1] =
|
||||
{
|
||||
ParameterInfo = { Name=Mask }
|
||||
ParameterValue = Texture2D'/Game/VFX/Textures/Gradients/VFX_T_GradientMask_D.VFX_T_GradientMask_D'
|
||||
ParameterName = None
|
||||
}
|
||||
}
|
||||
VectorParameterValues[0] = {}
|
||||
BasePropertyOverrides =
|
||||
{
|
||||
bOverride_BlendMode = false
|
||||
BlendMode = BLEND_Translucent (2)
|
||||
bOverride_TwoSided = false
|
||||
TwoSided = true
|
||||
bOverride_OpacityMaskClipValue = false
|
||||
OpacityMaskClipValue = 0
|
||||
}
|
||||
StaticParameters =
|
||||
{
|
||||
StaticSwitchParameters[0] = {}
|
||||
StaticComponentMaskParameters[0] = {}
|
||||
TerrainLayerWeightParameters[0] = {}
|
||||
MaterialLayersParameters[0] = {}
|
||||
}
|
||||
RuntimeVirtualTextureParameterValues[0] = {}
|
||||
FontParameterValues[0] = {}
|
||||
FlattenedTexture = None
|
||||
MobileBaseTexture = None
|
||||
MobileNormalTexture = None
|
||||
bUseMobileSpecular = false
|
||||
MobileSpecularPower = 16
|
||||
MobileSpecularMask = MSM_Constant (0)
|
||||
MobileMaskTexture = None
|
||||
TextureStreamingData[2] =
|
||||
{
|
||||
TextureStreamingData[0] =
|
||||
{
|
||||
SamplingScale = 1
|
||||
UVChannelIndex = 0
|
||||
TextureName = VFX_T_GradientMask_D
|
||||
}
|
||||
TextureStreamingData[1] =
|
||||
{
|
||||
SamplingScale = 0.296875
|
||||
UVChannelIndex = 0
|
||||
TextureName = VFX_T_RibbonOffset_N
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
Normal=VFX_T_Wavy_N
|
||||
Other[0]=VFX_T_WispyNoise_D
|
||||
+139
@@ -0,0 +1,139 @@
|
||||
TwoSided = true
|
||||
bDisableDepthTest = false
|
||||
bIsMasked = false
|
||||
ReferencedTextures[2] =
|
||||
{
|
||||
ReferencedTextures[0] = Texture2D'/Game/VFX/Textures/Noises/VFX_T_WispyNoise_D.VFX_T_WispyNoise_D'
|
||||
ReferencedTextures[1] = Texture2D'/Game/VFX/Textures/VFX_T_Wavy_N.VFX_T_Wavy_N'
|
||||
}
|
||||
Expressions[0] = {}
|
||||
CachedExpressionData =
|
||||
{
|
||||
Parameters =
|
||||
{
|
||||
Entries[5] =
|
||||
{
|
||||
Entries[0] =
|
||||
{
|
||||
ParameterInfos[16] =
|
||||
{
|
||||
ParameterInfos[0] = { Name=Speed V_B }
|
||||
ParameterInfos[1] = { Name=Speed U_A }
|
||||
ParameterInfos[2] = { Name=Multiplier_A }
|
||||
ParameterInfos[3] = { Name=Fresnel Power }
|
||||
ParameterInfos[4] = { Name=Tiling U_A }
|
||||
ParameterInfos[5] = { Name=WorldPos_tiling }
|
||||
ParameterInfos[6] = { Name=WorldPos_AppendB }
|
||||
ParameterInfos[7] = { Name=Tiling V_A }
|
||||
ParameterInfos[8] = { Name=Tiling V_B }
|
||||
ParameterInfos[9] = { Name=Multiplier_WorldPos }
|
||||
ParameterInfos[10] = { Name=Speed U_B }
|
||||
ParameterInfos[11] = { Name=WorldPos_AppendA }
|
||||
ParameterInfos[12] = { Name=Test Dark }
|
||||
ParameterInfos[13] = { Name=Test Bright }
|
||||
ParameterInfos[14] = { Name=Speed V_A }
|
||||
ParameterInfos[15] = { Name=Tiling U_B }
|
||||
}
|
||||
}
|
||||
Entries[1] =
|
||||
{
|
||||
ParameterInfos[2] =
|
||||
{
|
||||
ParameterInfos[0] = { Name=VecParam }
|
||||
ParameterInfos[1] = { Name=Color }
|
||||
}
|
||||
}
|
||||
Entries[2] = { ParameterInfos[0]={} }
|
||||
Entries[3] = { ParameterInfos[0]={} }
|
||||
Entries[4] = { ParameterInfos[0]={} }
|
||||
}
|
||||
ScalarValues[16] =
|
||||
{
|
||||
ScalarValues[0] = 0.05
|
||||
ScalarValues[1] = 0.07619
|
||||
ScalarValues[2] = 0.180953
|
||||
ScalarValues[3] = 1.05862
|
||||
ScalarValues[4] = 1
|
||||
ScalarValues[5] = 0.002
|
||||
ScalarValues[6] = 319.712
|
||||
ScalarValues[7] = 1
|
||||
ScalarValues[8] = 0.5
|
||||
ScalarValues[9] = 34.5704
|
||||
ScalarValues[10] = -0.1
|
||||
ScalarValues[11] = 209.712
|
||||
ScalarValues[12] = 0
|
||||
ScalarValues[13] = 1
|
||||
ScalarValues[14] = 0.152381
|
||||
ScalarValues[15] = 1
|
||||
}
|
||||
VectorValues[2] =
|
||||
{
|
||||
VectorValues[0] = { R=-1, G=-0.752381, B=2, A=1 }
|
||||
VectorValues[1] = { R=0.417759, G=0.368868, B=2, A=1 }
|
||||
}
|
||||
TextureValues[0] = {}
|
||||
}
|
||||
ReferencedTextures[2] =
|
||||
{
|
||||
ReferencedTextures[0] = Texture2D'/Game/VFX/Textures/Noises/VFX_T_WispyNoise_D.VFX_T_WispyNoise_D'
|
||||
ReferencedTextures[1] = Texture2D'/Game/VFX/Textures/VFX_T_Wavy_N.VFX_T_Wavy_N'
|
||||
}
|
||||
}
|
||||
BlendMode = BLEND_Translucent (2)
|
||||
OpacityMaskClipValue = 0.333
|
||||
CollectedTextureParameters[0] = {}
|
||||
CollectedScalarParameters[16] =
|
||||
{
|
||||
CollectedScalarParameters[0] = { Value=0.05, Name=Speed V_B, Group=None }
|
||||
CollectedScalarParameters[1] = { Value=0.07619, Name=Speed U_A, Group=None }
|
||||
CollectedScalarParameters[2] = { Value=0.180953, Name=Multiplier_A, Group=None }
|
||||
CollectedScalarParameters[3] = { Value=1.05862, Name=Fresnel Power, Group=None }
|
||||
CollectedScalarParameters[4] = { Value=1, Name=Tiling U_A, Group=None }
|
||||
CollectedScalarParameters[5] = { Value=0.002, Name=WorldPos_tiling, Group=None }
|
||||
CollectedScalarParameters[6] = { Value=319.712, Name=WorldPos_AppendB, Group=None }
|
||||
CollectedScalarParameters[7] = { Value=1, Name=Tiling V_A, Group=None }
|
||||
CollectedScalarParameters[8] = { Value=0.5, Name=Tiling V_B, Group=None }
|
||||
CollectedScalarParameters[9] =
|
||||
{
|
||||
Value = 34.5704
|
||||
Name = Multiplier_WorldPos
|
||||
Group = None
|
||||
}
|
||||
CollectedScalarParameters[10] = { Value=-0.1, Name=Speed U_B, Group=None }
|
||||
CollectedScalarParameters[11] = { Value=209.712, Name=WorldPos_AppendA, Group=None }
|
||||
CollectedScalarParameters[12] = { Value=0, Name=Test Dark, Group=None }
|
||||
CollectedScalarParameters[13] = { Value=1, Name=Test Bright, Group=None }
|
||||
CollectedScalarParameters[14] = { Value=0.152381, Name=Speed V_A, Group=None }
|
||||
CollectedScalarParameters[15] = { Value=1, Name=Tiling U_B, Group=None }
|
||||
}
|
||||
CollectedVectorParameters[2] =
|
||||
{
|
||||
CollectedVectorParameters[0] =
|
||||
{
|
||||
Value = { R=-1, G=-0.752381, B=2, A=1 }
|
||||
Name = VecParam
|
||||
Group = None
|
||||
}
|
||||
CollectedVectorParameters[1] =
|
||||
{
|
||||
Value = { R=0.417759, G=0.368868, B=2, A=1 }
|
||||
Name = Color
|
||||
Group = None
|
||||
}
|
||||
}
|
||||
FlattenedTexture = None
|
||||
MobileBaseTexture = None
|
||||
MobileNormalTexture = None
|
||||
bUseMobileSpecular = false
|
||||
MobileSpecularPower = 16
|
||||
MobileSpecularMask = MSM_Constant (0)
|
||||
MobileMaskTexture = None
|
||||
TextureStreamingData[1] =
|
||||
{
|
||||
TextureStreamingData[0] =
|
||||
{
|
||||
SamplingScale = 1
|
||||
UVChannelIndex = 1
|
||||
TextureName = VFX_T_Wavy_N
|
||||
}
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
Materials[1] =
|
||||
{
|
||||
Materials[0] = MaterialInstanceConstant'/Game/VFX/MasterMaterials/MaterialInstance/VFX_MI_UltraFlare_Leviosa.VFX_MI_UltraFlare_Leviosa'
|
||||
}
|
||||
SourceModels[0] = {}
|
||||
StaticMaterials[1] =
|
||||
{
|
||||
StaticMaterials[0] =
|
||||
{
|
||||
MaterialInterface = MaterialInstanceConstant'/Game/VFX/MasterMaterials/MaterialInstance/VFX_MI_UltraFlare_Leviosa.VFX_MI_UltraFlare_Leviosa'
|
||||
MaterialSlotName = MI_HW_DADA_DragonBones_A_R_Clean_A
|
||||
UVChannelData =
|
||||
{
|
||||
bInitialized = true
|
||||
bOverrideDensities = false
|
||||
LocalUVDensities[4] = { 315.585, 0, 0, 0 }
|
||||
}
|
||||
}
|
||||
}
|
||||
Sockets[0] = {}
|
||||
ExtendedBounds =
|
||||
{
|
||||
Origin = { X=0.00315857, Y=9.40446, Z=-4.01167 }
|
||||
BoxExtent = { X=97.0916, Y=110.71, Z=72.4 }
|
||||
SphereRadius = 147.37
|
||||
}
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+2
@@ -0,0 +1,2 @@
|
||||
Normal=VFX_T_Wavy_N
|
||||
Other[0]=VFX_T_WispyNoise_D
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user