commit
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "PhysXEffectHitBox.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
|
||||
@@ -83,27 +82,16 @@ void CBombard::Late_Update(_float fTimeDelta)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
XMStoreFloat4(&m_vEndPos, m_pLight_Projectile->Get_WorldPostion());
|
||||
|
||||
}
|
||||
|
||||
HRESULT CBombard::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
if (FAILED(Ready_Child()))
|
||||
return E_FAIL;
|
||||
|
||||
Reset_EffectParts();
|
||||
|
||||
m_fAccTime = 0.f;
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
CWand* pWand = static_cast<CPlayer*>(m_pOwner)->Get_PartObject<CWand>();
|
||||
|
||||
if (pWand == nullptr)
|
||||
@@ -115,6 +103,7 @@ HRESULT CBombard::Pre_Setting(CGameObject* pObject)
|
||||
|
||||
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());
|
||||
@@ -125,9 +114,6 @@ HRESULT CBombard::Pre_Setting(CGameObject* pObject)
|
||||
m_pLight_Projectile->Set_Visible(true);
|
||||
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -174,7 +160,10 @@ CGameObject* CBombard::Clone(void* pArg, CGameObject* pOwner)
|
||||
|
||||
void CBombard::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
//CTransform* pOtherTransform = p
|
||||
if (m_isCollisionEnter == true)
|
||||
return;
|
||||
|
||||
m_isCollisionEnter = true;
|
||||
|
||||
_vector vPos = XMVectorSet(hitBuffer.block.position.x, hitBuffer.block.position.y, hitBuffer.block.position.z, 1.f);
|
||||
|
||||
@@ -185,14 +174,27 @@ void CBombard::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
CWand* pWand = static_cast<CPlayer*>(m_pOwner)->Get_PartObject<CWand>();
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
CPartObject* pShootPt = Get_PartObject<CEffectParts>("Bombard_Shoot_Pt");
|
||||
CPartObject* pCircle0 = Get_PartObject<CEffectParts>("Bombard_Circle0");
|
||||
|
||||
pShootPt->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
pCircle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
|
||||
m_pLight_Projectile->Set_Visible(false);
|
||||
Get_PartObject<CEffectParts>("Bombard_Shoot_Pt")->Set_Visible(false);
|
||||
|
||||
//Get_PartObject<CEffectParts>("Bombard_PT_0")->Get_Component<CTransform>()->LookAt(m_pOwner->Get_WorldPostion());
|
||||
//Get_PartObject<CEffectParts>("Bombard_PT_1")->Get_Component<CTransform>()->LookAt(m_pOwner->Get_WorldPostion());
|
||||
//Get_PartObject<CEffectParts>("Bombard_PT_2")->Get_Component<CTransform>()->LookAt(m_pOwner->Get_WorldPostion());
|
||||
|
||||
_vector vOwnerLook = m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK);
|
||||
Get_PartObject<CEffectParts>("Bombard_Smoke")->Get_Component<CTransform>()->Translation(vOwnerLook);
|
||||
|
||||
Get_PartObject<CEffectParts>("Bombard_Circle0")->Set_Visible(false);
|
||||
|
||||
}
|
||||
|
||||
void CBombard::Free()
|
||||
|
||||
@@ -40,7 +40,7 @@ HRESULT CBombardSide::Initialize(void* pArg)
|
||||
m_wstrEffectName = L"BombardSide";
|
||||
|
||||
|
||||
m_pWandParticle = Get_PartObject<CEffectParts>("WandParticle_B_100");
|
||||
m_pWandParticle = Get_PartObject<CEffectParts>("WandParticle_B_1000");
|
||||
m_pWandLight = Get_PartObject<CEffectParts>("Wand_Light_B");
|
||||
m_pWandTrail = Get_PartObject<CTrailObject>();
|
||||
|
||||
@@ -97,17 +97,9 @@ void CBombardSide::Late_Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CBombardSide::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
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);
|
||||
|
||||
@@ -126,9 +118,6 @@ HRESULT CBombardSide::Pre_Setting(CGameObject* pObject)
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "PhysXEffectHitBox.h"
|
||||
#include "TrailObject.h"
|
||||
|
||||
#include "Wand.h"
|
||||
@@ -104,22 +103,9 @@ void CDecendo::Late_Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CDecendo::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
return E_FAIL;
|
||||
|
||||
/* 부모 할당 */
|
||||
m_pOwner = pObject;
|
||||
|
||||
/* 피직스 생성*/
|
||||
if (FAILED(Ready_Child()))
|
||||
return E_FAIL;
|
||||
|
||||
/* 초기 셋팅 초기화 */
|
||||
Reset_EffectParts();
|
||||
m_fAccTime = 0.f;
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CPlayer*>(m_pOwner)->Get_PartObject<CWand>();
|
||||
|
||||
@@ -129,16 +115,25 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject)
|
||||
|
||||
CPartObject* pCircle0 = Get_PartObject<CEffectParts>();
|
||||
|
||||
CPartObject* pWandLight = Get_PartObject<CEffectParts>("Decendo_Wand_Light");
|
||||
|
||||
|
||||
|
||||
/* 초기 객체 위치 초기화 */
|
||||
pCircle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
pCircle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->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);
|
||||
pWandLight->Set_Visible(true);
|
||||
|
||||
m_pProjectile->Set_Visible(true);
|
||||
m_pProjectile_Blur->Set_Visible(true);
|
||||
|
||||
|
||||
/*트레일 초기화 */
|
||||
Get_PartObject<CTrailObject>()->Set_Visible(true);
|
||||
Get_PartObject<CTrailObject>()->Get_Component<CTrail>()->Reset_Trail();
|
||||
@@ -154,7 +149,6 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject)
|
||||
m_vRotateUp = XMVector3Rotate(vUp, vQuaternion);
|
||||
m_vRotateUp = XMVector3Normalize(m_vRotateUp);
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -202,7 +196,12 @@ CGameObject* CDecendo::Clone(void* pArg, CGameObject* pOwner)
|
||||
|
||||
void CDecendo::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
//CTransform* pOtherTransform = p
|
||||
|
||||
if (m_isCollisionEnter == true)
|
||||
return;
|
||||
|
||||
m_isCollisionEnter = true;
|
||||
|
||||
_vector vPos = XMVectorSet(hitBuffer.block.position.x, hitBuffer.block.position.y, hitBuffer.block.position.z, 1.f);
|
||||
|
||||
|
||||
@@ -218,13 +217,26 @@ void CDecendo::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
m_pProjectile->Set_Visible(false);
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CPlayer*>(m_pOwner)->Get_PartObject<CWand>();
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
CPartObject* pCircle0 = Get_PartObject<CEffectParts>();
|
||||
CPartObject* pWandLight = Get_PartObject<CEffectParts>("Decendo_Wand_Light");
|
||||
|
||||
|
||||
pCircle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
_vector vPlayerPos = m_pOwner->Get_Component<CTransform>()->Get_State(STATE::POSITION);
|
||||
|
||||
|
||||
|
||||
Get_PartObject<CEffectParts>("Decendo_Down")->Get_Component<CTransform>()->LookAt(vPlayerPos);
|
||||
Get_PartObject<CEffectParts>("Decendo_Smoke")->Get_Component<CTransform>()->LookAt(vPlayerPos);
|
||||
|
||||
Get_PartObject<CEffectParts>()->Set_Visible(false);
|
||||
|
||||
|
||||
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);
|
||||
|
||||
@@ -89,17 +89,9 @@ void CDecendoSide::Late_Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CDecendoSide::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
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);
|
||||
|
||||
@@ -117,8 +109,6 @@ HRESULT CDecendoSide::Pre_Setting(CGameObject* pObject)
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -655,6 +655,38 @@ HRESULT CEffectObject::Bind_ShaderResources()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fDissolveDelay", &m_EffectInfo.fDissolveDelay, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fReverseDissolveDelay", &m_EffectInfo.fReverseDissolveDelay, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vDissolveUVGainAmount", &m_EffectInfo.vDissolveUVGainAmount, sizeof(_float2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_isDissolveMove", &m_EffectInfo.isDissolveMove, sizeof(_bool)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fDissolveMaskEdge", &m_EffectInfo.vDissolveValue.x, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fDissolveSoftMask", &m_EffectInfo.vDissolveValue.y, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fDissolveCutRatio", &m_EffectInfo.vDissolveValue.z, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (m_pDiffuse_TextureCom != nullptr)
|
||||
@@ -704,6 +736,8 @@ HRESULT CEffectObject::Bind_ShaderResources()
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "TrailObject.h"
|
||||
|
||||
#include "PhysXEffectHitBox.h"
|
||||
#include "GameObject.h"
|
||||
|
||||
#include <sstream>
|
||||
|
||||
@@ -23,6 +22,8 @@ CEffect_Container::CEffect_Container(const CEffect_Container& rhs)
|
||||
HRESULT CEffect_Container::Initialize_Prototype()
|
||||
{
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -35,7 +36,8 @@ HRESULT CEffect_Container::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Child()))
|
||||
return E_FAIL;
|
||||
|
||||
Set_Visible(false);
|
||||
|
||||
m_bVisible = false;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -60,168 +62,6 @@ void CEffect_Container::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CEffect_Container::Load_Directory(const _char* pPath)
|
||||
{
|
||||
|
||||
for (const auto& file : filesystem::directory_iterator(pPath))
|
||||
{
|
||||
if (file.is_directory())
|
||||
continue;
|
||||
|
||||
string ext = file.path().extension().string();
|
||||
|
||||
if (strcmp(ext.c_str(), ".bin"))
|
||||
continue;
|
||||
|
||||
_char szFilePath[MAX_PATH] = {};
|
||||
|
||||
strcpy_s(szFilePath, MAX_PATH, file.path().string().c_str());
|
||||
|
||||
|
||||
/////////////////////////////
|
||||
|
||||
CEffectParts* pEffectParts = nullptr;
|
||||
|
||||
CPartObject::PARTOBJECT_DESC PartsDesc{};
|
||||
|
||||
PartsDesc.pParentTransform = m_pTransformCom;
|
||||
|
||||
|
||||
|
||||
|
||||
/*이펙트 껍데기 생성*/
|
||||
|
||||
_wstring wstrFileName = file.path().stem().wstring(); //이름 넣기
|
||||
|
||||
if (FAILED(Add_PartObject<CEffectParts>(CMyTools::ToString(wstrFileName), g_iStaticLevel, &pEffectParts, &PartsDesc))) {
|
||||
assert(false);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
/*이펙트 로드 로드*/
|
||||
size_t iPos = {};
|
||||
_string strFilePath = szFilePath;
|
||||
|
||||
while ((iPos = strFilePath.find(".bin")) != std::string::npos) {
|
||||
strFilePath.erase(iPos, 4);
|
||||
};
|
||||
|
||||
|
||||
if (FAILED(pEffectParts->Load(strFilePath.c_str(),static_cast<LEVEL>(NEXT_LEVEL))))
|
||||
{
|
||||
Safe_Release(pEffectParts);
|
||||
continue;
|
||||
}
|
||||
|
||||
Safe_Release(pEffectParts);
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEffect_Container::Ready_Components(void* pArg)
|
||||
{
|
||||
CTransform::TRANSFORM_DESC TransformDesc = {};
|
||||
|
||||
TransformDesc.fRadius = 20.f;
|
||||
TransformDesc.fRotationPerSec = 10.f;
|
||||
TransformDesc.fSpeedPerSec = 10.f;
|
||||
|
||||
if (FAILED(__super::Ready_Components(&TransformDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEffect_Container::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEffect_Container::Reset_EffectParts()
|
||||
{
|
||||
for (auto& iter : m_PartObjects)
|
||||
{
|
||||
CInstance_Model* pInstanceModel = iter.second->Get_Component<CInstance_Model>();
|
||||
|
||||
if (pInstanceModel == nullptr){
|
||||
continue;
|
||||
}
|
||||
|
||||
pInstanceModel->Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
HRESULT CEffect_Container::Ready_Child()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CEffect_Container::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
}
|
||||
|
||||
HRESULT CEffect_Container::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CEffect_Container::Update_Event(_float fTimeDelta)
|
||||
{
|
||||
|
||||
|
||||
m_fPreAccTime = m_fAccTime;
|
||||
m_fAccTime += fTimeDelta;
|
||||
|
||||
if (m_fAccTime >= m_fDelay || m_isDelayed == false) // 아직 딜레이되지 않았고 딜레이를 넘어섰다면
|
||||
{
|
||||
m_isDelayed = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (m_fAccTime >= m_fDuration) // 듀레이션을 넘어섰다면
|
||||
{
|
||||
if (m_isLoop)
|
||||
{
|
||||
m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
m_isDelayed = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bVisible = false;
|
||||
|
||||
for (auto& pPart : m_PartObjects)
|
||||
{
|
||||
pPart.second->Set_Visible(false);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
for (auto& pPair : m_Events) // 이벤트들을 비교하면서 실행함
|
||||
{
|
||||
if (pPair.first >= m_fPreAccTime && pPair.first <= m_fAccTime)
|
||||
{
|
||||
pPair.second();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
HRESULT CEffect_Container::Load_Package(const _char* pPath)
|
||||
{
|
||||
|
||||
@@ -315,7 +155,7 @@ HRESULT CEffect_Container::Load_Package(const _char* pPath)
|
||||
};
|
||||
|
||||
|
||||
if (FAILED(pTrail->Load_Trail(strEffectPath.c_str(), static_cast<LEVEL>(NEXT_LEVEL))))
|
||||
if (FAILED(pTrail->Load_Trail(strEffectPath.c_str() , static_cast<LEVEL>(NEXT_LEVEL))))
|
||||
{
|
||||
Safe_Release(pTrail);
|
||||
continue;
|
||||
@@ -329,7 +169,7 @@ HRESULT CEffect_Container::Load_Package(const _char* pPath)
|
||||
|
||||
/////////////////////////////
|
||||
|
||||
CEffectParts* pEffectPart = nullptr;
|
||||
CEffectParts* pEffectParts = nullptr;
|
||||
|
||||
CPartObject::PARTOBJECT_DESC PartsDesc{};
|
||||
|
||||
@@ -337,7 +177,7 @@ HRESULT CEffect_Container::Load_Package(const _char* pPath)
|
||||
|
||||
/*이펙트 껍데기 생성*/
|
||||
|
||||
if (FAILED(Add_PartObject<CEffectParts>(strEffectName, g_iStaticLevel, &pEffectPart, &PartsDesc))) {
|
||||
if (FAILED(Add_PartObject<CEffectParts>(strEffectName, g_iStaticLevel, &pEffectParts, &PartsDesc))) {
|
||||
assert(false);
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -351,13 +191,13 @@ HRESULT CEffect_Container::Load_Package(const _char* pPath)
|
||||
};
|
||||
|
||||
|
||||
if (FAILED(pEffectPart->Load(strFilePath.c_str(), static_cast<LEVEL>(NEXT_LEVEL))))
|
||||
if (FAILED(pEffectParts->Load(strFilePath.c_str(), static_cast<LEVEL>(NEXT_LEVEL))))
|
||||
{
|
||||
Safe_Release(pEffectPart);
|
||||
Safe_Release(pEffectParts);
|
||||
continue;
|
||||
}
|
||||
|
||||
Safe_Release(pEffectPart);
|
||||
Safe_Release(pEffectParts);
|
||||
|
||||
}
|
||||
|
||||
@@ -365,3 +205,116 @@ HRESULT CEffect_Container::Load_Package(const _char* pPath)
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEffect_Container::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
|
||||
Reset_EffectParts();
|
||||
|
||||
m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
m_bVisible = true;
|
||||
m_isCollisionEnter = false;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEffect_Container::Ready_Components(void* pArg)
|
||||
{
|
||||
CTransform::TRANSFORM_DESC TransformDesc = {};
|
||||
|
||||
TransformDesc.fRadius = 20.f;
|
||||
TransformDesc.fRotationPerSec = 10.f;
|
||||
TransformDesc.fSpeedPerSec = 10.f;
|
||||
|
||||
if (FAILED(__super::Ready_Components(&TransformDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEffect_Container::Ready_Child()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CEffect_Container::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
}
|
||||
|
||||
HRESULT CEffect_Container::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEffect_Container::Reset_EffectParts()
|
||||
{
|
||||
for (auto& iter : m_PartObjects)
|
||||
{
|
||||
CInstance_Model* pInstanceModel = iter.second->Get_Component<CInstance_Model>();
|
||||
|
||||
if (pInstanceModel == nullptr)
|
||||
continue;
|
||||
|
||||
pInstanceModel->Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CEffect_Container::Update_Event(_float fTimeDelta)
|
||||
{
|
||||
|
||||
m_fPreAccTime = m_fAccTime;
|
||||
m_fAccTime += fTimeDelta;
|
||||
|
||||
if (m_fAccTime >= m_fDelay || m_isDelayed == false) // 아직 딜레이되지 않았고 딜레이를 넘어섰다면
|
||||
{
|
||||
m_isDelayed = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (m_fAccTime >= m_fDuration) // 듀레이션을 넘어섰다면
|
||||
{
|
||||
if (m_isLoop)
|
||||
{
|
||||
m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
m_isDelayed = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bVisible = false;
|
||||
|
||||
for (auto& pPart : m_PartObjects)
|
||||
{
|
||||
pPart.second->Set_Visible(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
for (auto& pPair : m_Events) // 이벤트들을 비교하면서 실행함
|
||||
{
|
||||
if (pPair.first >= m_fPreAccTime && pPair.first <= m_fAccTime)
|
||||
{
|
||||
pPair.second();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -34,9 +34,9 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Lights())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Background())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(Ready_Background())) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
if (FAILED(Ready_Markers())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -160,9 +160,9 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
/* Map Containters */
|
||||
/* 테스트용 맵 */
|
||||
|
||||
//CInfoInstance::GetInstance()->Load_MapObjects("ClientTest");
|
||||
CInfoInstance::GetInstance()->Load_MapObjects("ClientTest");
|
||||
/* 전체 맵 */
|
||||
CInfoInstance::GetInstance()->Load_MapObjects("Map1129");
|
||||
//CInfoInstance::GetInstance()->Load_MapObjects("Map1129");
|
||||
|
||||
/* 조명 오브젝트 */
|
||||
CInfoInstance::GetInstance()->Load_LightElements("LightElement");
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "EffectParts.h"
|
||||
#include "Player.h"
|
||||
#include "TrailObject.h"
|
||||
#include "PhysXEffectHitBox.h"
|
||||
#include "Wand.h"
|
||||
|
||||
|
||||
CLevioso::CLevioso(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -38,12 +38,10 @@ HRESULT CLevioso::Initialize(void* pArg)
|
||||
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);
|
||||
|
||||
@@ -54,6 +52,8 @@ HRESULT CLevioso::Initialize(void* pArg)
|
||||
|
||||
m_fDuration = 2.f;
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -61,7 +61,6 @@ void CLevioso::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
|
||||
XMStoreFloat4(&m_vStartPos, m_pLeviosoPJ_0->Get_WorldPostion());
|
||||
|
||||
}
|
||||
@@ -74,14 +73,13 @@ void CLevioso::Update(_float fTimeDelta)
|
||||
__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))
|
||||
if (true == m_pGameInstance->SphereCast(0.0f, XMLoadFloat4(&m_vStartPos), m_vOwnerLook, XMVectorGetX(XMVector3Length(m_vOwnerLook * 1.f))
|
||||
, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, hitBuffer))
|
||||
{
|
||||
OnCollision();
|
||||
@@ -116,20 +114,8 @@ void CLevioso::Late_Update(_float 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()))
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
return E_FAIL;
|
||||
|
||||
CPlayer* pPlayer = static_cast<CPlayer*>(m_pOwner);
|
||||
@@ -139,26 +125,25 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject)
|
||||
|
||||
_vector WandPos = pPlayer->Get_WandPos().r[3];
|
||||
|
||||
CEffectParts* pWandSmoke = Get_PartObject<CEffectParts>("Levioso_Wand0");
|
||||
|
||||
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);
|
||||
pWandSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, pPlayer->Get_PartObject<CWand>()->Get_WorldPostion());
|
||||
|
||||
|
||||
m_pLeviosoPJ_0 ->Set_Visible(true);
|
||||
m_pLeviosoPJ_1->Set_Visible(true);
|
||||
m_pLeviosoPJ_0->Set_Visible(true);
|
||||
m_pTrail_PT_0->Set_Visible(true);
|
||||
pWandSmoke->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;
|
||||
}
|
||||
|
||||
@@ -206,6 +191,11 @@ CGameObject* CLevioso::Clone(void* pArg, CGameObject* pOwner)
|
||||
|
||||
void CLevioso::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
if (m_isCollisionEnter == true)
|
||||
return;
|
||||
|
||||
m_isCollisionEnter = true;
|
||||
|
||||
_vector vPos = XMVectorSet(hitBuffer.block.position.x, hitBuffer.block.position.y, hitBuffer.block.position.z, 1.f);
|
||||
|
||||
|
||||
@@ -215,19 +205,19 @@ void CLevioso::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
__super::m_fAccTime = 0.f;
|
||||
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");
|
||||
//CEffectParts* pLevioso_Hit = Get_PartObject<CEffectParts>("Levioso_Hit");
|
||||
//CEffectParts* pLevioso_Bottom_Wind = Get_PartObject<CEffectParts>("Levioso_Bottom_Wind");
|
||||
//CEffectParts* pLevioso_Rotate0 = Get_PartObject<CEffectParts>("Levioso_Rotate0");
|
||||
//CEffectParts* pLevioso_Rotate1 = Get_PartObject<CEffectParts>("Levioso_Rotate1");
|
||||
//CEffectParts* pLevioso_Tornado = Get_PartObject<CEffectParts>("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);
|
||||
//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()
|
||||
@@ -236,7 +226,6 @@ void CLevioso::Free()
|
||||
|
||||
|
||||
SAFE_RELEASE(m_pLeviosoPJ_0);
|
||||
SAFE_RELEASE(m_pLeviosoPJ_1);
|
||||
SAFE_RELEASE(m_pLeviosoTrail);
|
||||
SAFE_RELEASE(m_pTrail_PT_0);
|
||||
}
|
||||
|
||||
@@ -90,17 +90,9 @@ void CLeviosoSide::Late_Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CLeviosoSide::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
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);
|
||||
|
||||
@@ -118,9 +110,6 @@ HRESULT CLeviosoSide::Pre_Setting(CGameObject* pObject)
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -225,249 +225,249 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
#pragma region MAP_MODELS
|
||||
vector<future<vector<FOLDER_LOAD*>*>> jobMapModels;
|
||||
|
||||
{
|
||||
{ /* Terrain */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Terrain",
|
||||
".bin", false
|
||||
));
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Terrain",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
//{
|
||||
// { /* Terrain */
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Terrain",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Terrain",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// }
|
||||
|
||||
{ /* Ollivanders*/
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Ollivanders/Meshes",
|
||||
".bin", false
|
||||
));
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Ollivanders/Collision",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
// { /* Ollivanders*/
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Ollivanders/Meshes",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Ollivanders/Collision",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// }
|
||||
|
||||
{ /* Gatehouse*/
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Gatehouse/Meshes",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
// { /* Gatehouse*/
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Gatehouse/Meshes",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// }
|
||||
|
||||
{ /* TScrolls */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TScrolls/Meshes",
|
||||
".bin", false
|
||||
));
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TScrolls/Collisions",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{ /* 3BroomStick*/
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Meshes",
|
||||
".bin", false
|
||||
));
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Collision",
|
||||
".bin", false
|
||||
));
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Meshes/3Broom_Kit",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
// { /* TScrolls */
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TScrolls/Meshes",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TScrolls/Collisions",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// }
|
||||
// { /* 3BroomStick*/
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Meshes",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Collision",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Meshes/3Broom_Kit",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// }
|
||||
|
||||
|
||||
{ /* BLDG_QuidditchShop */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_QuidditchShop/Meshes",
|
||||
".bin", false
|
||||
));
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_QuidditchShop/Collision",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{ /* BLDG_HogsheadInn */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_HogsheadInn/Meshes",
|
||||
".bin", false
|
||||
));
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_HogsheadInn/Collision",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{ /* BLDG_Honeydukes */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Honeydukes/Meshes",
|
||||
".bin", false
|
||||
));
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Honeydukes/Collision",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{ /* BLDG_OwlPost */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_OwlPost/Meshes",
|
||||
".bin", false
|
||||
));
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_OwlPost/Collision",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{ /* BLDG_TeaShop */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TeaShop/Meshes",
|
||||
".bin", false
|
||||
));
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TeaShop/Collision",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{ /* BLDG_Zonkos */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Zonkos/Meshes",
|
||||
".bin", false
|
||||
));
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Zonkos/Collision",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{ /* BLDG_DB_GR */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_DB_GR/Meshes",
|
||||
".bin", false
|
||||
));
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_DB_GR/Collision",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{ /* BLDG_Potions */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Potions/Meshes",
|
||||
".bin", false
|
||||
));
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Potions/Collisions",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{ /* BLDG_Salon */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Salon/Meshes",
|
||||
".bin", false
|
||||
));
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Salon/Collision",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{ /* Hengist_Tree */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Vegetation/Hengist_Tree",
|
||||
".bin", false
|
||||
));
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Vegetation",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{ /* GEN A*/
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_A/Meshes",
|
||||
".bin", false
|
||||
));
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_A/Collision",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{ /* GEN B*/
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_B/Meshes",
|
||||
".bin", false
|
||||
));
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_B/Collision",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{ /* GEN C*/
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_C/Meshes",
|
||||
".bin", false
|
||||
));
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_C/Collision",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{ /* GEN E*/
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_E/Meshes",
|
||||
".bin", false
|
||||
));
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_E/Collision",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{ /* GEN F*/
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_F/Meshes",
|
||||
".bin", false
|
||||
));
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_F/Collision",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{ /* GEN G*/
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_G/Meshes",
|
||||
".bin", false
|
||||
));
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_G/Collision",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{ /* GEN H*/
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_H/Meshes",
|
||||
".bin", false
|
||||
));
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_H/Collision",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{ /* GEN J*/
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_J/Meshes",
|
||||
".bin", false
|
||||
));
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_J/Collision",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{/* Light Objects */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/LightPosts",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
}
|
||||
// { /* BLDG_QuidditchShop */
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_QuidditchShop/Meshes",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_QuidditchShop/Collision",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// }
|
||||
// { /* BLDG_HogsheadInn */
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_HogsheadInn/Meshes",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_HogsheadInn/Collision",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// }
|
||||
// { /* BLDG_Honeydukes */
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Honeydukes/Meshes",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Honeydukes/Collision",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// }
|
||||
// { /* BLDG_OwlPost */
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_OwlPost/Meshes",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_OwlPost/Collision",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// }
|
||||
// { /* BLDG_TeaShop */
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TeaShop/Meshes",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_TeaShop/Collision",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// }
|
||||
// { /* BLDG_Zonkos */
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Zonkos/Meshes",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Zonkos/Collision",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// }
|
||||
// { /* BLDG_DB_GR */
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_DB_GR/Meshes",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_DB_GR/Collision",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// }
|
||||
// { /* BLDG_Potions */
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Potions/Meshes",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Potions/Collisions",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// }
|
||||
// { /* BLDG_Salon */
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Salon/Meshes",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Salon/Collision",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// }
|
||||
// { /* Hengist_Tree */
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Vegetation/Hengist_Tree",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Vegetation",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// }
|
||||
// { /* GEN A*/
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_A/Meshes",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_A/Collision",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// }
|
||||
// { /* GEN B*/
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_B/Meshes",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_B/Collision",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// }
|
||||
// { /* GEN C*/
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_C/Meshes",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_C/Collision",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// }
|
||||
// { /* GEN E*/
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_E/Meshes",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_E/Collision",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// }
|
||||
// { /* GEN F*/
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_F/Meshes",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_F/Collision",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// }
|
||||
// { /* GEN G*/
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_G/Meshes",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_G/Collision",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// }
|
||||
// { /* GEN H*/
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_H/Meshes",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_H/Collision",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// }
|
||||
// { /* GEN J*/
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_J/Meshes",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_GEN_J/Collision",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// }
|
||||
// {/* Light Objects */
|
||||
// jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
// "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/LightPosts",
|
||||
// ".bin", false
|
||||
// ));
|
||||
// }
|
||||
//}
|
||||
|
||||
#pragma endregion
|
||||
|
||||
|
||||
@@ -82,17 +82,9 @@ void CLumos::Late_Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CLumos::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
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)
|
||||
@@ -101,8 +93,6 @@ HRESULT CLumos::Pre_Setting(CGameObject* pObject)
|
||||
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;
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "InfoInstance.h"
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "PhysXEffectHitBox.h"
|
||||
#include "TrailObject.h"
|
||||
|
||||
|
||||
@@ -39,7 +38,7 @@ HRESULT CNomalJap::Initialize(void* pArg)
|
||||
|
||||
m_wstrEffectName = L"Nomal_Jap";
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Jap"))){
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Jap"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -70,7 +69,7 @@ void CNomalJap::Update(_float fTimeDelta)
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
if (m_fAccTime > m_fDuration) {
|
||||
if (m_fAccMoveTime > m_fDuration) {
|
||||
SAFE_RELEASE(m_pTargetUnit);
|
||||
}
|
||||
|
||||
@@ -95,7 +94,7 @@ void CNomalJap::Update(_float fTimeDelta)
|
||||
//m_pGameInstance->SphereCast(0.125f, vfStartPos, vDir, XMVectorGetX(XMVector3Length(vEndPos - vStartPos)), )
|
||||
|
||||
|
||||
if (false == m_bTrailPulseEnded && m_fAccTime > m_fDuration * 0.3f) {
|
||||
if (false == m_bTrailPulseEnded && m_fAccMoveTime > m_fDuration * 0.3f) {
|
||||
m_bTrailPulseEnded = true;
|
||||
|
||||
if (nullptr != m_pTargetUnit && false == m_pTargetUnit->isDead()) {
|
||||
@@ -105,7 +104,7 @@ void CNomalJap::Update(_float fTimeDelta)
|
||||
XMStoreFloat3(&m_vDirection, XMVector4Normalize(vTargetPos - vCurrentPos));
|
||||
|
||||
_float fDistance = XMVectorGetX(XMVector3Length(vTargetPos - vCurrentPos));
|
||||
m_fLinearSpeed = fDistance / (m_fDuration - m_fAccTime) * 10 / 3;
|
||||
m_fLinearSpeed = fDistance / (m_fDuration - m_fAccMoveTime) * 10 / 3;
|
||||
SAFE_RELEASE(m_pTargetUnit);
|
||||
}
|
||||
|
||||
@@ -116,17 +115,17 @@ void CNomalJap::Update(_float fTimeDelta)
|
||||
return;
|
||||
}
|
||||
_vector vRotateUp = XMLoadFloat3(&m_vRotateUp);
|
||||
m_fAccTime += fTimeDelta;
|
||||
m_fAccMoveTime += 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));
|
||||
m_pProjectile_Side->Get_Component<CTransform>()->Translation(vRotateUp * 0.6f * sinf(m_fAngularSpeed * m_fAccMoveTime));
|
||||
m_pProjectile->Get_Component<CTransform>()->Translation(vRotateUp * 0.6f * sinf(m_fAngularSpeed * m_fAccMoveTime));
|
||||
}
|
||||
|
||||
|
||||
void CNomalJap::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false){
|
||||
if (m_bVisible == false) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -137,24 +136,11 @@ void CNomalJap::Late_Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CNomalJap::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
return E_FAIL;
|
||||
|
||||
/* 부모 할당 */
|
||||
m_pOwner = pObject;
|
||||
|
||||
/* 피직스 생성*/
|
||||
if (FAILED(Ready_Child())){
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* 초기 셋팅 초기화 */
|
||||
Reset_EffectParts();
|
||||
m_fAccTime = 0.f;
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
m_bTrailPulseEnded = false;
|
||||
|
||||
m_fAccMoveTime = 0.f;
|
||||
|
||||
/* 초기 객체 위치 초기화 */
|
||||
_vector vStartPos = m_pOwner->Get_WorldPostion();
|
||||
@@ -180,7 +166,7 @@ HRESULT CNomalJap::Pre_Setting(CGameObject* pObject)
|
||||
//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));
|
||||
|
||||
|
||||
{ /* 대상 위치 지정 */
|
||||
SAFE_RELEASE(m_pTargetUnit);
|
||||
m_pTargetUnit = m_pInfoInstance->Get_LockOnUnit();
|
||||
@@ -204,8 +190,6 @@ HRESULT CNomalJap::Pre_Setting(CGameObject* pObject)
|
||||
|
||||
XMStoreFloat3(&m_vRotateUp, XMVector3Normalize(XMVector3Rotate(vUp, vQuaternion)));
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -253,7 +237,11 @@ CGameObject* CNomalJap::Clone(void* pArg, CGameObject* pOwner)
|
||||
|
||||
void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
//CTransform* pOtherTransform = p
|
||||
if (m_isCollisionEnter == true)
|
||||
return;
|
||||
|
||||
m_isCollisionEnter = true;
|
||||
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
for (auto& pPair : m_PartObjects)
|
||||
|
||||
@@ -93,17 +93,9 @@ void CNomalJapSide::Late_Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CNomalJapSide::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
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);
|
||||
|
||||
@@ -122,9 +114,6 @@ HRESULT CNomalJapSide::Pre_Setting(CGameObject* pObject)
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ HRESULT CPlayer::Initialize(void* pArg)
|
||||
void CPlayer::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
ReLockOnTarget();
|
||||
SetGravity();
|
||||
//SetGravity();
|
||||
m_pTransformCom->RewindMomentum();
|
||||
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
@@ -108,17 +108,9 @@ void CProtego::Late_Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CProtego::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
Reset_EffectParts();
|
||||
|
||||
m_fAccTime = 0.f;
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
|
||||
m_pSphere->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pBottom->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
@@ -138,9 +130,6 @@ HRESULT CProtego::Pre_Setting(CGameObject* pObject)
|
||||
m_pSphere->Set_Dissolve(false);
|
||||
m_pBottom->Set_Dissolve(false);
|
||||
m_pCircle->Set_Dissolve(false);
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -94,18 +94,9 @@ void CRevelio::Late_Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CRevelio::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
|
||||
Reset_EffectParts();
|
||||
|
||||
m_fAccTime = 0.f;
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
|
||||
CPlayer* pPlayer = static_cast<CPlayer*>(m_pOwner);
|
||||
|
||||
@@ -128,7 +119,6 @@ HRESULT CRevelio::Pre_Setting(CGameObject* pObject)
|
||||
Get_PartObject<CEffectParts>("Revelio_Ring")->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
Get_PartObject<CEffectParts>("Revelio_Ring")->Set_Visible(true);
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ HRESULT CTrailObject::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -42,14 +43,19 @@ void CTrailObject::Update(_float fTimeDelta)
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
if (m_TrailInfo.vDistortionTime.y == 0)
|
||||
return;
|
||||
|
||||
m_TrailInfo.vDistortionTime.x += fTimeDelta;
|
||||
|
||||
if (m_TrailInfo.vDistortionTime.x > m_TrailInfo.vDistortionTime.y)
|
||||
|
||||
|
||||
/* 디졸브 타임*/
|
||||
if (m_TrailInfo.vDistortionTime.y != 0)
|
||||
{
|
||||
m_TrailInfo.vDistortionTime.x = 0.f;
|
||||
m_TrailInfo.vDistortionTime.x += fTimeDelta;
|
||||
|
||||
if (m_TrailInfo.vDistortionTime.x > m_TrailInfo.vDistortionTime.y)
|
||||
{
|
||||
m_TrailInfo.vDistortionTime.x = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
/* 블룸 타임*/
|
||||
@@ -63,19 +69,21 @@ void CTrailObject::Update(_float fTimeDelta)
|
||||
m_TrailInfo.vBloomTime.x = 0.f;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void CTrailObject::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
|
||||
if (m_TrailInfo.isBloom == true)
|
||||
{
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::BLOOM, this);
|
||||
}
|
||||
|
||||
|
||||
if (m_TrailInfo.isBlur == true)
|
||||
{
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::BLUR, this);
|
||||
@@ -85,40 +93,11 @@ void CTrailObject::Late_Update(_float fTimeDelta)
|
||||
return;
|
||||
|
||||
if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::EFFECT, this);
|
||||
m_pGameInstance->Add_RenderGroup(m_TrailInfo.eRenderOrder, this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
HRESULT CTrailObject::Ready_Components(void* pArg)
|
||||
{
|
||||
|
||||
if (FAILED(__super::Ready_Components(nullptr))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_POSTEX, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
CTrail::TRAIL_DESC pTrailDesc;
|
||||
|
||||
pTrailDesc.vHigh = _float3(0.f, 1.f, 0.f);
|
||||
pTrailDesc.vLow = _float3(0.f, -1.f, 0.f);
|
||||
|
||||
if (FAILED(Add_Component<CTrail>(g_iStaticLevel, &m_pTrailCom, &pTrailDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CTrailObject::Trail_Update(_fmatrix WorldMat , _float fTimeDelta)
|
||||
{
|
||||
m_pTrailCom->Trail_Update(fTimeDelta, WorldMat);
|
||||
}
|
||||
|
||||
HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
|
||||
{
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
@@ -243,15 +222,44 @@ HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
|
||||
CloseHandle(hFile);
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CTrailObject::Ready_Components(void* pArg)
|
||||
{
|
||||
|
||||
if (FAILED(__super::Ready_Components(nullptr))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_POSTEX, (CComponent**)&m_pShaderCom, nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
CTrail::TRAIL_DESC pTrailDesc;
|
||||
|
||||
pTrailDesc.vHigh = _float3(0.f, 1.f, 0.f);
|
||||
pTrailDesc.vLow = _float3(0.f, -1.f, 0.f);
|
||||
|
||||
if (FAILED(Add_Component<CTrail>(g_iStaticLevel, &m_pTrailCom, &pTrailDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CTrailObject::Trail_Update(_fmatrix WorldMat, _float fTimeDelta)
|
||||
{
|
||||
m_pTrailCom->Trail_Update(fTimeDelta, WorldMat);
|
||||
}
|
||||
|
||||
|
||||
HRESULT CTrailObject::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources()))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_POSTEX::TRAIL))))
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(m_TrailInfo.eShaderPass))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Bind_DepthStencil(m_pShaderCom, "g_DepthStencilTexture")))
|
||||
@@ -260,12 +268,12 @@ HRESULT CTrailObject::Render()
|
||||
if (FAILED(m_pTrailCom->Render()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CTrailObject::Render_Blur()
|
||||
{
|
||||
|
||||
if (FAILED(Bind_ShaderResources()))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -289,6 +297,44 @@ HRESULT CTrailObject::Render_Blur()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CTrailObject::Render_Bloom()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources()))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fBloomStrength", &m_TrailInfo.fBloomStrength, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iBloomType", &m_TrailInfo.eBloomType, sizeof(_int)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_isBloomDissolve", &m_TrailInfo.isBloomDissolve, sizeof(_bool)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_isBloomReverseDissolve", &m_TrailInfo.isBloomReverseDissolve, sizeof(_bool)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vBloomTime", &m_TrailInfo.vBloomTime, sizeof(_float2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_POSTEX::TRAIL_BLOOM))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
if (FAILED(m_pTrailCom->Render()))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
CTrailObject* CTrailObject::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -328,52 +374,6 @@ void CTrailObject::Free()
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pTrailCom);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CTrailObject::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif // _DEBUG
|
||||
|
||||
HRESULT CTrailObject::Render_Bloom()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources()))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fBloomStrength", &m_TrailInfo.fBloomStrength, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iBloomType", &m_TrailInfo.eBloomType, sizeof(_int)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_isBloomDissolve", &m_TrailInfo.isBloomDissolve, sizeof(_bool)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_isBloomReverseDissolve", &m_TrailInfo.isBloomReverseDissolve, sizeof(_bool)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vBloomTime", &m_TrailInfo.vBloomTime, sizeof(_float2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_POSTEX::TRAIL_BLOOM))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
if (FAILED(m_pTrailCom->Render()))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
HRESULT CTrailObject::Bind_ShaderResources()
|
||||
{
|
||||
@@ -516,3 +516,10 @@ HRESULT CTrailObject::Bind_ShaderResources()
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CTrailObject::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Client
|
||||
enum class SHADER_PASS_MESH { DEFAULT, SHADOW, SKYBOX, ALPHABLEND, EFFECT_ALPHABLEND, EFFECT_BLEND, EFFECT_ALPHABLEND_CULL, EFFECT_BLEND_CULL, CAPTURE, BLUR, EFFECT_ALPHABLEND_UVMOVE, MAPTOOL, GLASS, OUTLINE_WRITE, OUTLINE_READ, BLOOM, END };
|
||||
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_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLEND, TRAILWB_FOR_BLEND, 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, 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 };
|
||||
|
||||
@@ -52,7 +52,6 @@ class CEffectObject abstract : public CPartObject
|
||||
_bool isBlur = {};
|
||||
_bool isBillboard = {};
|
||||
|
||||
|
||||
_float4 vEmissive = { 0.f ,0.f ,0.f ,0.f };
|
||||
_float fDiffuseAlpha = { 1.f };
|
||||
_float fBlurIntensity = {};
|
||||
@@ -86,23 +85,35 @@ class CEffectObject abstract : public CPartObject
|
||||
|
||||
SHADER_PASS_INSTANCE_MODEL eShaderPass = { SHADER_PASS_INSTANCE_MODEL::NON_NOMALMAP };
|
||||
|
||||
_bool isBlurNoEmissive = {};
|
||||
_bool isBlurNoEmissive = {};
|
||||
_bool isTexBlur = {};
|
||||
_bool isBlurDissolve = {};
|
||||
_bool isBlurReverseDissolve = {};
|
||||
|
||||
_bool isTexBlur = {};
|
||||
_bool isBlurDissolve = {};
|
||||
_bool isBlurReverseDissolve = {};
|
||||
_float fBluringStrength = { 0.01f };
|
||||
|
||||
_float fBluringStrength = { 0.01f };
|
||||
_bool isBloom = {};
|
||||
_bool isBloomDissolve = {};
|
||||
_bool isBloomReverseDissolve = {};
|
||||
_float fBloomStrength = {};
|
||||
BLOOM_TYPE eBloomType = {};
|
||||
|
||||
|
||||
_bool isBloom = {};
|
||||
_float fDissolveDelay = {};
|
||||
_float fReverseDissolveDelay = {};
|
||||
_float2 vDissolveUVGainAmount = {};
|
||||
_bool isDissolveMove = {};
|
||||
|
||||
_bool isBloomDissolve = {};
|
||||
_bool isBloomReverseDissolve = {};
|
||||
_float3 vDissolveValue = {};
|
||||
|
||||
_float fBloomStrength = {};
|
||||
|
||||
BLOOM_TYPE eBloomType = {};
|
||||
_float3 vPadding1 = {};
|
||||
|
||||
_float fPadding0 = {};
|
||||
_float fPadding1 = {};
|
||||
|
||||
_bool isPadding0 = {};
|
||||
_bool isPadding1 = {};
|
||||
|
||||
}EFFECT_INFO;
|
||||
|
||||
|
||||
@@ -50,6 +50,7 @@ class CEffect_Container abstract : public CContainerObject
|
||||
_float m_fDuration = {};
|
||||
_float m_fDelay = {};
|
||||
_bool m_isDelayed = { false };
|
||||
_bool m_isCollisionEnter = { false };
|
||||
|
||||
map<_float, function<void()>> m_Events = {};
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ class CNomalJap final : public CEffect_Container
|
||||
class CPartObject* m_pProjectile_Side = {};
|
||||
|
||||
_float3 m_vRotateUp = {};
|
||||
_float m_fAccTime = {};
|
||||
_float m_fAccMoveTime = {};
|
||||
_float m_fLerpAmount = {};
|
||||
_float m_fTurnValue = {};
|
||||
|
||||
|
||||
@@ -23,12 +23,8 @@ class CPlayerInfo final : public CBase
|
||||
pair<_float3, _float3> Get_CameraCoordinateSystem();
|
||||
private:
|
||||
CGameInstance* m_pGameInstance = { nullptr };
|
||||
class C
|
||||
|
||||
|
||||
|
||||
|
||||
* m_pInfoInstance = { nullptr };
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
ID3D11Device* m_pDevice = { nullptr };
|
||||
ID3D11DeviceContext* m_pContext = { nullptr };
|
||||
|
||||
|
||||
@@ -57,17 +57,33 @@ class CTrailObject final : public CPartObject
|
||||
_int iBlurWeight = {};
|
||||
|
||||
/* 블룸 */
|
||||
_bool isBloom = {};
|
||||
_bool isBloom = {};
|
||||
|
||||
_bool isBloomDissolve = {};
|
||||
_bool isBloomReverseDissolve = {};
|
||||
_bool isBloomDissolve = {};
|
||||
_bool isBloomReverseDissolve = {};
|
||||
|
||||
_float fBloomStrength = {};
|
||||
|
||||
BLOOM_TYPE eBloomType = {};
|
||||
_float2 vBloomTime = {};
|
||||
BLOOM_TYPE eBloomType = {};
|
||||
_float2 vBloomTime = {};
|
||||
|
||||
_int iNumVertex = {};
|
||||
_int iNumVertex = {};
|
||||
|
||||
|
||||
RENDER eRenderOrder = { RENDER::EFFECT };
|
||||
SHADER_PASS_POSTEX eShaderPass = { SHADER_PASS_POSTEX::TRAIL };
|
||||
|
||||
_float3 vPadding0 = {};
|
||||
_float3 vPadding1 = {};
|
||||
_float3 vPadding2 = {};
|
||||
|
||||
_float fPadding0 = {};
|
||||
_float fPadding1 = {};
|
||||
_float fPadding2 = {};
|
||||
|
||||
_bool isPadding0 = {};
|
||||
_bool isPadding1 = {};
|
||||
_bool isPadding2 = {};
|
||||
|
||||
}TRAIL_INFO;
|
||||
private:
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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.
@@ -320,13 +320,13 @@ float2 SelectLerpUV(float2 fAmount, float _fRatio, int iSelectOption)
|
||||
fRatio = fRatio * fRatio; // EaseInQuad 후반에 속도 증가
|
||||
break;
|
||||
case 2:
|
||||
fRatio = 1 - (1 - fRatio * fRatio); // EaseOutQuad 초반에 속도 증가
|
||||
fRatio = 1 - pow(1 - fRatio, 2); // EaseOutQuad 초반에 속도 증가
|
||||
break;
|
||||
case 3:
|
||||
fRatio = fRatio * fRatio * fRatio; // EaseInCubic 더 강하게 후반 속도 증가
|
||||
break;
|
||||
case 4:
|
||||
fRatio = 1 - (1 - fRatio * fRatio * fRatio); // EaseOutCubic 더 강하게 초반 속도 증가
|
||||
fRatio = 1 - pow(1 - fRatio, 3); // EaseOutCubic 더 강하게 초반 속도 증가
|
||||
break;
|
||||
case 5:
|
||||
fRatio = 0.5f * (1 - cos(PI * fRatio)); // EaseInOutSin 사인 곡선
|
||||
|
||||
@@ -24,8 +24,9 @@ struct ParticleValue
|
||||
float2 vDiffuseUVMoveTime;
|
||||
float2 vDistortionUVMoveTime;
|
||||
float2 vNoiseUVMoveTime;
|
||||
float2 vAniTime;
|
||||
float2 vDissolveUVMoveTime;
|
||||
float2 vAniTime;
|
||||
|
||||
|
||||
float2 vAniIndex;
|
||||
float fGravity;
|
||||
@@ -70,8 +71,8 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐
|
||||
bool isPadding2;
|
||||
|
||||
float fTimeDelta;
|
||||
float fPadding1; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다.
|
||||
float fPadding2;
|
||||
float fSizeLerpOption; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다.
|
||||
float fMoveLerpOption;
|
||||
float fPadding3;
|
||||
}
|
||||
|
||||
@@ -165,11 +166,11 @@ void CS_MAIN(
|
||||
|
||||
float3 vDir = normalize(particleValue.vPivot - particleValue.vOriginTranslation.xyz);
|
||||
|
||||
float fRatio = (1 - fTime * fTime);
|
||||
float fDrag = particleValue.fDrag;
|
||||
|
||||
float fDrag = particleValue.fDrag * fRatio;
|
||||
if (fSizeLerpOption != 0.f)
|
||||
fDrag = SelectLerpUV(float2(particleValue.fSizeDrag, 0.f), fTime, fMoveLerpOption).x;
|
||||
|
||||
|
||||
if (particleValue.fDrag < FLT_EPSILON5)
|
||||
fDrag = 1;
|
||||
|
||||
@@ -244,14 +245,14 @@ void CS_MAIN(
|
||||
|
||||
float fTime = (particle.vLifeTime.x / particle.vLifeTime.y);
|
||||
|
||||
float fRatio = 1 - (1 - fTime * fTime);
|
||||
|
||||
float fDrag = particleValue.fSizeDrag;
|
||||
|
||||
if (fSizeLerpOption != 0.f)
|
||||
fDrag = SelectLerpUV(float2(particleValue.fSizeDrag, 0.f), fTime, fSizeLerpOption).x;
|
||||
|
||||
if (particleValue.fSizeDrag < FLT_EPSILON5)
|
||||
fDrag = 1;
|
||||
|
||||
//fDrag *= fRatio;
|
||||
|
||||
|
||||
CurLength += particleValue.vDeltaSize * fTimeDelta * fDrag;
|
||||
|
||||
|
||||
@@ -138,6 +138,10 @@ float g_fReverseDissolveDelay;
|
||||
float2 g_vDissolveUVGainAmount;
|
||||
bool g_isDissolveMove;
|
||||
|
||||
float g_fDissolveMaskEdge;
|
||||
float g_fDissolveSoftMask;
|
||||
float g_fDissolveCutRatio;
|
||||
|
||||
struct VS_IN
|
||||
{
|
||||
float3 vPosition : POSITION;
|
||||
@@ -253,7 +257,7 @@ float4 DrawEffect(PS_IN In)
|
||||
vector vMtrlDissolve;
|
||||
vector vMtrlDistortion;
|
||||
|
||||
float fAnimIndex = g_ParticleValue[In.iGPUIndex].vAniIndex.x;
|
||||
float fAnimIndex = g_ParticleValue[In.iGPUIndex].vAniIndex.x;
|
||||
float2 vDiffuseTime = g_ParticleValue[In.iGPUIndex].vDiffuseUVMoveTime;
|
||||
float2 vMaskingTime = g_ParticleValue[In.iGPUIndex].vMaskingUVMoveTime;
|
||||
float2 vNoiseUVMoveTime = g_ParticleValue[In.iGPUIndex].vNoiseUVMoveTime;
|
||||
@@ -452,8 +456,7 @@ float4 DrawEffect(PS_IN In)
|
||||
{
|
||||
fTimeRatio = In.vLifeTime.x / In.vLifeTime.y;
|
||||
}
|
||||
|
||||
if (fTimeX > 0 && fTimeY != 0)
|
||||
else if (fTimeX > 0 && fTimeY != 0)
|
||||
{
|
||||
fTimeRatio = saturate(fTimeX / fTimeY);
|
||||
}
|
||||
@@ -463,41 +466,61 @@ float4 DrawEffect(PS_IN In)
|
||||
{
|
||||
if (g_isReverseDissolve == false)
|
||||
{
|
||||
vMtrlDiffuse.a *= (0.95f - fTimeRatio);
|
||||
vMtrlDiffuse.a *= saturate((0.96f - fTimeRatio));
|
||||
}
|
||||
else
|
||||
{
|
||||
vMtrlDiffuse.a *= In.vLifeTime.x / In.vLifeTime.y;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
float2 vDissolveUV = In.vTexcoord + SelectLerpUV(g_vDissolveUVGainAmount, (vDissolveUVMoveTime.x / vDissolveUVMoveTime.y), 0);
|
||||
|
||||
|
||||
if (vMtrlDiffuse.a <= FLT_EPSILON5)
|
||||
if (g_isDissolveMove)
|
||||
vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, vDissolveUV);
|
||||
else
|
||||
vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord);
|
||||
|
||||
/* */
|
||||
float fSoftDissolve;
|
||||
|
||||
if (g_fDissolveSoftMask > FLT_EPSILON5)
|
||||
fSoftDissolve = saturate((vMtrlDissolve.r - g_fDissolveMaskEdge) * g_fDissolveSoftMask);
|
||||
else
|
||||
fSoftDissolve = vMtrlDissolve.r;
|
||||
|
||||
vMtrlDissolve.r = fSoftDissolve;
|
||||
|
||||
if (g_isReverseDissolve == true)
|
||||
{
|
||||
if (vMtrlDissolve.r >= (In.vLifeTime.x / In.vLifeTime.y))
|
||||
discard;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
float2 vDissolveUV = In.vTexcoord + SelectLerpUV(g_vDissolveUVGainAmount, (vDissolveUVMoveTime.x / vDissolveUVMoveTime.y), 0);
|
||||
|
||||
if (g_isDissolveMove)
|
||||
vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, vDissolveUV);
|
||||
else
|
||||
vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord);
|
||||
|
||||
|
||||
|
||||
if (g_isReverseDissolve == true)
|
||||
if (g_fDissolveCutRatio <= fTimeRatio) // 일정 수준 이상 넘어가지 못하도록 막기
|
||||
{
|
||||
if (vMtrlDissolve.r >= (In.vLifeTime.x / In.vLifeTime.y))
|
||||
discard;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (vMtrlDissolve.r < fTimeRatio)
|
||||
discard;
|
||||
fTimeRatio = g_fDissolveCutRatio;
|
||||
|
||||
}
|
||||
|
||||
//if (vMtrlDissolve.r <= fTimeRatio + 0.1f)
|
||||
// discard;
|
||||
|
||||
|
||||
fTimeRatio = 1 - pow(1 - fTimeRatio, 3);
|
||||
|
||||
float fFade = smoothstep(fTimeRatio - 0.1f, fTimeRatio + 0.1f, vMtrlDissolve.r);
|
||||
|
||||
vMtrlDiffuse.a *= fFade;
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (vMtrlDiffuse.a <= FLT_EPSILON5)
|
||||
discard;
|
||||
}
|
||||
|
||||
return vMtrlDiffuse;
|
||||
@@ -754,8 +777,11 @@ PS_BLOOM_OUT PS_BLOOM(PS_IN In)
|
||||
{
|
||||
PS_BLOOM_OUT Out;
|
||||
|
||||
|
||||
vector vMtrlDiffuse;
|
||||
|
||||
if (FLT_EPSILON5 >= (In.vLifeTime.x / In.vLifeTime.y))
|
||||
discard;
|
||||
|
||||
vector vMtrlDiffuse = vector(0.f, 0.f, 0.f, 0.f);
|
||||
|
||||
vMtrlDiffuse = DrawEffect(In);
|
||||
|
||||
|
||||
@@ -386,6 +386,40 @@ PS_BLUR_OUT PS_TRAIL_BLOOM(PS_IN In)
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_BLOOM_OUT PS_BLEND(PS_IN In)
|
||||
{
|
||||
PS_BLOOM_OUT Out;
|
||||
|
||||
vector vMtrlDiffuse;
|
||||
|
||||
vMtrlDiffuse = Draw_Trail(In);
|
||||
|
||||
vMtrlDiffuse.rgb += EmissiveDraw(In).rgb;
|
||||
|
||||
Out.vDiffuse = vMtrlDiffuse;
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_BLOOM_OUT PS_WEIGHTED_FOR_BLEND(PS_IN In)
|
||||
{
|
||||
PS_BLOOM_OUT Out;
|
||||
|
||||
vector vMtrlDiffuse;
|
||||
|
||||
vMtrlDiffuse = Draw_Trail(In);
|
||||
|
||||
vMtrlDiffuse.rgb += EmissiveDraw(In).rgb;
|
||||
|
||||
|
||||
float fWeight = clamp(pow(In.vProjPos.w, -2.5f), 1.0f, 1000.0f);
|
||||
|
||||
Out.vDiffuse = vector(vMtrlDiffuse.rgb, vMtrlDiffuse.a) * fWeight;
|
||||
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
technique11 PosTexTechnique11
|
||||
{
|
||||
pass PosTexPass
|
||||
@@ -438,6 +472,26 @@ technique11 PosTexTechnique11
|
||||
PixelShader = compile ps_5_0 PS_Trail();
|
||||
}
|
||||
|
||||
pass TrailBlend
|
||||
{
|
||||
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_MAIN();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_BLEND();
|
||||
}
|
||||
|
||||
pass TrailWB_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();
|
||||
}
|
||||
|
||||
pass TrailBlur
|
||||
{
|
||||
SetRasterizerState(RS_Nocull);
|
||||
|
||||
@@ -89,20 +89,9 @@ void CBombard::Late_Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CBombard::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
if (FAILED(Ready_Child()))
|
||||
return E_FAIL;
|
||||
|
||||
Reset_EditEffect();
|
||||
|
||||
m_fAccTime = 0.f;
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
CWand* pWand = static_cast<CPlayer*>(m_pOwner)->Get_PartObject<CWand>();
|
||||
|
||||
if (pWand == nullptr)
|
||||
@@ -114,6 +103,7 @@ HRESULT CBombard::Pre_Setting(CGameObject* pObject)
|
||||
|
||||
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());
|
||||
@@ -124,9 +114,6 @@ HRESULT CBombard::Pre_Setting(CGameObject* pObject)
|
||||
m_pLight_Projectile->Set_Visible(true);
|
||||
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -173,7 +160,10 @@ CGameObject* CBombard::Clone(void* pArg, CGameObject* pOwner)
|
||||
|
||||
void CBombard::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
//CTransform* pOtherTransform = p
|
||||
if (m_isCollisionEnter == true)
|
||||
return;
|
||||
|
||||
m_isCollisionEnter = true;
|
||||
|
||||
_vector vPos = XMVectorSet(hitBuffer.block.position.x, hitBuffer.block.position.y, hitBuffer.block.position.z, 1.f);
|
||||
|
||||
@@ -184,14 +174,27 @@ void CBombard::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
CWand* pWand = static_cast<CPlayer*>(m_pOwner)->Get_PartObject<CWand>();
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
CPartObject* pShootPt = Get_PartObject<CEditEffect>("Bombard_Shoot_Pt");
|
||||
CPartObject* pCircle0 = Get_PartObject<CEditEffect>("Bombard_Circle0");
|
||||
|
||||
pShootPt->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
pCircle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
|
||||
m_pLight_Projectile->Set_Visible(false);
|
||||
Get_PartObject<CEditEffect>("Bombard_Shoot_Pt")->Set_Visible(false);
|
||||
|
||||
//Get_PartObject<CEditEffect>("Bombard_PT_0")->Get_Component<CTransform>()->LookAt(m_pOwner->Get_WorldPostion());
|
||||
//Get_PartObject<CEditEffect>("Bombard_PT_1")->Get_Component<CTransform>()->LookAt(m_pOwner->Get_WorldPostion());
|
||||
//Get_PartObject<CEditEffect>("Bombard_PT_2")->Get_Component<CTransform>()->LookAt(m_pOwner->Get_WorldPostion());
|
||||
|
||||
_vector vOwnerLook = m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK);
|
||||
Get_PartObject<CEditEffect>("Bombard_Smoke")->Get_Component<CTransform>()->Translation(vOwnerLook);
|
||||
|
||||
Get_PartObject<CEditEffect>("Bombard_Circle0")->Set_Visible(false);
|
||||
|
||||
}
|
||||
|
||||
void CBombard::Free()
|
||||
|
||||
@@ -113,17 +113,9 @@ void CBombardSide::Late_Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CBombardSide::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
Reset_EditEffect();
|
||||
|
||||
m_fAccTime = 0.f;
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
@@ -144,9 +136,6 @@ HRESULT CBombardSide::Pre_Setting(CGameObject* pObject)
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -103,22 +103,9 @@ void CDecendo::Late_Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CDecendo::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
return E_FAIL;
|
||||
|
||||
/* 부모 할당 */
|
||||
m_pOwner = pObject;
|
||||
|
||||
/* 피직스 생성*/
|
||||
if (FAILED(Ready_Child()))
|
||||
return E_FAIL;
|
||||
|
||||
/* 초기 셋팅 초기화 */
|
||||
Reset_EditEffect();
|
||||
m_fAccTime = 0.f;
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CPlayer*>(m_pOwner)->Get_PartObject<CWand>();
|
||||
|
||||
@@ -128,16 +115,25 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject)
|
||||
|
||||
CPartObject* pCircle0 = Get_PartObject<CEditEffect>();
|
||||
|
||||
CPartObject* pWandLight = Get_PartObject<CEditEffect>("Decendo_Wand_Light");
|
||||
|
||||
|
||||
|
||||
/* 초기 객체 위치 초기화 */
|
||||
pCircle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
pCircle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->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);
|
||||
pWandLight->Set_Visible(true);
|
||||
|
||||
m_pProjectile->Set_Visible(true);
|
||||
m_pProjectile_Blur->Set_Visible(true);
|
||||
|
||||
|
||||
/*트레일 초기화 */
|
||||
Get_PartObject<CTrailObject>()->Set_Visible(true);
|
||||
Get_PartObject<CTrailObject>()->Get_Component<CTrail>()->Reset_Trail();
|
||||
@@ -153,7 +149,6 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject)
|
||||
m_vRotateUp = XMVector3Rotate(vUp, vQuaternion);
|
||||
m_vRotateUp = XMVector3Normalize(m_vRotateUp);
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -201,7 +196,12 @@ CGameObject* CDecendo::Clone(void* pArg, CGameObject* pOwner)
|
||||
|
||||
void CDecendo::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
//CTransform* pOtherTransform = p
|
||||
|
||||
if (m_isCollisionEnter == true)
|
||||
return;
|
||||
|
||||
m_isCollisionEnter = true;
|
||||
|
||||
_vector vPos = XMVectorSet(hitBuffer.block.position.x, hitBuffer.block.position.y, hitBuffer.block.position.z, 1.f);
|
||||
|
||||
|
||||
@@ -217,13 +217,26 @@ void CDecendo::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
m_pProjectile->Set_Visible(false);
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CPlayer*>(m_pOwner)->Get_PartObject<CWand>();
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
CPartObject* pCircle0 = Get_PartObject<CEditEffect>();
|
||||
CPartObject* pWandLight = Get_PartObject<CEditEffect>("Decendo_Wand_Light");
|
||||
|
||||
|
||||
pCircle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
_vector vPlayerPos = m_pOwner->Get_Component<CTransform>()->Get_State(STATE::POSITION);
|
||||
|
||||
|
||||
|
||||
Get_PartObject<CEditEffect>("Decendo_Down")->Get_Component<CTransform>()->LookAt(vPlayerPos);
|
||||
Get_PartObject<CEditEffect>("Decendo_Smoke")->Get_Component<CTransform>()->LookAt(vPlayerPos);
|
||||
|
||||
Get_PartObject<CEditEffect>()->Set_Visible(false);
|
||||
|
||||
|
||||
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);
|
||||
|
||||
@@ -101,23 +101,17 @@ void CDecendoSide::Late_Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CDecendoSide::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
Reset_EditEffect();
|
||||
|
||||
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_isTrailEnd = false;
|
||||
|
||||
m_pWandLight->Set_Visible(true);
|
||||
|
||||
/*트레일 초기화 */
|
||||
@@ -128,9 +122,6 @@ HRESULT CDecendoSide::Pre_Setting(CGameObject* pObject)
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -84,6 +84,7 @@ void CEditEffect::Late_Update(_float fTimeDelta)
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (m_isWandPos == true)
|
||||
{
|
||||
_vector vWandPos = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_PLAYER)->Get_Object<CPlayer>()->Get_PartObject<CWand>()->Get_WorldPostion();
|
||||
@@ -432,6 +433,7 @@ void CEditEffect::Describe_Entity()
|
||||
m_EffectInfo.eRenderOrder = static_cast<RENDER>(iCurrentItem);
|
||||
}
|
||||
|
||||
|
||||
if (ImGui::Combo("Effect Type", &iCurrentType, pEffectType, ENUM_CLASS(EFFECT_TYPE::END)))
|
||||
{
|
||||
m_EffectInfo.eEffectType = static_cast<EFFECT_TYPE>(iCurrentType);
|
||||
@@ -443,7 +445,6 @@ void CEditEffect::Describe_Entity()
|
||||
}
|
||||
|
||||
|
||||
|
||||
GUI::Checkbox("Visible", &m_bVisible);
|
||||
GUI::Checkbox("GO", &m_isGoStraight);
|
||||
GUI::Checkbox("WAND POS", &m_isWandPos);
|
||||
@@ -725,13 +726,22 @@ void CEditEffect::Describe_Entity()
|
||||
GUI::Checkbox("Nomal Dissolve", &m_EffectInfo.isNomalDissolve);
|
||||
GUI::Checkbox("Reverse Dissolve", &m_EffectInfo.isReverseDissolve);
|
||||
|
||||
ImGui::PushItemWidth(80);
|
||||
GUI::Spacing();
|
||||
GUI::Checkbox("DissolveMove", &m_EffectInfo.isDissolveMove);
|
||||
GUI::DragFloat2("DissolveUVGainAmount", (_float*)&m_EffectInfo.vDissolveUVGainAmount, 0.01f);
|
||||
|
||||
GUI::Spacing();
|
||||
GUI::DragFloat("DissolveDelay", &m_EffectInfo.fDissolveDelay, 0.005f);
|
||||
GUI::DragFloat("ReverseDissolveDelay", &m_EffectInfo.fReverseDissolveDelay, 0.005f);
|
||||
|
||||
GUI::Spacing();
|
||||
|
||||
GUI::DragFloat("DissolveMaskEdge", &m_EffectInfo.vDissolveValue.x, 0.005f);
|
||||
GUI::DragFloat("DissolveSoftMask", &m_EffectInfo.vDissolveValue.y, 0.005f);
|
||||
GUI::DragFloat("DissolveCutRatio", &m_EffectInfo.vDissolveValue.z, 0.005f);
|
||||
|
||||
ImGui::PopItemWidth();
|
||||
_string strName = m_pGameInstance->Asset_Description<CTexture>(ENUM_CLASS(LEVEL::EFFECT), "DISSOLVE_TEXTURE", (CComponent**)&m_pDissolve_TextureCom, nullptr, this);
|
||||
|
||||
if (strName != "") {
|
||||
|
||||
@@ -918,6 +918,18 @@ HRESULT CEffectObject::Bind_ShaderResources()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fDissolveMaskEdge", &m_EffectInfo.vDissolveValue.x, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fDissolveSoftMask", &m_EffectInfo.vDissolveValue.y, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fDissolveCutRatio", &m_EffectInfo.vDissolveValue.z, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -308,6 +308,20 @@ HRESULT CEffect_Container::Load_Package(const _char* pPath)
|
||||
|
||||
HRESULT CEffect_Container::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
|
||||
Reset_EditEffect();
|
||||
|
||||
m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
m_bVisible = true;
|
||||
m_isCollisionEnter = false;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -74,21 +74,6 @@ void CEffect_Editor::Update(_float fTimeDelta)
|
||||
Describe_Entity();
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
if (m_pGameInstance->Key_Pressing(DIK_UP))
|
||||
m_pTransformCom->Go_Straight(fTimeDelta);
|
||||
if (m_pGameInstance->Key_Pressing(DIK_DOWN))
|
||||
m_pTransformCom->Go_Backward(fTimeDelta);
|
||||
if (m_pGameInstance->Key_Pressing(DIK_RIGHT))
|
||||
m_pTransformCom->Go_Right(fTimeDelta);
|
||||
if (m_pGameInstance->Key_Pressing(DIK_LEFT))
|
||||
m_pTransformCom->Go_Left(fTimeDelta);
|
||||
|
||||
if (m_pGameInstance->Key_Pressing(DIK_Z))
|
||||
m_pTransformCom->Turn(XMVectorSet(0.f, 1.f, 0.f, 0.f), fTimeDelta);
|
||||
|
||||
/* 이펙트 컨테이너 업데이트 */
|
||||
//Update_Event(fTimeDelta);
|
||||
|
||||
/* 트레일 업데이트 */
|
||||
|
||||
if (m_isWandPos == true)
|
||||
@@ -109,6 +94,25 @@ void CEffect_Editor::Update(_float fTimeDelta)
|
||||
}
|
||||
|
||||
|
||||
if (m_pGameInstance->Key_Pressing(DIK_UP))
|
||||
m_pTransformCom->Go_Straight(fTimeDelta);
|
||||
if (m_pGameInstance->Key_Pressing(DIK_DOWN))
|
||||
m_pTransformCom->Go_Backward(fTimeDelta);
|
||||
if (m_pGameInstance->Key_Pressing(DIK_RIGHT))
|
||||
m_pTransformCom->Go_Right(fTimeDelta);
|
||||
if (m_pGameInstance->Key_Pressing(DIK_LEFT))
|
||||
m_pTransformCom->Go_Left(fTimeDelta);
|
||||
|
||||
if (m_pGameInstance->Key_Pressing(DIK_Z))
|
||||
m_pTransformCom->Turn(XMVectorSet(0.f, 1.f, 0.f, 0.f), fTimeDelta);
|
||||
|
||||
/* 이펙트 컨테이너 업데이트 */
|
||||
//Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#include "EditEffect.h"
|
||||
#include "Player.h"
|
||||
#include "TrailObject.h"
|
||||
#include "Wand.h"
|
||||
|
||||
|
||||
CLevioso::CLevioso(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -37,12 +38,10 @@ HRESULT CLevioso::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
|
||||
m_pLeviosoPJ_0 = Get_PartObject<CEditEffect>("Levioso_PJ0");
|
||||
m_pLeviosoPJ_1 = Get_PartObject<CEditEffect>("Levioso_PJ1");
|
||||
m_pLeviosoTrail = Get_PartObject<CTrailObject>("Levioso_Trail");
|
||||
m_pTrail_PT_0 = Get_PartObject<CEditEffect>("Trail_PT0");
|
||||
|
||||
SAFE_ADDREF(m_pLeviosoPJ_0);
|
||||
SAFE_ADDREF(m_pLeviosoPJ_1);
|
||||
SAFE_ADDREF(m_pLeviosoTrail);
|
||||
SAFE_ADDREF(m_pTrail_PT_0);
|
||||
|
||||
@@ -76,12 +75,11 @@ void CLevioso::Update(_float 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))
|
||||
if (true == m_pGameInstance->SphereCast(0.0f, XMLoadFloat4(&m_vStartPos), m_vOwnerLook, XMVectorGetX(XMVector3Length(m_vOwnerLook * 1.f))
|
||||
, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, hitBuffer))
|
||||
{
|
||||
OnCollision();
|
||||
@@ -116,20 +114,8 @@ void CLevioso::Late_Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CLevioso::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
|
||||
Reset_EditEffect();
|
||||
|
||||
m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
m_fAccRotateTime = 0.f;
|
||||
|
||||
if (FAILED(Ready_Child()))
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
return E_FAIL;
|
||||
|
||||
CPlayer* pPlayer = static_cast<CPlayer*>(m_pOwner);
|
||||
@@ -139,26 +125,25 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject)
|
||||
|
||||
_vector WandPos = pPlayer->Get_WandPos().r[3];
|
||||
|
||||
CEditEffect* pWandSmoke = Get_PartObject<CEditEffect>("Levioso_Wand0");
|
||||
|
||||
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->Get_Component<CTransform>()->Set_State(STATE::POSITION, WandPos);
|
||||
m_pTrail_PT_0->Get_Component<CTransform>()->Set_State(STATE::POSITION, WandPos);
|
||||
pWandSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, pPlayer->Get_PartObject<CWand>()->Get_WorldPostion());
|
||||
|
||||
m_pLeviosoPJ_0->Set_Visible(true);
|
||||
m_pLeviosoPJ_1->Set_Visible(true);
|
||||
m_pTrail_PT_0->Set_Visible(true);
|
||||
pWandSmoke->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;
|
||||
}
|
||||
|
||||
@@ -206,6 +191,11 @@ CGameObject* CLevioso::Clone(void* pArg, CGameObject* pOwner)
|
||||
|
||||
void CLevioso::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
if (m_isCollisionEnter == true)
|
||||
return;
|
||||
|
||||
m_isCollisionEnter = true;
|
||||
|
||||
_vector vPos = XMVectorSet(hitBuffer.block.position.x, hitBuffer.block.position.y, hitBuffer.block.position.z, 1.f);
|
||||
|
||||
|
||||
@@ -224,10 +214,10 @@ void CLevioso::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
//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);
|
||||
//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()
|
||||
@@ -236,7 +226,6 @@ void CLevioso::Free()
|
||||
|
||||
|
||||
SAFE_RELEASE(m_pLeviosoPJ_0);
|
||||
SAFE_RELEASE(m_pLeviosoPJ_1);
|
||||
SAFE_RELEASE(m_pLeviosoTrail);
|
||||
SAFE_RELEASE(m_pTrail_PT_0);
|
||||
}
|
||||
|
||||
@@ -90,17 +90,9 @@ void CLeviosoSide::Late_Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CLeviosoSide::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
Reset_EditEffect();
|
||||
|
||||
m_fAccTime = 0.f;
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
@@ -118,9 +110,6 @@ HRESULT CLeviosoSide::Pre_Setting(CGameObject* pObject)
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ void CNomalJap::Update(_float fTimeDelta)
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
if (m_fAccTime > m_fDuration) {
|
||||
if (m_fAccMoveTime > m_fDuration) {
|
||||
SAFE_RELEASE(m_pTargetUnit);
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ void CNomalJap::Update(_float fTimeDelta)
|
||||
//m_pGameInstance->SphereCast(0.125f, vfStartPos, vDir, XMVectorGetX(XMVector3Length(vEndPos - vStartPos)), )
|
||||
|
||||
|
||||
if (false == m_bTrailPulseEnded && m_fAccTime > m_fDuration * 0.3f) {
|
||||
if (false == m_bTrailPulseEnded && m_fAccMoveTime > m_fDuration * 0.3f) {
|
||||
m_bTrailPulseEnded = true;
|
||||
|
||||
if (nullptr != m_pTargetUnit && false == m_pTargetUnit->isDead()) {
|
||||
@@ -104,7 +104,7 @@ void CNomalJap::Update(_float fTimeDelta)
|
||||
XMStoreFloat3(&m_vDirection, XMVector4Normalize(vTargetPos - vCurrentPos));
|
||||
|
||||
_float fDistance = XMVectorGetX(XMVector3Length(vTargetPos - vCurrentPos));
|
||||
m_fLinearSpeed = fDistance / (m_fDuration - m_fAccTime) * 10 / 3;
|
||||
m_fLinearSpeed = fDistance / (m_fDuration - m_fAccMoveTime) * 10 / 3;
|
||||
SAFE_RELEASE(m_pTargetUnit);
|
||||
}
|
||||
|
||||
@@ -115,11 +115,11 @@ void CNomalJap::Update(_float fTimeDelta)
|
||||
return;
|
||||
}
|
||||
_vector vRotateUp = XMLoadFloat3(&m_vRotateUp);
|
||||
m_fAccTime += fTimeDelta;
|
||||
m_fAccMoveTime += 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));
|
||||
m_pProjectile_Side->Get_Component<CTransform>()->Translation(vRotateUp * 0.6f * sinf(m_fAngularSpeed * m_fAccMoveTime));
|
||||
m_pProjectile->Get_Component<CTransform>()->Translation(vRotateUp * 0.6f * sinf(m_fAngularSpeed * m_fAccMoveTime));
|
||||
}
|
||||
|
||||
|
||||
@@ -136,24 +136,11 @@ void CNomalJap::Late_Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CNomalJap::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
if(FAILED(__super::Pre_Setting(pObject)))
|
||||
return E_FAIL;
|
||||
|
||||
/* 부모 할당 */
|
||||
m_pOwner = pObject;
|
||||
|
||||
/* 피직스 생성*/
|
||||
if (FAILED(Ready_Child())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* 초기 셋팅 초기화 */
|
||||
Reset_EditEffect();
|
||||
m_fAccTime = 0.f;
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
m_bTrailPulseEnded = false;
|
||||
|
||||
m_fAccMoveTime = 0.f;
|
||||
|
||||
/* 초기 객체 위치 초기화 */
|
||||
_vector vStartPos = m_pOwner->Get_WorldPostion();
|
||||
@@ -203,8 +190,6 @@ HRESULT CNomalJap::Pre_Setting(CGameObject* pObject)
|
||||
|
||||
XMStoreFloat3(&m_vRotateUp, XMVector3Normalize(XMVector3Rotate(vUp, vQuaternion)));
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -252,7 +237,11 @@ CGameObject* CNomalJap::Clone(void* pArg, CGameObject* pOwner)
|
||||
|
||||
void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
//CTransform* pOtherTransform = p
|
||||
if (m_isCollisionEnter == true)
|
||||
return;
|
||||
|
||||
m_isCollisionEnter = true;
|
||||
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
for (auto& pPair : m_PartObjects)
|
||||
|
||||
@@ -117,17 +117,9 @@ void CNomalJapSide::Late_Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CNomalJapSide::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
Reset_EditEffect();
|
||||
|
||||
m_fAccTime = 0.f;
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
@@ -148,9 +140,6 @@ HRESULT CNomalJapSide::Pre_Setting(CGameObject* pObject)
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -99,18 +99,9 @@ void CProtego::Late_Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CProtego::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
Reset_EditEffect();
|
||||
|
||||
m_fAccTime = 0.f;
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
|
||||
m_pSphere->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pBottom->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pCircle->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
@@ -126,8 +117,6 @@ HRESULT CProtego::Pre_Setting(CGameObject* pObject)
|
||||
|
||||
m_fSizeAccTime = 0.f;
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -94,19 +94,9 @@ void CRevelio::Late_Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CRevelio::Pre_Setting(CGameObject* pObject)
|
||||
{
|
||||
if (pObject == nullptr)
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
return E_FAIL;
|
||||
|
||||
m_pOwner = pObject;
|
||||
|
||||
|
||||
Reset_EditEffect();
|
||||
|
||||
m_fAccTime = 0.f;
|
||||
__super::m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
|
||||
CPlayer* pPlayer = static_cast<CPlayer*>(m_pOwner);
|
||||
|
||||
if (pPlayer == nullptr)
|
||||
@@ -128,8 +118,6 @@ HRESULT CRevelio::Pre_Setting(CGameObject* pObject)
|
||||
Get_PartObject<CEditEffect>("Revelio_Ring")->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
Get_PartObject<CEditEffect>("Revelio_Ring")->Set_Visible(true);
|
||||
|
||||
m_bVisible = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ void CTrailObject::Late_Update(_float fTimeDelta)
|
||||
return;
|
||||
|
||||
if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::EFFECT, this);
|
||||
m_pGameInstance->Add_RenderGroup(m_TrailInfo.eRenderOrder, this);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -365,7 +365,7 @@ HRESULT CTrailObject::Render()
|
||||
if (FAILED(Bind_ShaderResources()))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_POSTEX::TRAIL))))
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(m_TrailInfo.eShaderPass))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Bind_DepthStencil(m_pShaderCom, "g_DepthStencilTexture")))
|
||||
@@ -484,13 +484,29 @@ void CTrailObject::Free()
|
||||
void CTrailObject::Describe_Entity()
|
||||
{
|
||||
|
||||
const char* pRenderNames[] = { "PRIORITY" , "SHADOW", "NONBLEND", "DECAL", "BLUR" , "NONLIGHT" ,"EFFECT", "BLEND" ,"BLOOM" , "UI", "OCCLUSION" };
|
||||
const char* pEffectType[] = { "EFFECT" , "TRAIL" };
|
||||
const char* pShaderPass[] = { "DEFAULT" , "SCISSOR" , "UI" , "UVMOVE" , "TRAIL" , "TRAIL_BLEND" , "TRAILWB_FOR_BLEND" , "TRAIL_BLUR", "TRAIL_BLOOM" };
|
||||
const char* pBloomType[] = { "NONE" , "BASIC" , "MUILTY" };
|
||||
|
||||
_int iCurrentBloomType = static_cast<_int>(m_TrailInfo.eBloomType);
|
||||
|
||||
_int iCurrentItem = static_cast<_int>(m_TrailInfo.eRenderOrder);
|
||||
_int iCurrentPass = static_cast<_int>(m_TrailInfo.eShaderPass);
|
||||
|
||||
|
||||
if (GUI::TreeNode("TRAIL"))
|
||||
{
|
||||
m_pTrailCom->Describe_Entity();
|
||||
if (ImGui::Combo("Render Order", &iCurrentItem, pRenderNames, ENUM_CLASS(RENDER::END)))
|
||||
{
|
||||
m_TrailInfo.eRenderOrder = static_cast<RENDER>(iCurrentItem);
|
||||
}
|
||||
if (ImGui::Combo("Shader Pass", &iCurrentPass, pShaderPass, ENUM_CLASS(SHADER_PASS_POSTEX::END)))
|
||||
{
|
||||
m_TrailInfo.eShaderPass = static_cast<SHADER_PASS_POSTEX>(iCurrentPass);
|
||||
}
|
||||
|
||||
m_pTrailCom->Describe_Entity();
|
||||
m_pShaderCom->Describe_Entity();
|
||||
|
||||
if(GUI::InputInt("NumVertex", &m_TrailInfo.iNumVertex))
|
||||
@@ -573,12 +589,14 @@ void CTrailObject::Describe_Entity()
|
||||
{
|
||||
_string strName = m_pGameInstance->Asset_Description<CTexture>(ENUM_CLASS(LEVEL::EFFECT), "DIFFUSE_TEXTURE", (CComponent**)&m_pDiffuse_TextureCom, nullptr, this);
|
||||
|
||||
if (strName != "") {
|
||||
m_strTrailDiffuseName = strName;
|
||||
}
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
if (strName != "") {
|
||||
m_strTrailDiffuseName = strName;
|
||||
}
|
||||
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
@@ -40,6 +40,7 @@ class CEditEffect final : public CEffectObject
|
||||
_bool m_isGoStraight = {};
|
||||
_float m_fAccTime = {};
|
||||
_int m_iSign = { 1 };
|
||||
_bool _isLookAt = {};
|
||||
|
||||
_bool m_isWandPos = {};
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace Editor
|
||||
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_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLEND , TRAILWB_FOR_BLEND , 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, 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, SPELL_DRAG, END };
|
||||
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, END };
|
||||
|
||||
@@ -105,7 +105,10 @@ class CEffectObject abstract : public CPartObject
|
||||
_bool isDissolveMove = {};
|
||||
|
||||
|
||||
_float3 vPadding0 = {};
|
||||
|
||||
_float3 vDissolveValue = {};
|
||||
|
||||
|
||||
_float3 vPadding1 = {};
|
||||
|
||||
_float fPadding0 = {};
|
||||
|
||||
@@ -48,6 +48,7 @@ class CEffect_Container abstract : public CContainerObject
|
||||
_float m_fDuration = {};
|
||||
_float m_fDelay = {};
|
||||
_bool m_isDelayed = { false };
|
||||
_bool m_isCollisionEnter = { false };
|
||||
|
||||
map<_float, function<void()>> m_Events = {};
|
||||
|
||||
|
||||
@@ -35,7 +35,6 @@ class CLevioso final : public CEffect_Container
|
||||
class CPlayer* m_pPlayer = {};
|
||||
|
||||
class CEditEffect* m_pLeviosoPJ_0 = { nullptr };
|
||||
class CEditEffect* m_pLeviosoPJ_1 = { nullptr };
|
||||
class CTrailObject* m_pLeviosoTrail = { nullptr };
|
||||
class CEditEffect* m_pTrail_PT_0 = { nullptr };
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ class CNomalJap final : public CEffect_Container
|
||||
class CPartObject* m_pProjectile_Side = {};
|
||||
|
||||
_float3 m_vRotateUp = {};
|
||||
_float m_fAccTime = {};
|
||||
_float m_fAccMoveTime = {};
|
||||
_float m_fLerpAmount = {};
|
||||
_float m_fTurnValue = {};
|
||||
|
||||
|
||||
@@ -58,17 +58,33 @@ class CTrailObject final : public CPartObject
|
||||
_int iBlurWeight = {};
|
||||
|
||||
/* 블룸 */
|
||||
_bool isBloom = {};
|
||||
_bool isBloom = {};
|
||||
|
||||
_bool isBloomDissolve = {};
|
||||
_bool isBloomReverseDissolve = {};
|
||||
_bool isBloomDissolve = {};
|
||||
_bool isBloomReverseDissolve = {};
|
||||
|
||||
_float fBloomStrength = {};
|
||||
|
||||
BLOOM_TYPE eBloomType = {};
|
||||
_float2 vBloomTime = {};
|
||||
BLOOM_TYPE eBloomType = {};
|
||||
_float2 vBloomTime = {};
|
||||
|
||||
_int iNumVertex = {};
|
||||
_int iNumVertex = {};
|
||||
|
||||
|
||||
RENDER eRenderOrder = { RENDER::EFFECT };
|
||||
SHADER_PASS_POSTEX eShaderPass = { SHADER_PASS_POSTEX::TRAIL };
|
||||
|
||||
_float3 vPadding0 = {};
|
||||
_float3 vPadding1 = {};
|
||||
_float3 vPadding2 = {};
|
||||
|
||||
_float fPadding0 = {};
|
||||
_float fPadding1 = {};
|
||||
_float fPadding2 = {};
|
||||
|
||||
_bool isPadding0 = {};
|
||||
_bool isPadding1 = {};
|
||||
_bool isPadding2 = {};
|
||||
|
||||
}TRAIL_INFO;
|
||||
private:
|
||||
|
||||
@@ -320,13 +320,13 @@ float2 SelectLerpUV(float2 fAmount, float _fRatio, int iSelectOption)
|
||||
fRatio = fRatio * fRatio; // EaseInQuad 후반에 속도 증가
|
||||
break;
|
||||
case 2:
|
||||
fRatio = 1 - (1 - fRatio * fRatio); // EaseOutQuad 초반에 속도 증가
|
||||
fRatio = 1 - pow(1 - fRatio, 2); // EaseOutQuad 초반에 속도 증가
|
||||
break;
|
||||
case 3:
|
||||
fRatio = fRatio * fRatio * fRatio; // EaseInCubic 더 강하게 후반 속도 증가
|
||||
break;
|
||||
case 4:
|
||||
fRatio = 1 - (1 - fRatio * fRatio * fRatio); // EaseOutCubic 더 강하게 초반 속도 증가
|
||||
fRatio = 1 - pow(1 - fRatio, 3); // EaseOutCubic 더 강하게 초반 속도 증가
|
||||
break;
|
||||
case 5:
|
||||
fRatio = 0.5f * (1 - cos(PI * fRatio)); // EaseInOutSin 사인 곡선
|
||||
|
||||
@@ -24,8 +24,9 @@ struct ParticleValue
|
||||
float2 vDiffuseUVMoveTime;
|
||||
float2 vDistortionUVMoveTime;
|
||||
float2 vNoiseUVMoveTime;
|
||||
float2 vAniTime;
|
||||
float2 vDissolveUVMoveTime;
|
||||
float2 vAniTime;
|
||||
|
||||
|
||||
float2 vAniIndex;
|
||||
float fGravity;
|
||||
@@ -70,8 +71,8 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐
|
||||
bool isPadding2;
|
||||
|
||||
float fTimeDelta;
|
||||
float fPadding1; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다.
|
||||
float fPadding2;
|
||||
float fSizeLerpOption; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다.
|
||||
float fMoveLerpOption;
|
||||
float fPadding3;
|
||||
}
|
||||
|
||||
@@ -165,11 +166,11 @@ void CS_MAIN(
|
||||
|
||||
float3 vDir = normalize(particleValue.vPivot - particleValue.vOriginTranslation.xyz);
|
||||
|
||||
float fRatio = (1 - fTime * fTime);
|
||||
float fDrag = particleValue.fDrag;
|
||||
|
||||
float fDrag = particleValue.fDrag * fRatio;
|
||||
if (fSizeLerpOption != 0.f)
|
||||
fDrag = SelectLerpUV(float2(particleValue.fSizeDrag, 0.f), fTime, fMoveLerpOption).x;
|
||||
|
||||
|
||||
if (particleValue.fDrag < FLT_EPSILON5)
|
||||
fDrag = 1;
|
||||
|
||||
@@ -244,14 +245,14 @@ void CS_MAIN(
|
||||
|
||||
float fTime = (particle.vLifeTime.x / particle.vLifeTime.y);
|
||||
|
||||
float fRatio = 1 - (1 - fTime * fTime);
|
||||
|
||||
float fDrag = particleValue.fSizeDrag;
|
||||
|
||||
if (fSizeLerpOption != 0.f)
|
||||
fDrag = SelectLerpUV(float2(particleValue.fSizeDrag, 0.f), fTime, fSizeLerpOption).x;
|
||||
|
||||
if (particleValue.fSizeDrag < FLT_EPSILON5)
|
||||
fDrag = 1;
|
||||
|
||||
//fDrag *= fRatio;
|
||||
|
||||
|
||||
CurLength += particleValue.vDeltaSize * fTimeDelta * fDrag;
|
||||
|
||||
|
||||
@@ -300,6 +300,8 @@ HRESULT CCharacter_Controller::Initialize_Prototype()
|
||||
|
||||
HRESULT CCharacter_Controller::Initialize(void* pArg)
|
||||
{
|
||||
m_bGravity = false;
|
||||
|
||||
Character_Controller_DESC* pDesc = static_cast<Character_Controller_DESC*>(pArg);
|
||||
{ // Character_Controller_DESC
|
||||
m_eBodyType = pDesc->eBodyType;
|
||||
|
||||
@@ -547,7 +547,8 @@ void CInstance_Model::Drop(_float fTimeDelta)
|
||||
pDesc->isSizeLerp = m_InstanceDesc.isSizeLerp;
|
||||
pDesc->isNoWorld = m_InstanceDesc.isNoWorld;
|
||||
pDesc->WorldMatrix = *m_pOwner->Get_Component<CTransform>()->Get_WorldMatrixPtr();
|
||||
|
||||
pDesc->fSizeLerpOption = m_InstanceDesc.fSizeLerpOption;
|
||||
pDesc->fMoveLerpOption = m_InstanceDesc.fMoveLerpOption;
|
||||
|
||||
m_pContext->Unmap(m_pConstantBuffer, 0);
|
||||
}
|
||||
@@ -793,6 +794,8 @@ void CInstance_Model::Describe_Entity()
|
||||
{
|
||||
if (ImGui::TreeNode("Model Option"))
|
||||
{
|
||||
const char* pLerp[] = { "Linear" , "EaseInQuad", "EaseOutQuad", "EaseInCubic" , "EaseOutCubic" , "EaseInOutSin" , "EaseInBack" , "Expo" , "Circle" };
|
||||
|
||||
ImGui::Separator(); ImGui::Spacing();
|
||||
ImGui::PushItemWidth(120);
|
||||
|
||||
@@ -923,6 +926,7 @@ void CInstance_Model::Describe_Entity()
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat2("AniIndex", reinterpret_cast<_float*>(&m_InstanceDesc.vAniIndex)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
@@ -964,6 +968,14 @@ void CInstance_Model::Describe_Entity()
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
_int iMoveLerpOption = (_int)m_InstanceDesc.fMoveLerpOption;
|
||||
|
||||
if (ImGui::Combo("Move Lerp Option", &iMoveLerpOption, pLerp, 9))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
|
||||
m_InstanceDesc.fMoveLerpOption = (_float)iMoveLerpOption;
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("PivotMin", reinterpret_cast<_float*>(&m_InstanceDesc.vPivotMin)))
|
||||
{
|
||||
@@ -980,6 +992,16 @@ void CInstance_Model::Describe_Entity()
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
|
||||
_int iSizeLerpOption = (_int)m_InstanceDesc.fSizeLerpOption;
|
||||
|
||||
if (ImGui::Combo("Size Lerp Option", &iSizeLerpOption, pLerp, 9))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
|
||||
m_InstanceDesc.fSizeLerpOption = (_float)iSizeLerpOption;
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("LerpSizeAmount", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaSize)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
|
||||
@@ -172,11 +172,11 @@ void CTrail::Trail_Update(_float fDeltaTime, _fmatrix WorldMatrix)
|
||||
if (m_isFixedTrail == true)
|
||||
{
|
||||
//만약 고정된 트레일을 켰다면 가장 마지막 부분을 항상 내 위치로 고정함
|
||||
_vector vFixedLow = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vLow), m_FixedMat);
|
||||
_vector vFixedHigh = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vHigh), m_FixedMat);
|
||||
//_vector vFixedLow = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vLow), m_FixedMat);
|
||||
//_vector vFixedHigh = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vHigh), m_FixedMat);
|
||||
|
||||
XMStoreFloat3(&m_pVertices[0].vPosition, vFixedLow);
|
||||
XMStoreFloat3(&m_pVertices[1].vPosition, vFixedHigh);
|
||||
//XMStoreFloat3(&m_pVertices[0].vPosition, vFixedLow);
|
||||
//XMStoreFloat3(&m_pVertices[1].vPosition, vFixedHigh);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
@@ -62,8 +62,8 @@ class ENGINE_DLL CInstance_Model final : public CComponent
|
||||
_float3 vPadding0 = {};
|
||||
_float3 vPadding1 = {};
|
||||
|
||||
_float fPadding0 = {};
|
||||
_float fPadding1 = {};
|
||||
_float fSizeLerpOption = {};
|
||||
_float fMoveLerpOption = {};
|
||||
|
||||
_bool isPadding0 = {};
|
||||
_bool isPadding1 = {};
|
||||
@@ -143,8 +143,8 @@ class ENGINE_DLL CInstance_Model final : public CComponent
|
||||
_int isPadding2 = {};
|
||||
|
||||
_float fTimeDelta = {};
|
||||
_float fPadding2 = {};
|
||||
_float fPadding3 = {};
|
||||
_float fSizeLerpOption = {};
|
||||
_float fMoveLerpOption = {};
|
||||
_float fPadding4 = {};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user