diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index 00dfe93ff..8eb1176c9 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -161,6 +161,7 @@ call Update_Resources.bat
+
@@ -358,6 +359,7 @@ call Update_Resources.bat
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index 749019eeb..8a65abfb3 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -611,6 +611,9 @@
02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info_Header
+
+ 02.GameObjects\Effect\Effects\Stupefy
+
@@ -1281,6 +1284,9 @@
{6bbfb8f0-c71a-4769-b1e6-efd5d863ba7f}
+
+ {7672784a-86a8-4485-a4de-a979bd0c8f52}
+
@@ -1836,6 +1842,9 @@
02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Slot
+
+ 02.GameObjects\Effect\Effects\Stupefy
+
diff --git a/Jusin154_Team3D/Client/Private/EffectObject.cpp b/Jusin154_Team3D/Client/Private/EffectObject.cpp
index 93b9f9e1f..d15f605f2 100644
--- a/Jusin154_Team3D/Client/Private/EffectObject.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectObject.cpp
@@ -209,6 +209,9 @@ HRESULT CEffectObject::Render_Bloom()
return E_FAIL;
}
+ if (FAILED(m_pInstance_ModelCom->Bind_CS_Output(5, 1)))
+ return E_FAIL;
+
if (FAILED(m_pInstance_ModelCom->Render(i)))
{
return E_FAIL;
@@ -809,7 +812,7 @@ HRESULT CEffectObject::Bind_ShaderResources()
}
-
+
if (FAILED(m_pShaderCom->Bind_RawValue("g_vUVCutting", &m_EffectInfo.vUVCutting, sizeof(_float2)))) {
return E_FAIL;
}
@@ -936,6 +939,13 @@ HRESULT CEffectObject::Bind_ShaderResources()
}
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vMaskOffset", &m_EffectInfo.vMaskOffset, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+
+
+
if (m_pDiffuse_TextureCom != nullptr)
{
@@ -979,9 +989,6 @@ HRESULT CEffectObject::Bind_ShaderResources()
}
}
-
-
-
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp
index 92d7e98ed..b23f9062c 100644
--- a/Jusin154_Team3D/Client/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp
@@ -34,6 +34,7 @@
#include "Goblin_Teleport.h"
#include "Accio.h"
#include "Screen_Wind.h"
+#include "Stupefy.h"
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject(pDevice, pContext)
@@ -370,6 +371,18 @@ HRESULT CEffectPool::Ready_Effect()
return pEffect; }
))) return E_FAIL;
+
+ if (FAILED(Create_Effect(SKILL_TYPE::STUPEFY, 3, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CStupefy* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
+
+
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index 1cf832623..4f027a30d 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -566,14 +566,14 @@ HRESULT CLevel_GamePlay::Ready_Layer_SkyBox(const _wstring& strLayerTag)
HRESULT CLevel_GamePlay::Ready_Layer_Monster()
{
- for (_uint i = 0; i < 1; ++i)
+ for (_uint i = 0; i < 0; ++i)
{
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))) {
return E_FAIL;
}
}
- for (_uint i = 0; i <1; ++i)
+ for (_uint i = 0; i <3; ++i)
{
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER, &i))) {
return E_FAIL;
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index d94f13daf..4de317001 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -164,6 +164,7 @@
#include "Chair_Splesh.h"
#include "Barral_Splesh.h"
#include "Screen_Wind.h"
+#include "Stupefy.h"
#pragma endregion
@@ -335,7 +336,7 @@ HRESULT CLoader::Loading_For_GamePlay()
isLoad_Background = false;
#endif //
#ifdef 진우
- isLoad_Background = true;
+ isLoad_Background = false;
#endif //
#ifdef 기무리
isLoad_Background = false;
@@ -1724,6 +1725,13 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CStupefy::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+
+
+
if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CGoblin_Teleport::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp
index 23d957a9b..4a47c2f60 100644
--- a/Jusin154_Team3D/Client/Private/Player.cpp
+++ b/Jusin154_Team3D/Client/Private/Player.cpp
@@ -324,6 +324,12 @@ HRESULT CPlayer::Render_Shadow(SHADOW eType)
}
void CPlayer::OnCollision(CGameObject* pOther, void* pDesc)
{
+
+ if (m_pFSM->IsEnable(FSMSTATE::SHIELD))
+ {
+ m_bShield = true;
+ }
+
#ifdef _DEBUG
if (m_isDebugMode == true)
return;
@@ -336,10 +342,7 @@ void CPlayer::OnCollision(CGameObject* pOther, void* pDesc)
else {
m_fHitDegree = -1.f;
}
- if (m_pFSM->IsEnable(FSMSTATE::SHIELD))
- {
- m_bShield = true;
- }
+
if(!m_pFSM->IsEnable(FSMSTATE::DODGE) && !m_bShield)
m_pFSM->Change_State(FSMSTATE::HIT);
diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp
index efb94cbb3..d9021c5c6 100644
--- a/Jusin154_Team3D/Client/Private/Player_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Player_States.cpp
@@ -1191,7 +1191,7 @@ void CPlayer::Behavior_SpellEnter()
{
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
Add_Event(pairAnimInfo.first,
- [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA, this); },
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY, this); }, /* 임시로 바꿔놓음 */
fRatio);
Add_Event(pairAnimInfo.first,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject()); },
@@ -1469,13 +1469,17 @@ void CPlayer::Behavior_ShieldEnter()
{
pair<_uint, _bool> pairAnimInfo;
- m_pFSM->Enable_State(FSMSTATE::SHIELD);
- pairAnimInfo = m_Animation[STATEANIM::SKILL2];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,true,1.f);
+ if (!m_bShield)
+ {
+ m_pFSM->Enable_State(FSMSTATE::SHIELD);
+ pairAnimInfo = m_Animation[STATEANIM::SKILL2];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f);
- Add_Event(pairAnimInfo.first,
- [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::PROTEGO, this); },
- 0.1f);
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::PROTEGO, this); },
+ 0.1f);
+
+ }
}
HRESULT CPlayer::Behavior_ShieldExitCheck()
@@ -1486,6 +1490,7 @@ HRESULT CPlayer::Behavior_ShieldExitCheck()
if (m_bShield)
{
+
if (m_pGameInstance->Key_Pressing(DIK_Q))
{
m_pFSM->Enable_State(FSMSTATE::PARRY);
@@ -1534,10 +1539,11 @@ HRESULT CPlayer::Behavior_ShieldExitCheck()
m_pGameInstance->SlowMotion(0.8f, 0.3f);
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
- /* Add_Event(pairAnimInfo.first,
- [this]() {_uint iIndex = 0; m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, Get_PartObject(), &iIndex); },
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY, this); },
0.2f);
-*/ m_bShield = false;
+
+ m_bShield = false;
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Protego.cpp b/Jusin154_Team3D/Client/Private/Protego.cpp
index e2c3a7dbc..8ef8104c5 100644
--- a/Jusin154_Team3D/Client/Private/Protego.cpp
+++ b/Jusin154_Team3D/Client/Private/Protego.cpp
@@ -38,9 +38,10 @@ HRESULT CProtego::Initialize(void* pArg)
return E_FAIL;
m_pSphere = Get_PartObject("ProtegoSphere");
+ m_pSphereLay = Get_PartObject("ProtegoLay");
SAFE_ADDREF(m_pSphere);
-
+ SAFE_ADDREF(m_pSphereLay);
m_wstrEffectName = L"Protego";
@@ -65,11 +66,14 @@ void CProtego::Update(_float fTimeDelta)
return;
m_pSphere->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
- m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+ m_pSphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+
__super::Update(fTimeDelta);
Update_Event(fTimeDelta);
+
+
/* 시작 사이즈 러프 */
if (m_fSizeAccTime > XM_PIDIV2)
return;
@@ -80,6 +84,7 @@ void CProtego::Update(_float fTimeDelta)
_float3 vSize = _float3(fSize, fSize, fSize);
m_pSphere->Get_Component()->Set_Scale(vSize);
+ m_pSphereLay->Get_Component()->Set_Scale(vSize);
}
void CProtego::Late_Update(_float fTimeDelta)
@@ -98,13 +103,16 @@ HRESULT CProtego::Pre_Setting(CGameObject* pObject, void* pArg)
return E_FAIL;
m_pSphere->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+ m_pSphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
m_pSphere->Set_Visible(true);
+ m_pSphereLay->Set_Visible(true);
_float3 vSize = _float3(1.f, 1.f, 1.f);
m_pSphere->Get_Component()->Set_Scale(vSize);
+ m_pSphereLay->Get_Component()->Set_Scale(vSize);
m_fSizeAccTime = 0.f;
@@ -180,6 +188,7 @@ void CProtego::Free()
// SAFE_RELEASE(m_pPhysHitBox);
SAFE_RELEASE(m_pRigidBody);
SAFE_RELEASE(m_pSphere);
+ SAFE_RELEASE(m_pSphereLay);
}
#ifdef _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Stupefy.cpp b/Jusin154_Team3D/Client/Private/Stupefy.cpp
new file mode 100644
index 000000000..1bef7d85b
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Stupefy.cpp
@@ -0,0 +1,295 @@
+#include "pch.h"
+#include "Stupefy.h"
+
+#include "GameInstance.h"
+#include "EffectParts.h"
+#include "Wand.h"
+#include "Player.h"
+#include "InfoInstance.h"
+
+CStupefy::CStupefy(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CStupefy::CStupefy(const CStupefy& rhs)
+ : CEffect_Container(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+}
+
+HRESULT CStupefy::Initialize_Prototype()
+{
+
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Stupefy")))
+ return E_FAIL;
+
+ return S_OK;
+
+}
+
+HRESULT CStupefy::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Create_Effect()))
+ return E_FAIL;
+
+ m_iSkillType = ENUM_CLASS(SKILL_TYPE::STUPEFY);
+
+ m_wstrEffectName = L"Stupefy";
+
+ m_pProjectile0 = Get_PartObject("Stupefy_PJ0");
+ SAFE_ADDREF(m_pProjectile0);
+
+ m_pProjectile1 = Get_PartObject("Stupefy_PJ1");
+ SAFE_ADDREF(m_pProjectile1);
+
+ m_pStupefy_PJ_PT = Get_PartObject("Stupefy_PJ_PT");
+ SAFE_ADDREF(m_pStupefy_PJ_PT);
+
+ m_fDuration = 4.5f;
+
+ return S_OK;
+}
+
+void CStupefy::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+ XMStoreFloat4(&m_vStartPos, m_pStupefy_PJ_PT->Get_WorldPostion());
+}
+
+void CStupefy::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+ m_pStupefy_PJ_PT->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed);
+
+
+}
+
+void CStupefy::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+ XMStoreFloat4(&m_vEndPos, m_pStupefy_PJ_PT->Get_WorldPostion());
+
+ _vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos);
+
+
+ if (false == m_bHit) {
+ _vector vStartPos = XMLoadFloat4(&m_vStartPos);
+ _vector vEndPos = XMLoadFloat4(&m_vEndPos);
+ ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f);
+
+ OnCollision(this, &CollisionInfo);
+ }
+
+}
+
+HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject, nullptr)))
+ return E_FAIL;
+
+ CWand* pWand = static_cast(m_pOwner)->Get_PartObject();
+
+ if (pWand == nullptr)
+ return E_FAIL;
+
+
+
+
+ CEffectParts* pStupefy_PJ0 = Get_PartObject("Stupefy_PJ0");
+ CEffectParts* pStupefy_PJ1 = Get_PartObject("Stupefy_PJ1");
+ CEffectParts* pWand_Distortion = Get_PartObject("Wand_Distortion");
+
+ CEffectParts* pStupefy_Light_Long = Get_PartObject("Stupefy_Light_Long");
+ CEffectParts* pBodyFlare = Get_PartObject("BodyFlare");
+
+ CEffectParts* pStupefy_Smoke = Get_PartObject("Stupefy_Smoke");
+
+ pStupefy_PJ0->Set_Visible(true);
+ pStupefy_PJ1->Set_Visible(true);
+ pWand_Distortion->Set_Visible(true);
+ pStupefy_Light_Long->Set_Visible(true);
+ pBodyFlare->Set_Visible(true);
+ pStupefy_Smoke->Set_Visible(true);
+ m_pStupefy_PJ_PT->Set_Visible(true);
+
+ _vector vDirection = m_pOwner->Get_Component()->Get_State(STATE::LOOK);
+
+ /*완드 포지션*/
+
+ _vector vWandPos = pWand->Get_WorldPostion();
+
+ pStupefy_PJ0->Get_Component()->Set_State(STATE::POSITION, vWandPos);
+ pStupefy_PJ1->Get_Component()->Set_State(STATE::POSITION, vWandPos);
+
+ m_pStupefy_PJ_PT->Get_Component()->Set_State(STATE::POSITION, vWandPos);
+ //
+ /*몸통 포지션*/
+
+ _vector vPlayerPos = m_pOwner->Get_Component()->Get_Position() + vDirection * -0.1f;
+
+ pStupefy_Light_Long->Get_Component()->Set_State(STATE::POSITION, vPlayerPos);
+ pBodyFlare->Get_Component()->Set_State(STATE::POSITION, vPlayerPos);
+ pWand_Distortion->Get_Component()->Set_State(STATE::POSITION, vPlayerPos);
+ /*발 포지션*/
+
+ _vector vPlayerFootPos = m_pOwner->Get_Component()->Get_FootPosition();
+
+ pStupefy_Smoke->Get_Component()->Set_State(STATE::POSITION, vPlayerFootPos + XMVectorSet(0.f ,1.f ,0.f ,0.f));
+
+
+
+
+ XMStoreFloat3(&m_vCameraLook, vDirection);
+
+ _vector vStartPos = vWandPos;
+ XMStoreFloat4(&m_vStartPos, vStartPos);
+
+ { /* 대상 위치 지정 */
+
+ m_pInfoInstance->Get_LockOnInfo(m_Info);
+ if (nullptr != m_Info.pUnit) {
+
+ XMStoreFloat4(&m_vTargetPos, m_Info.pUnit->Get_LockOnPos());
+
+ XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos)));
+ }
+ else {
+ // 타겟이 없다면 현재위치 -> 카메라 룩벡터 * duration간 예상 이동거리 를 대상으로 지정
+ XMStoreFloat4(&m_vTargetPos, vStartPos + vDirection * m_fLinearSpeed * 0.5f);
+ }
+ }
+
+
+ /* PJ 월드 구성하기 */
+
+ _float fLength = XMVectorGetX(XMVector3Length(XMLoadFloat4(&m_vTargetPos) - vPlayerPos));
+
+ CTransform* pPJ0_Transform = pStupefy_PJ0->Get_Component();
+ CTransform* pPJ1_Transform = pStupefy_PJ1->Get_Component();
+
+ _vector vUp = XMVector3Normalize(vDirection) * fLength;
+ _vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 0.f, 1.f, 0.f) , vUp));
+ _vector vLook = XMVector3Normalize(XMVector3Cross(vUp, vRight));
+ _vector vPos = vPlayerPos;
+
+ _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos };
+
+ pPJ0_Transform->Set_WorldMatrix(PJ_WorldMat);
+ pPJ1_Transform->Set_WorldMatrix(PJ_WorldMat);
+
+ return S_OK;
+}
+
+HRESULT CStupefy::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CStupefy::Ready_Child()
+{
+ return S_OK;
+}
+
+CStupefy* CStupefy::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CStupefy* pInstance = new CStupefy(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CStupefy");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CStupefy::Clone(void* pArg, CGameObject* pOwner)
+{
+ CStupefy* pInstance = new CStupefy(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CStupefy");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CStupefy::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ if (m_bHit == false)
+ return;
+
+ ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc);
+
+ _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
+
+ CEffectParts* pStupefy_Hit_PT = Get_PartObject("Stupefy_Hit_PT");
+ CEffectParts* pStupefy_Circle0 = Get_PartObject("Stupefy_Circle0");
+ CEffectParts* pHitFlare = Get_PartObject("HitFlare");
+
+
+ pStupefy_Hit_PT->Set_Visible(true);
+ pStupefy_Hit_PT->Get_Component()->Set_State(STATE::POSITION, vPos);
+ pStupefy_Circle0->Set_Visible(true);
+ pStupefy_Circle0->Get_Component()->Set_State(STATE::POSITION, vPos);
+ pHitFlare->Set_Visible(true);
+ pHitFlare->Get_Component()->Set_State(STATE::POSITION, vPos);
+
+
+
+ m_pProjectile0->Set_Visible(false);
+ m_pProjectile1->Set_Visible(false);
+
+ /*맞는순간 위로 올리기*/
+ m_pStupefy_PJ_PT->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, 500.f, 0.f, 1.f));
+
+
+}
+
+void CStupefy::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pProjectile0);
+ SAFE_RELEASE(m_pProjectile1);
+ SAFE_RELEASE(m_pStupefy_PJ_PT);
+}
+
+#ifdef _DEBUG
+void CStupefy::Describe_Entity()
+{
+
+}
+#endif
+
+HRESULT CStupefy::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Client/Public/Client_Struct.h b/Jusin154_Team3D/Client/Public/Client_Struct.h
index 45f49ce6a..b3a9bda8d 100644
--- a/Jusin154_Team3D/Client/Public/Client_Struct.h
+++ b/Jusin154_Team3D/Client/Public/Client_Struct.h
@@ -202,7 +202,8 @@ namespace Client
_float4 vNoiseColor = {};
_float4 vRimLightColor = {};
- _float4 vPadding4 = {};
+ _float2 vMaskOffset = {};
+ _float2 vPadding4 = {};
_float4 vPadding5 = {};
_bool isRimLight = {};
diff --git a/Jusin154_Team3D/Client/Public/Protego.h b/Jusin154_Team3D/Client/Public/Protego.h
index 00f331c97..cc5c8d79d 100644
--- a/Jusin154_Team3D/Client/Public/Protego.h
+++ b/Jusin154_Team3D/Client/Public/Protego.h
@@ -31,6 +31,7 @@ class CProtego final : public CEffect_Container
_wstring m_wstrEffectName = {};
class CEffectParts* m_pSphere = { nullptr };
+ class CEffectParts* m_pSphereLay = { nullptr };
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
_float m_fSizeAccTime = {};
_float m_fAmountSize = {};
diff --git a/Jusin154_Team3D/Client/Public/Stupefy.h b/Jusin154_Team3D/Client/Public/Stupefy.h
new file mode 100644
index 000000000..7d4653b9d
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Stupefy.h
@@ -0,0 +1,55 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CStupefy final : public CEffect_Container
+{
+private:
+ CStupefy(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CStupefy(const CStupefy& rhs);
+ virtual ~CStupefy() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+public:
+ virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Ready_Child();
+ HRESULT Bind_ShaderResources() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+
+private:
+ class CInfoInstance* m_pInfoInstance = { nullptr };
+private:
+ _wstring m_wstrEffectName = {};
+ class CEffectParts* m_pProjectile0 = {};
+ class CEffectParts* m_pProjectile1 = {};
+ class CEffectParts* m_pStupefy_PJ_PT = {};
+
+ _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치
+ _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치
+ _float m_fLinearSpeed = 0.65f;
+ _float3 m_vCameraLook = {};
+public:
+ static CStupefy* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Wand_Lightning.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Wand_Lightning.bin
new file mode 100644
index 000000000..91c309536
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Wand_Lightning.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4b84e3cb83ac9a1be77660fff27de1149c747eea08526f39307557f7dd60e283
+size 1037
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Lightning.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Lightning.bin
new file mode 100644
index 000000000..4188734d9
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Lightning.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9cc9088045824338edcae7e55bb97fb7d6fc6d0be60f0c69d788c5de9e42b3c1
+size 1080
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DistortTest.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DistortTest.bin
deleted file mode 100644
index 25844f2cf..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DistortTest.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:20c722a5da44cfcca3ddfa687037f9c86235d603a4506e36321198dbceb1e656
-size 1045
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning_Tornado_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning_Tornado_PT.bin
new file mode 100644
index 000000000..c321e08bd
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning_Tornado_PT.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7e2f249dcd8f88d8d1837bacb6508290d35f4b1a409acae5823ca25f5cc09a5c
+size 1041
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/.bin
deleted file mode 100644
index 931ab30ab..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:416b2eb5a178305ece930636355de9fe2acf316e1c8dcb3232377c4b36f09b7d
-size 412
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Protego.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Protego.bin
index b8824b775..19e1145e6 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Protego.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Protego.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:054470a5dfae598902a92d4903d05402df2e1387ab2026883b0aa6b012f1acc2
-size 261
+oid sha256:a06ccfeb2395f901a63613b1be95f4bc383be13cfc3ba41132766953ffc10eaa
+size 449
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Stupefy.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Stupefy.bin
new file mode 100644
index 000000000..58a1dac3c
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Stupefy.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dd7aa69103b5f95090b66b0d3327b62f6a57155b24c8a6ab3fd38a613955933c
+size 631
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit.bin
new file mode 100644
index 000000000..33a13380d
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4980c0b45844cbf0a6d60b50e51f69e7ca23ad192e311de32297f19e72fe20fa
+size 1109
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHitPT0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHitPT0.bin
deleted file mode 100644
index db0d9cb1f..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHitPT0.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:b4c30dde390dbaf394054a565d10cb6ce15d503ff5af19ddf2804f6ae0facdd0
-size 1078
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit_Lay.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit_Lay.bin
index deb461ee3..12cf1037c 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit_Lay.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit_Lay.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:3dcf0889c738365e99b0ec40c7b9fd70122e5aaab650430bd9b307621d522045
-size 1068
+oid sha256:82f0ef9ba2081c9c221e0e8317409d34e92c89929414433c184fd4af443631fe
+size 1131
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoLay.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoLay.bin
new file mode 100644
index 000000000..13f104241
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoLay.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8500047a369ddefa565de249408d90d56475da9cffc3eed8e06b54114aefc595
+size 1124
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoSphere.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoSphere.bin
index dc78f37ff..4f2724657 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoSphere.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoSphere.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:a171990beab0433f6bb350d9a9b5d029629d018ba053463984a12950b4d4bbc7
-size 1087
+oid sha256:5dc4d29353c252b64a292c3d8931ad16f4ecfe3da8c4c6c8429cecd89ca898b1
+size 1040
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/Protego_HitPT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/Protego_HitPT.bin
new file mode 100644
index 000000000..a9f93b880
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/Protego_HitPT.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9461d42b3eb86c86227259e4838bbbd47ab4aa85a030c54f17d5c07b4d5af078
+size 1029
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/Protego_HitPT_Line.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/Protego_HitPT_Line.bin
new file mode 100644
index 000000000..d67914eb2
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/Protego_HitPT_Line.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4509b2ce1daee7d9b36733140933f669e9b9521ce348ea8efae338a288f4ada6
+size 1066
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/BodyFlare.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/BodyFlare.bin
new file mode 100644
index 000000000..03658ce95
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/BodyFlare.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a754fac5517a23105872c53be7aa1a991efb4d055af2712f27006016e4e2267b
+size 1115
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/HitFlare.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/HitFlare.bin
new file mode 100644
index 000000000..c4872ff13
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/HitFlare.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5673b898678ac4e6865502ff3a801ca98da1e09fe2ef4f9854cfea24550b6cec
+size 1115
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Circle0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Circle0.bin
new file mode 100644
index 000000000..841cced96
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Circle0.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bc314fe3730e49a2064307ddd47b951e20db41ab4080b8fe6e3b82db33fd328d
+size 1127
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Hit_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Hit_PT.bin
new file mode 100644
index 000000000..bfd408570
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Hit_PT.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2f48908b38d319c106ad7086e41e60f89f03bc594b5ac30c8e834ff5c5284ffb
+size 1055
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Light_Long.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Light_Long.bin
new file mode 100644
index 000000000..10a1b58d1
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Light_Long.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fe68344f276886a36d79518655ae2f589b88e86a8acdf7b0c06629a15281a2f9
+size 1049
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ0.bin
new file mode 100644
index 000000000..fc11168ef
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ0.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9d891461f5f69952ff02d9b4f02ea908927f228d3f2bb78e93b6b308b862cd31
+size 1097
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ1.bin
new file mode 100644
index 000000000..ea1877ac4
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ1.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ea96378b9c02af05dec1585701e77f90ffb656e9859403d379950edbf00ab24f
+size 1097
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ_PT.bin
new file mode 100644
index 000000000..fceb888b9
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ_PT.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3735aed80e26b2a148a874943577d84245ffc898f18160054b48e3fb21edb317
+size 1066
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Smoke.bin
new file mode 100644
index 000000000..8460bbd36
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Smoke.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b7f21c9760b2f8c453a1cb6c6d8fd437da861d7c0a016fdb457d4be8dce4b96f
+size 1076
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Wand_Distortion.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Wand_Distortion.bin
new file mode 100644
index 000000000..aa9613ace
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Wand_Distortion.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6a1e8b8029681b11887de84d043c2114d0e05585bf39004c36fd2a642b2ea9cc
+size 1132
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Testdd.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Testdd.bin
new file mode 100644
index 000000000..e561137b4
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Testdd.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a6970a20d8f9998e438b1399d1ae6bcbffea3393849e4612c3637f4c35b87fe7
+size 1097
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
index 286d06e43..796b75987 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
@@ -95,6 +95,7 @@ float2 g_vMaskDistortionUVGainAmount;
float2 g_vUVMaskCutting;
int g_iMaskMoveLerpOption;
+float2 g_vMaskOffset;
/* 디졸브 */
@@ -387,6 +388,7 @@ float4 DrawEffect(PS_IN In)
vMaskTexcoord = UV_Cutting(In.vTexcoord, g_vUVMaskCutting, int(fAnimIndex));
+ vMaskTexcoord += g_vMaskOffset;
// 마스크 디스토션
if (g_isDistortion == true)
{
@@ -859,6 +861,8 @@ PS_BLOOM_OUT PS_BLOOM(PS_IN In)
vMtrlDiffuse.rgb += EmissiveDraw(In, vMtrlDiffuse).rgb;
+ vMtrlDiffuse += RimLight(In);
+
float fBloomStrength = g_fBloomStrength;
if (g_isBloomDissolve == true)
diff --git a/Jusin154_Team3D/Editor/Private/EditEffect.cpp b/Jusin154_Team3D/Editor/Private/EditEffect.cpp
index 32a1b32ca..bfa3dfb6b 100644
--- a/Jusin154_Team3D/Editor/Private/EditEffect.cpp
+++ b/Jusin154_Team3D/Editor/Private/EditEffect.cpp
@@ -756,6 +756,7 @@ void CEditEffect::Describe_Entity()
GUI::Checkbox("MaskClampSample", &m_EffectInfo.isMaskClampSample);
ImGui::PushItemWidth(80);
+ GUI::DragFloat2("MaskOffset", (_float*)&m_EffectInfo.vMaskOffset, 0.01f);
GUI::DragFloat2("MaskingUVGainAmount", (_float*)&m_EffectInfo.vMaskingUVGainAmount, 0.01f);
GUI::Spacing();
GUI::DragFloat("SoftMask", &m_EffectInfo.fSoftMask, 0.01f, 0.f);
@@ -787,6 +788,7 @@ void CEditEffect::Describe_Entity()
GUI::TreePop();
}
+
GUI::Separator(); GUI::Spacing();
GUI::TreePop();
diff --git a/Jusin154_Team3D/Editor/Private/EffectObject.cpp b/Jusin154_Team3D/Editor/Private/EffectObject.cpp
index d1e06135a..1e1350096 100644
--- a/Jusin154_Team3D/Editor/Private/EffectObject.cpp
+++ b/Jusin154_Team3D/Editor/Private/EffectObject.cpp
@@ -166,6 +166,9 @@ HRESULT CEffectObject::Render_Bloom()
return E_FAIL;
}
+ if (FAILED(m_pInstance_ModelCom->Bind_CS_Output(5, 1)))
+ return E_FAIL;
+
if (FAILED(m_pInstance_ModelCom->Render(i)))
{
return E_FAIL;
@@ -1017,6 +1020,12 @@ HRESULT CEffectObject::Bind_ShaderResources()
return E_FAIL;
}
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vMaskOffset", &m_EffectInfo.vMaskOffset, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+
diff --git a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp
index 0d5b5f039..be42ec95d 100644
--- a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp
+++ b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp
@@ -26,7 +26,7 @@ CEffect_Editor::CEffect_Editor(const CEffect_Editor& rhs)
HRESULT CEffect_Editor::Initialize_Prototype()
{
- ReadMaterials("../Bin/Resources/VFX/Particles/Magic/Levioso");
+ ReadMaterials("../Bin/Resources/VFX/Particles/Magic/Stupify");
for (auto iter : m_MatFiles)
diff --git a/Jusin154_Team3D/Editor/Private/Protego.cpp b/Jusin154_Team3D/Editor/Private/Protego.cpp
index 6932c513f..b74a5b0bb 100644
--- a/Jusin154_Team3D/Editor/Private/Protego.cpp
+++ b/Jusin154_Team3D/Editor/Private/Protego.cpp
@@ -34,9 +34,10 @@ HRESULT CProtego::Initialize(void* pArg)
return E_FAIL;
m_pSphere = Get_PartObject("ProtegoSphere");
+ m_pSphereLay = Get_PartObject("ProtegoLay");
SAFE_ADDREF(m_pSphere);
-
+ SAFE_ADDREF(m_pSphereLay);
m_wstrEffectName = L"Protego";
@@ -61,6 +62,7 @@ void CProtego::Update(_float fTimeDelta)
return;
m_pSphere->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+ m_pSphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
__super::Update(fTimeDelta);
@@ -78,6 +80,7 @@ void CProtego::Update(_float fTimeDelta)
_float3 vSize = _float3(fSize, fSize, fSize);
m_pSphere->Get_Component()->Set_Scale(vSize);
+ m_pSphereLay->Get_Component()->Set_Scale(vSize);
}
void CProtego::Late_Update(_float fTimeDelta)
@@ -96,13 +99,16 @@ HRESULT CProtego::Pre_Setting(CGameObject* pObject, void* pArg)
return E_FAIL;
m_pSphere->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+ m_pSphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
m_pSphere->Set_Visible(true);
+ m_pSphereLay->Set_Visible(true);
_float3 vSize = _float3(1.f, 1.f, 1.f);
m_pSphere->Get_Component()->Set_Scale(vSize);
+ m_pSphereLay->Get_Component()->Set_Scale(vSize);
m_fSizeAccTime = 0.f;
@@ -161,12 +167,8 @@ void CProtego::Free()
{
__super::Free();
- //if(m_pPhysHitBox != nullptr)
- // if (m_pPhysHitBox->Get_Depth() == false)
- // SAFE_RELEASE(m_pPhysHitBox);
-
SAFE_RELEASE(m_pSphere);
-
+ SAFE_RELEASE(m_pSphereLay);
}
#ifdef _DEBUG
diff --git a/Jusin154_Team3D/Editor/Public/EffectObject.h b/Jusin154_Team3D/Editor/Public/EffectObject.h
index 70a36d075..ab885d45e 100644
--- a/Jusin154_Team3D/Editor/Public/EffectObject.h
+++ b/Jusin154_Team3D/Editor/Public/EffectObject.h
@@ -127,7 +127,8 @@ class CEffectObject abstract : public CPartObject
_float4 vNoiseColor = {};
_float4 vRimLightColor = {};
- _float4 vPadding4 = {};
+ _float2 vMaskOffset = {};
+ _float2 vPadding4 = {};
_float4 vPadding5 = {};
_bool isRimLight = {};
diff --git a/Jusin154_Team3D/Editor/Public/Protego.h b/Jusin154_Team3D/Editor/Public/Protego.h
index 8c2a3f9a2..6b5327fdc 100644
--- a/Jusin154_Team3D/Editor/Public/Protego.h
+++ b/Jusin154_Team3D/Editor/Public/Protego.h
@@ -34,6 +34,7 @@ class CProtego final : public CEffect_Container
_wstring m_wstrEffectName = {};
class CEditEffect* m_pSphere = { nullptr };
+ class CEditEffect* m_pSphereLay = { nullptr };
_float m_fSizeAccTime = {};
_float m_fAmountSize = {};