@@ -180,6 +180,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Goblin_Sword.h" />
|
||||
<ClInclude Include="..\public\InstancedProp_Light.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Breath.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Charge.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_FireBall.h" />
|
||||
<ClInclude Include="..\Public\CamPosition_AI.h" />
|
||||
<ClInclude Include="..\public\Dialogue.h" />
|
||||
@@ -190,6 +191,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Ranrok_Point.h" />
|
||||
<ClInclude Include="..\Public\PlayerRobe.h" />
|
||||
<ClInclude Include="..\Public\Player_ENUM.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Pulse.h" />
|
||||
<ClInclude Include="..\Public\ReparoObject.h" />
|
||||
<ClInclude Include="..\Public\State_Dash.h" />
|
||||
<ClInclude Include="..\Public\State_Fall.h" />
|
||||
@@ -441,6 +443,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Goblin_Sword.cpp" />
|
||||
<ClCompile Include="..\private\InstancedProp_Light.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Breath.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Charge.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_FireBall.cpp" />
|
||||
<ClCompile Include="..\Private\CamPosition_AI.cpp" />
|
||||
<ClCompile Include="..\private\Dialogue.cpp" />
|
||||
@@ -450,6 +453,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\private\PointLight.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Point.cpp" />
|
||||
<ClCompile Include="..\Private\PlayerRobe.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Pulse.cpp" />
|
||||
<ClCompile Include="..\Private\ReparoObject.cpp" />
|
||||
<ClCompile Include="..\Private\State_Dash.cpp" />
|
||||
<ClCompile Include="..\Private\State_Fall.cpp" />
|
||||
|
||||
@@ -800,6 +800,12 @@
|
||||
<ClInclude Include="..\public\InstancedProp_Light.h">
|
||||
<Filter>02.GameObjects\Environment\02.InstancedProp\Light</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_Pulse.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Pulse</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_Charge.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Charge</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -1665,6 +1671,12 @@
|
||||
<Filter Include="99.Define\00.DEFAULT">
|
||||
<UniqueIdentifier>{05a0db73-4fbf-456c-9137-bb605c632d68}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Pulse">
|
||||
<UniqueIdentifier>{0464c6ff-87b8-4a3e-bc06-c912b32a65eb}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Charge">
|
||||
<UniqueIdentifier>{fd036f05-4c10-4322-b0c2-aac65e7011a1}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -2412,6 +2424,12 @@
|
||||
<ClCompile Include="..\private\InstancedProp_Light.cpp">
|
||||
<Filter>02.GameObjects\Environment\02.InstancedProp\Light</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ranrok_Pulse.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Pulse</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ranrok_Charge.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Charge</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
|
||||
@@ -37,14 +37,10 @@ HRESULT CEffectObject::Render()
|
||||
for (_uint i = 0; i < m_pInstance_ModelCom->Get_NumMeshes(); i++)
|
||||
{
|
||||
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(m_EffectInfo.eShaderPass)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Bind_DepthStencil(m_pShaderCom, "g_DepthStencilTexture")))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pInstance_ModelCom->Bind_CS_Output(5, 1)))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -100,10 +96,11 @@ HRESULT CEffectObject::Render_Blur()
|
||||
}
|
||||
}
|
||||
|
||||
if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NONPOS || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DEFAULT_NONPOS)
|
||||
if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NONPOS || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DEFAULT_NONPOS
|
||||
|| m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NONWB_NONPOS)
|
||||
BlurPass = SHADER_PASS_INSTANCE_MODEL::NONPOS_BLUR;
|
||||
|
||||
if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::WB_CULLING)
|
||||
if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::WB_CULLING || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::BLEND_CULLING)
|
||||
{
|
||||
if (m_EffectInfo.isBlurNoEmissive == false)
|
||||
{
|
||||
@@ -122,7 +119,6 @@ HRESULT CEffectObject::Render_Blur()
|
||||
}
|
||||
|
||||
|
||||
|
||||
for (_uint i = 0; i < m_pInstance_ModelCom->Get_NumMeshes(); i++)
|
||||
{
|
||||
|
||||
|
||||
@@ -45,6 +45,8 @@
|
||||
#include "Ranrok_FireBall.h"
|
||||
#include "Ranrok_Breath.h"
|
||||
#include "Ranrok_Point.h"
|
||||
#include "Ranrok_Pulse.h"
|
||||
#include "Ranrok_Charge.h"
|
||||
|
||||
|
||||
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -592,6 +594,26 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
return pEffect; }
|
||||
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_PURSE, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CRanrok_Pulse* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_Pulse>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_CHARGE, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CRanrok_Charge* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_Charge>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -111,9 +111,9 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
|
||||
/*if (FAILED(Ready_Layer_BroomRacerAI(TEXT("Layer_BroomRacerAI")))) {
|
||||
return E_FAIL;
|
||||
}*/
|
||||
//if (FAILED(Ready_Layer_Monster())) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
if (FAILED(Ready_Layer_Monster())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if(FAILED(m_pInfoInstance->Late_Initialize()))
|
||||
return E_FAIL;
|
||||
@@ -781,7 +781,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster()
|
||||
|
||||
#endif // gimch
|
||||
#ifdef 진우
|
||||
|
||||
isLoad_Monster = true;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isLoad_Monster = true;
|
||||
|
||||
@@ -197,6 +197,8 @@
|
||||
#include "Ranrok_FireBall.h"
|
||||
#include "Ranrok_Breath.h"
|
||||
#include "Ranrok_Point.h"
|
||||
#include "Ranrok_Charge.h"
|
||||
#include "Ranrok_Pulse.h"
|
||||
|
||||
#include "StunEffect.h"
|
||||
#include "Box_Splesh.h"
|
||||
@@ -1582,6 +1584,52 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
});
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Textures/Effect/Nomal", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
|
||||
_string strFilePath = pFilePath;
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
});
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Textures/Effect/Decal", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
|
||||
_string strFilePath = pFilePath;
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
});
|
||||
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Textures/Effect/DecalNormal", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
|
||||
_string strFilePath = pFilePath;
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
#pragma endregion
|
||||
@@ -2218,6 +2266,14 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_Pulse>(g_iStaticLevel, CRanrok_Pulse::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_Charge>(g_iStaticLevel, CRanrok_Charge::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Teleport>(g_iStaticLevel, CGoblin_Teleport::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
|
||||
@@ -22,9 +22,10 @@ CRanrok_Breath::CRanrok_Breath(const CRanrok_Breath& rhs)
|
||||
HRESULT CRanrok_Breath::Initialize_Prototype()
|
||||
{
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokBreath")))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -56,35 +57,6 @@ HRESULT CRanrok_Breath::Initialize(void* pArg)
|
||||
m_fDuration = 5.f;
|
||||
|
||||
|
||||
m_Events.emplace(0.5f, [&]() {
|
||||
m_isStartRayCast = true;
|
||||
});
|
||||
|
||||
|
||||
m_Events.emplace(3.f, [&]() {
|
||||
|
||||
// 파티클 제어
|
||||
m_isParticleEnd = true;
|
||||
|
||||
CEffectParts* pRock_PT = Get_PartObject<CEffectParts>("Rock_PT");
|
||||
CEffectParts* pBottomFire = Get_PartObject<CEffectParts>("BottomFire");
|
||||
CEffectParts* pSplatterBottom0 = Get_PartObject<CEffectParts>("SplatterBottom0");
|
||||
|
||||
m_pMouthFire->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
|
||||
pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
pBottomFire->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
pSplatterBottom0->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
|
||||
m_pBreath->Get_Component<CInstance_Model>()->Set_Loop(false);
|
||||
m_pBreath->Get_Effect_Info()->isDissolve = true;
|
||||
|
||||
m_pBreath_Black->Get_Component<CInstance_Model>()->Set_Loop(false);
|
||||
m_pBreath_Black->Get_Effect_Info()->isDissolve = true;
|
||||
|
||||
m_pBreathSlog->Set_Visible(false);
|
||||
|
||||
});
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -110,7 +82,7 @@ void CRanrok_Breath::Update(_float fTimeDelta)
|
||||
BoneMat.r[i] = XMVector3Normalize(BoneMat.r[i]);
|
||||
}
|
||||
|
||||
_matrix WorldMat = m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix() ;
|
||||
_matrix WorldMat = m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix();
|
||||
|
||||
_matrix CombinedMat = BoneMat * WorldMat;
|
||||
|
||||
@@ -120,7 +92,7 @@ void CRanrok_Breath::Update(_float fTimeDelta)
|
||||
m_pBreath_Black->Get_Component<CTransform>()->Set_WorldMatrix(CombinedMat);
|
||||
m_pBreathSlog->Get_Component<CTransform>()->Set_WorldMatrix(CombinedMat);
|
||||
|
||||
if(m_isParticleEnd == false)
|
||||
if (m_isParticleEnd == false)
|
||||
m_pMouthFire->Get_Component<CTransform>()->Set_State(STATE::POSITION, CombinedMat.r[3]);
|
||||
|
||||
|
||||
@@ -128,7 +100,7 @@ void CRanrok_Breath::Update(_float fTimeDelta)
|
||||
|
||||
XMStoreFloat4(&m_vStartPos, vStartPos);
|
||||
|
||||
if(m_isStartRayCast == true)
|
||||
if (m_isStartRayCast == true)
|
||||
{
|
||||
ON_COLLISION_INFO CollisionInfo = MonsterRayCast(XMLoadFloat4(&m_vStartPos), CombinedMat.r[2] * -1.f, 50.f, 50);
|
||||
if (m_bHit = true)
|
||||
@@ -137,7 +109,7 @@ void CRanrok_Breath::Update(_float fTimeDelta)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Breath::Late_Update(_float fTimeDelta)
|
||||
@@ -156,52 +128,58 @@ HRESULT CRanrok_Breath::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
/* 브레스 시간 제어 */
|
||||
|
||||
_float fBreathTime = *static_cast<_float*>(pArg);
|
||||
|
||||
Set_BreathTime(fBreathTime);
|
||||
|
||||
/* 초기 객체 비지블*/
|
||||
|
||||
CEffectParts* pBlurMesh = Get_PartObject<CEffectParts>("BlurMesh");
|
||||
|
||||
m_pBreath->Set_Visible(true);
|
||||
m_pBreath_Black->Set_Visible(true);
|
||||
m_pBreathSlog->Set_Visible(true);
|
||||
m_pMouthFire->Set_Visible(true);
|
||||
pBlurMesh->Set_Visible(true);
|
||||
m_pBreath->Set_Visible(true);
|
||||
m_pBreath_Black->Set_Visible(true);
|
||||
m_pBreathSlog->Set_Visible(true);
|
||||
m_pMouthFire->Set_Visible(true);
|
||||
pBlurMesh->Set_Visible(true);
|
||||
|
||||
/* 초기 객체 위치 초기화*/
|
||||
|
||||
_matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component<CModel>()->Get_BoneMatrixPtr("tongue_01"));
|
||||
_matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component<CModel>()->Get_BoneMatrixPtr("tongue_01"));
|
||||
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
BoneMat.r[i] = XMVector3Normalize(BoneMat.r[i]);
|
||||
}
|
||||
|
||||
_matrix WorldMat = m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix() ;
|
||||
_matrix WorldMat = m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix();
|
||||
|
||||
_matrix CombinedMat = BoneMat * WorldMat;
|
||||
|
||||
|
||||
|
||||
m_pBreath->Get_Component<CTransform>()->Set_WorldMatrix(CombinedMat);
|
||||
m_pBreath_Black->Get_Component<CTransform>()->Set_WorldMatrix(CombinedMat);
|
||||
m_pBreathSlog->Get_Component<CTransform>()->Set_WorldMatrix(CombinedMat);
|
||||
m_pBreath->Get_Component<CTransform>()->Set_WorldMatrix(CombinedMat);
|
||||
m_pBreath_Black->Get_Component<CTransform>()->Set_WorldMatrix(CombinedMat);
|
||||
m_pBreathSlog->Get_Component<CTransform>()->Set_WorldMatrix(CombinedMat);
|
||||
|
||||
_vector vStartPos = CombinedMat.r[3];
|
||||
_vector vStartPos = CombinedMat.r[3];
|
||||
|
||||
XMStoreFloat4(&m_vStartPos, vStartPos);
|
||||
XMStoreFloat4(&m_vStartPos, vStartPos);
|
||||
|
||||
|
||||
|
||||
m_pMouthFire->Get_Component<CTransform>()->Set_State(STATE::POSITION, CombinedMat.r[3]);
|
||||
pBlurMesh->Get_Component<CTransform>()->Set_State(STATE::POSITION, CombinedMat.r[3]);
|
||||
m_pMouthFire->Get_Component<CTransform>()->Set_State(STATE::POSITION, CombinedMat.r[3]);
|
||||
pBlurMesh->Get_Component<CTransform>()->Set_State(STATE::POSITION, CombinedMat.r[3]);
|
||||
|
||||
/* 브레스 디졸브를 위해 초기값 설정*/
|
||||
m_pBreath->Get_Component<CInstance_Model>()->Set_Loop(true);
|
||||
m_pBreath->Get_Effect_Info()->isDissolve = false;
|
||||
/* 브레스 디졸브를 위해 초기값 설정*/
|
||||
m_pBreath->Get_Component<CInstance_Model>()->Set_Loop(true);
|
||||
m_pBreath->Get_Effect_Info()->isDissolve = false;
|
||||
|
||||
m_pBreath_Black->Get_Component<CInstance_Model>()->Set_Loop(true);
|
||||
m_pBreath_Black->Get_Effect_Info()->isDissolve = false;
|
||||
m_pBreath_Black->Get_Component<CInstance_Model>()->Set_Loop(true);
|
||||
m_pBreath_Black->Get_Effect_Info()->isDissolve = false;
|
||||
|
||||
m_isParticleEnd = false;
|
||||
m_isStartRayCast = false;
|
||||
m_isParticleEnd = false;
|
||||
m_isStartRayCast = false;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -280,6 +258,42 @@ void CRanrok_Breath::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
XMStoreFloat4(&m_vPreCollisionPos, vPos);
|
||||
}
|
||||
|
||||
void CRanrok_Breath::Set_BreathTime(_float fTime)
|
||||
{
|
||||
m_Events.clear();
|
||||
|
||||
m_Events.emplace(fTime, [&]() {
|
||||
|
||||
m_pBreath->Get_Component<CInstance_Model>()->Set_Loop(false);
|
||||
m_pBreath->Get_Effect_Info()->isDissolve = true;
|
||||
|
||||
m_pBreath_Black->Get_Component<CInstance_Model>()->Set_Loop(false);
|
||||
m_pBreath_Black->Get_Effect_Info()->isDissolve = true;
|
||||
|
||||
m_pBreathSlog->Set_Visible(false);
|
||||
|
||||
});
|
||||
|
||||
m_Events.emplace(fTime + 0.5f, [&]() {
|
||||
// 파티클 제어
|
||||
m_isParticleEnd = true;
|
||||
|
||||
CEffectParts* pRock_PT = Get_PartObject<CEffectParts>("Rock_PT");
|
||||
CEffectParts* pBottomFire = Get_PartObject<CEffectParts>("BottomFire");
|
||||
CEffectParts* pSplatterBottom0 = Get_PartObject<CEffectParts>("SplatterBottom0");
|
||||
|
||||
m_pMouthFire->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
|
||||
pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
pBottomFire->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
pSplatterBottom0->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
});
|
||||
|
||||
m_Events.emplace(0.25f, [&]() {
|
||||
m_isStartRayCast = true;
|
||||
});
|
||||
}
|
||||
|
||||
void CRanrok_Breath::Free()
|
||||
{
|
||||
__super::Free();
|
||||
@@ -290,7 +304,7 @@ void CRanrok_Breath::Free()
|
||||
SAFE_RELEASE(m_pBreath_Black);
|
||||
SAFE_RELEASE(m_pBreathSlog);
|
||||
SAFE_RELEASE(m_pMouthFire);
|
||||
|
||||
|
||||
//SAFE_RELEASE(m_pFireBall_Tail);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
@@ -0,0 +1,187 @@
|
||||
#include "pch.h"
|
||||
#include "Ranrok_Charge.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CRanrok_Charge::CRanrok_Charge(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CRanrok_Charge::CRanrok_Charge(const CRanrok_Charge& rhs)
|
||||
: CEffect_Container(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
SAFE_ADDREF(m_pInfoInstance);
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Charge::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokCharge")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Charge::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_wstrEffectName = L"RanrokCharge";
|
||||
|
||||
|
||||
|
||||
m_fDuration = 4.f;
|
||||
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrok_Charge::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Charge::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Charge::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Charge::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
/* 초기 객체 비지블*/
|
||||
|
||||
CEffectParts* pCharge_Goo = Get_PartObject<CEffectParts>("Charge_Goo");
|
||||
CEffectParts* pCombinedPT = Get_PartObject<CEffectParts>("CombinedPT");
|
||||
|
||||
pCharge_Goo->Set_Visible(true);
|
||||
pCombinedPT->Set_Visible(true);
|
||||
|
||||
/* 초기 객체 위치 초기화*/
|
||||
|
||||
_vector vOwnerPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_Position();
|
||||
|
||||
|
||||
pCharge_Goo->Get_Component<CTransform>()->Set_State(STATE::POSITION, vOwnerPos);
|
||||
pCombinedPT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vOwnerPos);
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Charge::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Charge::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CRanrok_Charge* CRanrok_Charge::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CRanrok_Charge* pInstance = new CRanrok_Charge(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CRanrok_Charge");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CRanrok_Charge::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CRanrok_Charge* pInstance = new CRanrok_Charge(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CRanrok_Charge");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CRanrok_Charge::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
if (m_bHit == false)
|
||||
return;
|
||||
|
||||
ON_COLLISION_INFO CollisionDesc = *static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
_vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Charge::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pInfoInstance);
|
||||
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CRanrok_Charge::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CRanrok_Charge::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,209 @@
|
||||
#include "pch.h"
|
||||
#include "Ranrok_Pulse.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CRanrok_Pulse::CRanrok_Pulse(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CRanrok_Pulse::CRanrok_Pulse(const CRanrok_Pulse& rhs)
|
||||
: CEffect_Container(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
SAFE_ADDREF(m_pInfoInstance);
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Pulse::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokPulse")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Pulse::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_wstrEffectName = L"RanrokPulse";
|
||||
|
||||
|
||||
|
||||
m_fDuration = 15.f;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrok_Pulse::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Pulse::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Pulse::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Pulse::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
/* 초기 객체 비지블*/
|
||||
|
||||
CEffectParts* pBottomDecal = Get_PartObject<CEffectParts>("Bottom_Decal");
|
||||
CEffectParts* pBottomSplatter = Get_PartObject<CEffectParts>("BottomSplatter");
|
||||
CEffectParts* pBottomSplatter2 = Get_PartObject<CEffectParts>("BottomSplatter2");
|
||||
CEffectParts* pRed_Sphere = Get_PartObject<CEffectParts>("Red_Sphere");
|
||||
CEffectParts* pRock_PT = Get_PartObject<CEffectParts>("Rock_PT");
|
||||
CEffectParts* pSmoke = Get_PartObject<CEffectParts>("Smoke");
|
||||
|
||||
pBottomDecal->Set_Visible(true);
|
||||
pBottomSplatter->Set_Visible(true);
|
||||
pBottomSplatter2->Set_Visible(true);
|
||||
pRock_PT->Set_Visible(true);
|
||||
pSmoke->Set_Visible(true);
|
||||
|
||||
pRed_Sphere->Set_Visible(true);
|
||||
|
||||
|
||||
/* 초기 객체 위치 초기화*/
|
||||
|
||||
_vector vOwnerPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_Position();
|
||||
|
||||
pRed_Sphere->Get_Component<CTransform>()->Set_WorldMatrix(m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix());
|
||||
pRed_Sphere->Get_Component<CTransform>()->Set_State(STATE::POSITION, vOwnerPos);
|
||||
|
||||
CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first;
|
||||
|
||||
if (pPlayer == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
_vector vPlayer_FootPos = pPlayer->Get_Component<CCharacter_Controller>()->Get_FootPosition();
|
||||
|
||||
XMStoreFloat4(&m_vTargetPos, vPlayer_FootPos);
|
||||
|
||||
_vector vCompute_Pos = XMVectorSetY(vOwnerPos, XMVectorGetY(vPlayer_FootPos));
|
||||
|
||||
pBottomDecal->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
|
||||
pBottomSplatter->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
|
||||
pBottomSplatter2->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
|
||||
pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
|
||||
pSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Pulse::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Pulse::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CRanrok_Pulse* CRanrok_Pulse::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CRanrok_Pulse* pInstance = new CRanrok_Pulse(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CRanrok_Pulse");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CRanrok_Pulse::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CRanrok_Pulse* pInstance = new CRanrok_Pulse(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CRanrok_Pulse");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CRanrok_Pulse::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
if (m_bHit == false)
|
||||
return;
|
||||
|
||||
ON_COLLISION_INFO CollisionDesc = *static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
_vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Pulse::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pInfoInstance);
|
||||
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CRanrok_Pulse::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CRanrok_Pulse::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -286,39 +286,41 @@ void CRanrok::Behavior_FlyExit()
|
||||
void CRanrok::Behavior_FireBreathEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_bLookAt = true;
|
||||
m_pFSM->Enable_State(FSMSTATE::FIREBREATH);
|
||||
if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_AIR))
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_WINDUP_A];
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_A];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)];
|
||||
m_pModelCom->Play_HeadBone(true);
|
||||
m_bLookAt = false; },
|
||||
0.95f);
|
||||
[&]() {
|
||||
pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_A];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)];
|
||||
m_bLookAt = false;
|
||||
}, 0.95f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::FIREBREATH_A].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_COOLDOWN_A];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); },
|
||||
0.95f);
|
||||
[&]() {
|
||||
pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_COOLDOWN_A];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_bLookAt = true;
|
||||
}, 0.95f);
|
||||
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::FIREBREATH_A].first,
|
||||
[this]() {
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this);
|
||||
|
||||
_float fBreathTime = 1.f;
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &fBreathTime);
|
||||
|
||||
}, 0.1f);
|
||||
|
||||
}
|
||||
else if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND))
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_G];
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)];
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this);
|
||||
}, 0.1f);
|
||||
}
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
@@ -389,11 +391,15 @@ void CRanrok::Behavior_FireSweepEnter()
|
||||
},
|
||||
0.95f);
|
||||
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::FIRESWEEP_A].first,
|
||||
[this]() {
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this);
|
||||
|
||||
_float fBreathTime = 3.f;
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &fBreathTime);
|
||||
|
||||
}, 0.08f);
|
||||
|
||||
}
|
||||
else if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND))
|
||||
{
|
||||
@@ -404,6 +410,7 @@ void CRanrok::Behavior_FireSweepEnter()
|
||||
[this]() {
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this);
|
||||
}, 0.2f);
|
||||
|
||||
}
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
@@ -660,8 +667,16 @@ void CRanrok::Behavior_PulseEnter()
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() { CameraShake(10.f, 2.f, 5.f, 1.2f); },
|
||||
[this]() { CameraShake(10.f, 2.f, 5.f, 1.2f);
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_PURSE, this);
|
||||
},
|
||||
0.39f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_CHARGE, this);
|
||||
}, 0.f);
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok::Behavior_PulseExitCheck(_float fTimeDelta)
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Client
|
||||
enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, ENV_TERRAIN_ANISO, SHADOW, END };
|
||||
enum class SHADER_PASS_PARTICLE { EXPLOSION, 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, DEPTH_STOP, WB_CULLING, SCREEN_FX, DISTORTION, NONPOS, NONPOS_BLUR , BLUR_MESH, BLUR_CULLING, BLUR_CULLING_NO_EMISSIVE, BLOOM_CULLING, DEFAULT_NONPOS, NONWB_NONPOS ,DECAL, DECAL_WB ,DECAL_BLUR , 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, DEPTH_STOP, WB_CULLING, SCREEN_FX, DISTORTION, NONPOS, NONPOS_BLUR , BLUR_MESH, BLUR_CULLING, BLUR_CULLING_NO_EMISSIVE, BLOOM_CULLING, DEFAULT_NONPOS, NONWB_NONPOS ,DECAL, DECAL_WB ,DECAL_BLUR , BLEND_CULLING,END};
|
||||
enum class SHADER_PASS_UIEDITOR {
|
||||
DEFAULT, COLOR, LOGO, LOGO_TEXT, LOGO_GLOW, ALPHABLEND, CLAMP, CURSOR,
|
||||
LODING, HOLD_ROTATION, MISSION, QUESTTYPE, UVMULT, NINECLICE,
|
||||
@@ -72,7 +72,7 @@ namespace Client
|
||||
|
||||
/*란록*/
|
||||
|
||||
RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT,
|
||||
RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE,
|
||||
|
||||
END
|
||||
};
|
||||
|
||||
@@ -30,6 +30,7 @@ class CRanrok_Breath final : public CEffect_Container
|
||||
HRESULT Ready_Child();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
void Set_BreathTime(_float fTime);
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CRanrok_Charge final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CRanrok_Charge(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CRanrok_Charge(const CRanrok_Charge& rhs);
|
||||
virtual ~CRanrok_Charge() = 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:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
_bool m_isParticleEnd = {};
|
||||
|
||||
_float3 m_vLook = {};
|
||||
_float m_fLinearSpeed = 0.8f;
|
||||
|
||||
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
|
||||
_float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f };
|
||||
private:
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
public:
|
||||
static CRanrok_Charge* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // DEBUG
|
||||
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,55 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CRanrok_Pulse final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CRanrok_Pulse(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CRanrok_Pulse(const CRanrok_Pulse& rhs);
|
||||
virtual ~CRanrok_Pulse() = 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:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
|
||||
_float3 m_vLook = {};
|
||||
_float m_fLinearSpeed = 0.8f;
|
||||
|
||||
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
|
||||
_float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f };
|
||||
private:
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
public:
|
||||
static CRanrok_Pulse* 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
|
||||
@@ -59,6 +59,11 @@ struct ParticleValue
|
||||
float3 vWolrdOffset;
|
||||
float fLoopCount; /* 현재 몇번째 루프중인지 */
|
||||
|
||||
float fRoundRangeLength;
|
||||
float fAzimuthAngle;
|
||||
float fPolarAngle;
|
||||
float fRoundLengthLerpSpeed;
|
||||
|
||||
row_major matrix PreWorldMatrix;
|
||||
row_major matrix LocalMatrixInv;
|
||||
};
|
||||
@@ -99,7 +104,7 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐
|
||||
bool isNoResetTime;
|
||||
bool isLocal_Located_Not_TakeDelay;
|
||||
bool isCompute_LocalInverse;
|
||||
bool isPadding2;
|
||||
bool isRoundLengthLerp;
|
||||
|
||||
float fTimeDelta;
|
||||
float fSizeLerpOption; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다.
|
||||
@@ -160,6 +165,7 @@ void CS_MAIN(
|
||||
|
||||
if (isNoPos)
|
||||
{
|
||||
|
||||
particle.vTranslation.xyz += WorldMatrix[3].xyz;
|
||||
|
||||
/* 월드 오프셋 */
|
||||
@@ -170,6 +176,21 @@ void CS_MAIN(
|
||||
}
|
||||
}
|
||||
|
||||
if (isRoundLengthLerp == true)
|
||||
{
|
||||
if (particleValue.vDelay.x < particleValue.vDelay.y)
|
||||
{
|
||||
float3 vRoundRange = float3(
|
||||
particleValue.fRoundRangeLength * cos(particleValue.fAzimuthAngle) * sin(particleValue.fPolarAngle),
|
||||
particleValue.fRoundRangeLength * sin(particleValue.fAzimuthAngle) * sin(particleValue.fPolarAngle),
|
||||
particleValue.fRoundRangeLength * cos(particleValue.fPolarAngle));
|
||||
|
||||
|
||||
particleValue.vOriginTranslation.xyz += particleValue.fRoundLengthLerpSpeed * vRoundRange * fTimeDelta;
|
||||
particle.vTranslation.xyz += particleValue.fRoundLengthLerpSpeed * vRoundRange * fTimeDelta;
|
||||
|
||||
}
|
||||
}
|
||||
particleValue.vDelay.x += fTimeDelta;
|
||||
|
||||
if (particleValue.vDelay.x < particleValue.vDelay.y)
|
||||
@@ -271,6 +292,7 @@ void CS_MAIN(
|
||||
return ;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (isDrop == true)
|
||||
{
|
||||
|
||||
@@ -49,6 +49,12 @@ struct ParticleValue
|
||||
float3 vWolrdOffset;
|
||||
float fLoopCount; /* 현재 몇번째 루프중인지 */
|
||||
|
||||
float fRoundRangeLength;
|
||||
float fAzimuthAngle;
|
||||
float fPolarAngle;
|
||||
float fRoundLengthLerpSpeed;
|
||||
|
||||
|
||||
row_major matrix PreWorldMatrix;
|
||||
row_major matrix LocalMatrixInv;
|
||||
};
|
||||
@@ -284,6 +290,8 @@ VS_BULR_MESH_OUT VS_MAIN(VS_IN In, uint iGPUIndex : SV_InstanceID)
|
||||
{
|
||||
VS_BULR_MESH_OUT Out = (VS_BULR_MESH_OUT) 0;
|
||||
|
||||
|
||||
|
||||
matrix matW, matWV, matWVP;
|
||||
|
||||
row_major matrix TransformMatrix = float4x4(In.vRight, In.vUp, In.vLook, In.vTranslation);
|
||||
@@ -525,6 +533,10 @@ float4 DrawEffect(PS_IN In)
|
||||
discard;
|
||||
}
|
||||
|
||||
if (In.vLifeTime.x > In.vLifeTime.y)
|
||||
discard;
|
||||
|
||||
|
||||
if (g_isDiffuse == true)
|
||||
{
|
||||
float2 UV; // 이미지의 UV값
|
||||
@@ -732,56 +744,63 @@ float4 DrawEffect(PS_IN In)
|
||||
|
||||
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);
|
||||
|
||||
/* */
|
||||
|
||||
float fDissolveValue = vMtrlDissolve.r;
|
||||
if (g_fDissolveCutRatio > FLT_EPSILON5)
|
||||
{
|
||||
if (g_isDissolveMove)
|
||||
vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, vDissolveUV);
|
||||
else
|
||||
vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord);
|
||||
|
||||
float fDissolveValue = vMtrlDissolve.r;
|
||||
|
||||
if (g_isDissolve_G == true)
|
||||
fDissolveValue = vMtrlDissolve.g;
|
||||
if (g_isDissolve_G == true)
|
||||
fDissolveValue = vMtrlDissolve.g;
|
||||
|
||||
if (g_isDissolve_B == true)
|
||||
fDissolveValue = vMtrlDissolve.b;
|
||||
if (g_isDissolve_B == true)
|
||||
fDissolveValue = vMtrlDissolve.b;
|
||||
|
||||
float fSoftDissolve;
|
||||
float fSoftDissolve;
|
||||
|
||||
if (g_fDissolveSoftMask > FLT_EPSILON5)
|
||||
fSoftDissolve = saturate((fDissolveValue - g_fDissolveMaskEdge) * g_fDissolveSoftMask);
|
||||
else
|
||||
fSoftDissolve = fDissolveValue;
|
||||
if (g_fDissolveSoftMask > FLT_EPSILON5)
|
||||
fSoftDissolve = saturate((fDissolveValue - g_fDissolveMaskEdge) * g_fDissolveSoftMask);
|
||||
else
|
||||
fSoftDissolve = fDissolveValue;
|
||||
|
||||
vMtrlDissolve.r = fSoftDissolve;
|
||||
vMtrlDissolve.r = fSoftDissolve;
|
||||
|
||||
if (g_isReverseDissolve == true)
|
||||
{
|
||||
if (vMtrlDissolve.r >= (In.vLifeTime.x / In.vLifeTime.y))
|
||||
discard;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (g_isReverseDissolve == true)
|
||||
{
|
||||
if (vMtrlDissolve.r >= (In.vLifeTime.x / In.vLifeTime.y))
|
||||
discard;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
if (g_fDissolveCutRatio <= fTimeRatio) // 일정 수준 이상 넘어가지 못하도록 막기
|
||||
{
|
||||
fTimeRatio = g_fDissolveCutRatio;
|
||||
if (g_fDissolveCutRatio <= fTimeRatio) // 일정 수준 이상 넘어가지 못하도록 막기
|
||||
{
|
||||
fTimeRatio = g_fDissolveCutRatio;
|
||||
|
||||
}
|
||||
|
||||
|
||||
float fFade = smoothstep(fTimeRatio - 0.1f, fTimeRatio + 0.1f, vMtrlDissolve.r);
|
||||
|
||||
if (g_isNoDissolveSmoothStep == true)
|
||||
{
|
||||
fFade = smoothstep(fTimeRatio, fTimeRatio, vMtrlDissolve.r);
|
||||
}
|
||||
|
||||
vMtrlDiffuse.a *= fFade;
|
||||
|
||||
}
|
||||
|
||||
|
||||
float fFade = smoothstep(fTimeRatio - 0.1f, fTimeRatio + 0.1f, vMtrlDissolve.r);
|
||||
|
||||
if (g_isNoDissolveSmoothStep == true)
|
||||
{
|
||||
fFade = smoothstep(fTimeRatio, fTimeRatio, vMtrlDissolve.r);
|
||||
}
|
||||
|
||||
vMtrlDiffuse.a *= fFade;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* */
|
||||
|
||||
|
||||
|
||||
clip(vMtrlDiffuse.a - FLT_EPSILON5);
|
||||
}
|
||||
@@ -920,6 +939,9 @@ float4 SoftEffect(PS_IN In, float4 vMtrlDiffuse)
|
||||
|
||||
vDiffuse.a = vDiffuse.a * saturate(fDistance);
|
||||
|
||||
if(vDiffuse.a < FLT_EPSILON5)
|
||||
discard;
|
||||
|
||||
return vDiffuse;
|
||||
|
||||
}
|
||||
@@ -1037,21 +1059,22 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
|
||||
{
|
||||
PS_OUT Out = (PS_OUT)0;
|
||||
|
||||
|
||||
//int2 iTexel = int2(In.vPosition.xy);
|
||||
|
||||
//float fDepthStencilValue = g_DepthStencilTexture.Load(int3(iTexel, 0)).r;
|
||||
|
||||
//float fbias = 0.000005f;
|
||||
|
||||
//if (fDepthStencilValue <= In.vProjPos.z / In.vProjPos.w + fbias)
|
||||
// discard;
|
||||
|
||||
float4 vMtrlDiffuse;
|
||||
|
||||
vMtrlDiffuse = DrawEffect(In);
|
||||
|
||||
vMtrlDiffuse = SoftEffect(In, vMtrlDiffuse);
|
||||
|
||||
int2 iTexel = int2(In.vPosition.xy);
|
||||
|
||||
float fDepthStencilValue = g_DepthStencilTexture.Load(int3(iTexel, 0)).r;
|
||||
|
||||
float fbias = 0.000005f;
|
||||
|
||||
if (fDepthStencilValue <= In.vProjPos.z / In.vProjPos.w + fbias)
|
||||
discard;
|
||||
|
||||
vMtrlDiffuse.rgb += EmissiveDraw(In, vMtrlDiffuse).rgb;
|
||||
|
||||
vMtrlDiffuse += RimLight(In);
|
||||
@@ -1770,7 +1793,7 @@ technique11 DefaultTechnique
|
||||
pass Default_NonPos
|
||||
{
|
||||
SetRasterizerState(RS_Nocull);
|
||||
SetDepthStencilState(DSS_None, 0);
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN_NO_POS();
|
||||
GeometryShader = NULL;
|
||||
@@ -1819,6 +1842,16 @@ technique11 DefaultTechnique
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_DECAL_BLUR();
|
||||
}
|
||||
//28
|
||||
pass Blend_Culling
|
||||
{
|
||||
SetRasterizerState(RS_Default);
|
||||
SetDepthStencilState(DSS_Effect, 0);
|
||||
SetBlendState(BS_Blend, 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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 51 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 151 KiB |
|
After Width: | Height: | Size: 184 KiB |
|
After Width: | Height: | Size: 107 KiB |
|
After Width: | Height: | Size: 159 KiB |
|
After Width: | Height: | Size: 3.4 MiB |
|
After Width: | Height: | Size: 2.3 MiB |
|
After Width: | Height: | Size: 1.4 MiB |
|
After Width: | Height: | Size: 119 KiB |
|
After Width: | Height: | Size: 132 KiB |
|
After Width: | Height: | Size: 210 KiB |
|
After Width: | Height: | Size: 148 KiB |
|
After Width: | Height: | Size: 292 KiB |
|
After Width: | Height: | Size: 219 KiB |
|
After Width: | Height: | Size: 206 KiB |
|
After Width: | Height: | Size: 218 KiB |
|
After Width: | Height: | Size: 777 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 2.1 MiB |
|
After Width: | Height: | Size: 316 KiB |
|
After Width: | Height: | Size: 1.6 MiB |
|
After Width: | Height: | Size: 140 KiB |
|
After Width: | Height: | Size: 63 KiB |
|
After Width: | Height: | Size: 51 KiB |
|
After Width: | Height: | Size: 290 KiB |
|
After Width: | Height: | Size: 283 KiB |
|
After Width: | Height: | Size: 253 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 2.0 MiB |
|
After Width: | Height: | Size: 670 KiB |
|
After Width: | Height: | Size: 604 KiB |
|
After Width: | Height: | Size: 3.0 MiB |
|
After Width: | Height: | Size: 540 KiB |
|
After Width: | Height: | Size: 213 KiB |
@@ -214,6 +214,8 @@ call Update_Shaders.bat
|
||||
<ClInclude Include="..\public\RaceRing.h" />
|
||||
<ClInclude Include="..\Public\Ranrok.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Breath.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Charge.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Pulse.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Point.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_FireBall.h" />
|
||||
<ClInclude Include="..\Public\Skill_Data.h" />
|
||||
@@ -475,6 +477,8 @@ call Update_Shaders.bat
|
||||
<ClCompile Include="..\private\RaceRing.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Breath.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Charge.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Pulse.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Point.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_FireBall.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_States.cpp" />
|
||||
|
||||
@@ -706,6 +706,9 @@
|
||||
<Filter Include="50.UI\GamePlay_Canvas\Broom_Panel\Broom_Record">
|
||||
<UniqueIdentifier>{cfd0b003-cc18-48cf-a881-94e137b5dadc}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Layer_Effect\Effect\Monster_Effect\Ranrok\Pulse">
|
||||
<UniqueIdentifier>{935b6ab0-e01b-4b4b-80d0-649a507d21c8}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\GamePlay_Canvas\Broom_Panel\Broom_Trophy">
|
||||
<UniqueIdentifier>{cbb99946-a4d6-4ad8-842c-e67ca5de3f3a}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -715,6 +718,9 @@
|
||||
<Filter Include="02.GameObjects\RaceRing">
|
||||
<UniqueIdentifier>{189b5f72-c985-4bf8-a33e-4257f6d74d25}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Layer_Effect\Effect\Monster_Effect\Ranrok\Charge">
|
||||
<UniqueIdentifier>{c9d234fd-d9dc-4740-9e9e-32b986335ee7}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="Editor.h">
|
||||
@@ -1440,6 +1446,9 @@
|
||||
<ClInclude Include="..\public\Broom_Record.h">
|
||||
<Filter>50.UI\GamePlay_Canvas\Broom_Panel\Broom_Record</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_Pulse.h">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect\Monster_Effect\Ranrok\Pulse</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Broom_Trophy.h">
|
||||
<Filter>50.UI\GamePlay_Canvas\Broom_Panel\Broom_Trophy</Filter>
|
||||
</ClInclude>
|
||||
@@ -1449,6 +1458,9 @@
|
||||
<ClInclude Include="..\public\RaceRing.h">
|
||||
<Filter>02.GameObjects\RaceRing</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_Charge.h">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect\Monster_Effect\Ranrok\Charge</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Editor.ico">
|
||||
@@ -2182,6 +2194,9 @@
|
||||
<ClCompile Include="..\private\Broom_Record.cpp">
|
||||
<Filter>50.UI\GamePlay_Canvas\Broom_Panel\Broom_Record</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ranrok_Pulse.cpp">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect\Monster_Effect\Ranrok\Pulse</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Broom_Trophy.cpp">
|
||||
<Filter>50.UI\GamePlay_Canvas\Broom_Panel\Broom_Trophy</Filter>
|
||||
</ClCompile>
|
||||
@@ -2191,6 +2206,9 @@
|
||||
<ClCompile Include="..\private\RaceRing.cpp">
|
||||
<Filter>02.GameObjects\RaceRing</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ranrok_Charge.cpp">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect\Monster_Effect\Ranrok\Charge</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="Editor.rc">
|
||||
|
||||
@@ -329,8 +329,8 @@ HRESULT CEditEffect::Save_Effect(const _char* pPath)
|
||||
|
||||
if (m_EffectInfo.isNomalMap)
|
||||
{
|
||||
size_t iComponentLength = m_strNomalMapName.length();
|
||||
const _char* pFileComponentPath = m_strNomalMapName.c_str();
|
||||
size_t iComponentLength = m_strNormalMapName.length();
|
||||
const _char* pFileComponentPath = m_strNormalMapName.c_str();
|
||||
|
||||
if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
@@ -457,7 +457,7 @@ void CEditEffect::Describe_Entity()
|
||||
const char* pEffectType[] = { "EFFECT" , "TRAIL" };
|
||||
const char* pShaderPass[] = { "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" , "DEPTH_STOP" , "WB_CULLING", "SCREEN_FX" , "DISTORTION" ,"NONPOS" , "NONPOS_BLUR" , "BULR_MESH" , "BLUR_CULLING" ,"BLUR_CULLING_NO_EMISSIVE" ,
|
||||
"BLOOM_CULLING" , "DEFAULT_NONPOS" , "NONWB_NONPOS", "DECAL", "DECAL_WB" , "DECAL_BLUR"};
|
||||
"BLOOM_CULLING" , "DEFAULT_NONPOS" , "NONWB_NONPOS", "DECAL", "DECAL_WB" , "DECAL_BLUR", "BLEND_CULLING"};
|
||||
|
||||
const char* pBloomType[] = { "NONE" , "BASIC" , "MUILTY"};
|
||||
_int iCurrentItem = static_cast<_int>(m_EffectInfo.eRenderOrder);
|
||||
@@ -763,6 +763,17 @@ void CEditEffect::Describe_Entity()
|
||||
GUI::Spacing(); GUI::Spacing();
|
||||
}
|
||||
|
||||
if (GUI::TreeNode("DECAL TEX"))
|
||||
{
|
||||
_string strName = m_pGameInstance->Asset_Description<CTexture>(ENUM_CLASS(LEVEL::EFFECT), "NORMAL_TEXTURE", (CComponent**)&m_pDiffuse_TextureCom, nullptr, this, L"DECAL");
|
||||
|
||||
if (strName != "") {
|
||||
m_strDiffuseName = strName;
|
||||
}
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
|
||||
_string strName = m_pGameInstance->Asset_Description<CTexture>(ENUM_CLASS(LEVEL::EFFECT), "DIFFUSE_TEXTURE", (CComponent**)&m_pDiffuse_TextureCom, nullptr, this);
|
||||
|
||||
@@ -828,6 +839,18 @@ void CEditEffect::Describe_Entity()
|
||||
GUI::Spacing(); GUI::Spacing();
|
||||
}
|
||||
|
||||
if (GUI::TreeNode("DECAL TEX"))
|
||||
{
|
||||
_string strName = m_pGameInstance->Asset_Description<CTexture>(ENUM_CLASS(LEVEL::EFFECT), "NORMAL_TEXTURE", (CComponent**)&m_pMasking_TextureCom, nullptr, this, L"DECAL");
|
||||
|
||||
if (strName != "") {
|
||||
m_strMaskingName = strName;
|
||||
}
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
|
||||
string strName = m_pGameInstance->Asset_Description<CTexture>(ENUM_CLASS(LEVEL::EFFECT), "MASKING_TEXTURE", (CComponent**)&m_pMasking_TextureCom, nullptr, this);
|
||||
|
||||
if (strName != "") {
|
||||
@@ -1005,12 +1028,25 @@ void CEditEffect::Describe_Entity()
|
||||
GUI::Spacing(); GUI::Spacing();
|
||||
}
|
||||
|
||||
if (GUI::TreeNode("DECAL TEX"))
|
||||
{
|
||||
_string strName = m_pGameInstance->Asset_Description<CTexture>(ENUM_CLASS(LEVEL::EFFECT), "NORMAL_TEXTURE", (CComponent**)&m_pNoise_TextureCom, nullptr, this, L"DECAL");
|
||||
|
||||
if (strName != "") {
|
||||
m_strNoiseName = strName;
|
||||
}
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
_string strName = m_pGameInstance->Asset_Description<CTexture>(ENUM_CLASS(LEVEL::EFFECT), "NOISE_TEXTURE", (CComponent**)&m_pNoise_TextureCom, nullptr, this);
|
||||
|
||||
if (strName != "") {
|
||||
m_strNoiseName = strName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
@@ -1020,7 +1056,7 @@ void CEditEffect::Describe_Entity()
|
||||
|
||||
if (m_EffectInfo.isNomalMap == true)
|
||||
{
|
||||
if (GUI::TreeNode("NOMAL_TEX"))
|
||||
if (GUI::TreeNode("NORMAL_TEX"))
|
||||
{
|
||||
if (m_pNormal_TextureCom != nullptr)
|
||||
{
|
||||
@@ -1031,12 +1067,32 @@ void CEditEffect::Describe_Entity()
|
||||
GUI::Spacing(); GUI::Spacing();
|
||||
}
|
||||
|
||||
_string strName = m_pGameInstance->Asset_Description<CTexture>(ENUM_CLASS(LEVEL::EFFECT), "NOMAL_TEXTURE", (CComponent**)&m_pNormal_TextureCom, nullptr, this , L"NOMAL");
|
||||
if (GUI::TreeNode("NORMAL"))
|
||||
{
|
||||
_string strName = m_pGameInstance->Asset_Description<CTexture>(ENUM_CLASS(LEVEL::EFFECT), "NORMAL_TEXTURE", (CComponent**)&m_pNormal_TextureCom, nullptr, this, L"NORMAL");
|
||||
|
||||
if (strName != "") {
|
||||
m_strNomalMapName = strName;
|
||||
if (strName != "") {
|
||||
m_strNormalMapName = strName;
|
||||
}
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
if (GUI::TreeNode("DECAL NORMAL"))
|
||||
{
|
||||
_string strName = m_pGameInstance->Asset_Description<CTexture>(ENUM_CLASS(LEVEL::EFFECT), "NORMAL_TEXTURE", (CComponent**)&m_pNormal_TextureCom, nullptr, this, L"DECALNORMAL");
|
||||
|
||||
if (strName != "") {
|
||||
m_strNormalMapName = strName;
|
||||
}
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,8 +42,8 @@ HRESULT CEffectObject::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Bind_DepthStencil(m_pShaderCom, "g_DepthStencilTexture")))
|
||||
return E_FAIL;
|
||||
//if (FAILED(m_pGameInstance->Bind_DepthStencil(m_pShaderCom, "g_DepthStencilTexture")))
|
||||
// return E_FAIL;
|
||||
|
||||
if (FAILED(m_pInstance_ModelCom->Bind_CS_Output(5, 1)))
|
||||
return E_FAIL;
|
||||
@@ -104,7 +104,7 @@ HRESULT CEffectObject::Render_Blur()
|
||||
|| m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NONWB_NONPOS)
|
||||
BlurPass = SHADER_PASS_INSTANCE_MODEL::NONPOS_BLUR;
|
||||
|
||||
if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::WB_CULLING)
|
||||
if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::WB_CULLING || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::BLEND_CULLING)
|
||||
{
|
||||
if (m_EffectInfo.isBlurNoEmissive == false)
|
||||
{
|
||||
@@ -477,9 +477,9 @@ HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strNomalMapName = szName;
|
||||
m_strNormalMapName = szName;
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strNomalMapName),
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strNormalMapName),
|
||||
reinterpret_cast<CComponent**>(&m_pNormal_TextureCom))))
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -757,9 +757,9 @@ HRESULT CEffectObject::LoadPre(const _char* pFilePath, LEVEL eLevel)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strNomalMapName = szName;
|
||||
m_strNormalMapName = szName;
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strNomalMapName),
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strNormalMapName),
|
||||
reinterpret_cast<CComponent**>(&m_pNormal_TextureCom))))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -24,6 +24,9 @@
|
||||
#include "Ranrok_FireBall.h"
|
||||
#include "Ranrok_Breath.h"
|
||||
#include "Ranrok_Point.h"
|
||||
#include "Ranrok_Pulse.h"
|
||||
#include "Ranrok_Charge.h"
|
||||
|
||||
|
||||
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
@@ -343,6 +346,26 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_PURSE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CRanrok_Pulse* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_Pulse>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_CHARGE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CRanrok_Charge* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_Charge>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ HRESULT CEffect_Editor::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>();
|
||||
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Z_Layer_EffectPool"))->Get_Object<CEffectPool>();
|
||||
SAFE_ADDREF(m_pEffectPool);
|
||||
|
||||
return S_OK;
|
||||
@@ -622,7 +622,13 @@ void CEffect_Editor::Describe_Entity()
|
||||
}
|
||||
}
|
||||
|
||||
GUI::EndPopup();
|
||||
if (GUI::Button("Reset Hierarchy"))
|
||||
{
|
||||
Reset_EditEffect();
|
||||
}
|
||||
|
||||
ImGui::EndPopup();
|
||||
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
@@ -805,6 +811,7 @@ void CEffect_Editor::Describe_Entity()
|
||||
|
||||
GUI::End();
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CEffect_Editor::Bind_ShaderResources()
|
||||
|
||||
@@ -66,19 +66,18 @@ HRESULT CLevel_EffectViewer::Initialize()
|
||||
// return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEffectPool>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_EffectPool")))) //플레이어보다 먼저 생성해야함!
|
||||
/* 논 블랜드 중에서도 최 하단으로 들어가야함 */
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEffectPool>(g_iStaticLevel, NEXT_LEVEL, TEXT("Z_Layer_EffectPool")))) //플레이어보다 먼저 생성해야함!
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEffect_Editor>(ENUM_CLASS(LEVEL::EFFECT), NEXT_LEVEL, TEXT("Layer_Editor")))){
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEffect_Editor>(ENUM_CLASS(LEVEL::EFFECT), NEXT_LEVEL, TEXT("Z_Layer_Editor")))){
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummy_Plane>(ENUM_CLASS(LEVEL::EFFECT), NEXT_LEVEL, LAYER_CUBE))){
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPlayer>(g_iStaticLevel, NEXT_LEVEL, LAYER_PLAYER))){
|
||||
return E_FAIL;
|
||||
|
||||
@@ -759,6 +759,7 @@ HRESULT CLevel_ObjectViewer::Ready_Layer_UI(const _wstring& strLayerTag)
|
||||
HRESULT CLevel_ObjectViewer::Ready_Layer_Dummy(const _wstring& strLayerTag)
|
||||
{
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEffectPool>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_EffectPool")))) //플레이어보다 먼저 생성해야함!
|
||||
{
|
||||
return E_FAIL;
|
||||
|
||||
@@ -208,6 +208,8 @@
|
||||
#include "Ranrok_FireBall.h"
|
||||
#include "Ranrok_Breath.h"
|
||||
#include "Ranrok_Point.h"
|
||||
#include "Ranrok_Pulse.h"
|
||||
#include "Ranrok_Charge.h"
|
||||
#pragma endregion
|
||||
|
||||
#pragma region PHYSX_HEADER
|
||||
@@ -1418,7 +1420,38 @@ HRESULT CLoader::Loading_For_Effect()
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::EFFECT), wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0 , L"NOMAL")))) {
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0 , L"NORMAL")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
});
|
||||
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Textures/Effect/Decal", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
|
||||
_string strFilePath = pFilePath;
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::EFFECT), wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0, L"DECAL")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
});
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Textures/Effect/DecalNormal", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
|
||||
_string strFilePath = pFilePath;
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::EFFECT), wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0, L"DECALNORMAL")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -1634,6 +1667,12 @@ HRESULT CLoader::Loading_For_Effect()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_Component_Collider */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Collider"),
|
||||
CCollider::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_VTXPOS,
|
||||
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"),
|
||||
VTXPOS::Elements, VTXPOS::iNumElements)))) {
|
||||
@@ -1869,6 +1908,14 @@ HRESULT CLoader::Loading_For_Effect()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_Pulse>(NEXT_LEVEL, CRanrok_Pulse::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_Charge>(NEXT_LEVEL, CRanrok_Charge::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_Wand */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CWand>(g_iStaticLevel, CWand::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -77,7 +77,7 @@ HRESULT CPlayer::Initialize(void* pArg)
|
||||
m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody);
|
||||
m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody);
|
||||
|
||||
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>();
|
||||
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Z_Layer_EffectPool"))->Get_Object<CEffectPool>();
|
||||
SAFE_ADDREF(m_pEffectPool);
|
||||
|
||||
m_pInfoInstance->Regist_PlayerAlly(this);
|
||||
@@ -571,8 +571,9 @@ void CPlayer::Describe_Entity()
|
||||
|
||||
m_pLightCom->Describe_Entity();
|
||||
|
||||
#ifdef gimch
|
||||
#ifdef _DEBUG
|
||||
|
||||
#if gimchi || 진우
|
||||
if(m_pGameInstance->Key_Down(DIK_K))
|
||||
{
|
||||
_float3 vPos;
|
||||
@@ -581,7 +582,8 @@ void CPlayer::Describe_Entity()
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSetW(XMLoadFloat3(&vPos),1.f));
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif //
|
||||
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ HRESULT CRanrok::Initialize(void* pArg)
|
||||
m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody);
|
||||
m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody,&m_bCollisionPlayer);
|
||||
|
||||
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>();
|
||||
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Z_Layer_EffectPool"))->Get_Object<CEffectPool>();
|
||||
SAFE_ADDREF(m_pEffectPool);
|
||||
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(3.f, -75.f, -15.f, 1.f));
|
||||
|
||||
@@ -55,35 +55,6 @@ HRESULT CRanrok_Breath::Initialize(void* pArg)
|
||||
m_fDuration = 5.f;
|
||||
|
||||
|
||||
m_Events.emplace(0.5f, [&]() {
|
||||
m_isStartRayCast = true;
|
||||
});
|
||||
|
||||
|
||||
m_Events.emplace(3.f, [&]() {
|
||||
|
||||
// 파티클 제어
|
||||
m_isParticleEnd = true;
|
||||
|
||||
CEditEffect* pRock_PT = Get_PartObject<CEditEffect>("Rock_PT");
|
||||
CEditEffect* pBottomFire = Get_PartObject<CEditEffect>("BottomFire");
|
||||
CEditEffect* pSplatterBottom0 = Get_PartObject<CEditEffect>("SplatterBottom0");
|
||||
|
||||
m_pMouthFire->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
|
||||
pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
pBottomFire->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
pSplatterBottom0->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
|
||||
m_pBreath->Get_Component<CInstance_Model>()->Set_Loop(false);
|
||||
m_pBreath->Get_Effect_Info()->isDissolve = true;
|
||||
|
||||
m_pBreath_Black->Get_Component<CInstance_Model>()->Set_Loop(false);
|
||||
m_pBreath_Black->Get_Effect_Info()->isDissolve = true;
|
||||
|
||||
m_pBreathSlog->Set_Visible(false);
|
||||
|
||||
});
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -155,6 +126,12 @@ HRESULT CRanrok_Breath::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
/* 브레스 시간 제어 */
|
||||
|
||||
_float fBreathTime = *static_cast<_float*>(pArg);
|
||||
|
||||
Set_BreathTime(fBreathTime);
|
||||
|
||||
/* 초기 객체 비지블*/
|
||||
|
||||
CEditEffect* pBlurMesh = Get_PartObject<CEditEffect>("BlurMesh");
|
||||
@@ -279,6 +256,42 @@ void CRanrok_Breath::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
XMStoreFloat4(&m_vPreCollisionPos, vPos);
|
||||
}
|
||||
|
||||
void CRanrok_Breath::Set_BreathTime(_float fTime)
|
||||
{
|
||||
m_Events.clear();
|
||||
|
||||
m_Events.emplace(fTime, [&]() {
|
||||
|
||||
m_pBreath->Get_Component<CInstance_Model>()->Set_Loop(false);
|
||||
m_pBreath->Get_Effect_Info()->isDissolve = true;
|
||||
|
||||
m_pBreath_Black->Get_Component<CInstance_Model>()->Set_Loop(false);
|
||||
m_pBreath_Black->Get_Effect_Info()->isDissolve = true;
|
||||
|
||||
m_pBreathSlog->Set_Visible(false);
|
||||
|
||||
});
|
||||
|
||||
m_Events.emplace(fTime + 0.5f, [&]() {
|
||||
// 파티클 제어
|
||||
m_isParticleEnd = true;
|
||||
|
||||
CEditEffect* pRock_PT = Get_PartObject<CEditEffect>("Rock_PT");
|
||||
CEditEffect* pBottomFire = Get_PartObject<CEditEffect>("BottomFire");
|
||||
CEditEffect* pSplatterBottom0 = Get_PartObject<CEditEffect>("SplatterBottom0");
|
||||
|
||||
m_pMouthFire->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
|
||||
pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
pBottomFire->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
pSplatterBottom0->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
});
|
||||
|
||||
m_Events.emplace(0.25f, [&]() {
|
||||
m_isStartRayCast = true;
|
||||
});
|
||||
}
|
||||
|
||||
void CRanrok_Breath::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
@@ -0,0 +1,185 @@
|
||||
#include "pch.h"
|
||||
#include "Ranrok_Charge.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EditEffect.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CRanrok_Charge::CRanrok_Charge(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CRanrok_Charge::CRanrok_Charge(const CRanrok_Charge& rhs)
|
||||
: CEffect_Container(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
SAFE_ADDREF(m_pInfoInstance);
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Charge::Initialize_Prototype()
|
||||
{
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Charge::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokCharge")))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"RanrokCharge";
|
||||
|
||||
|
||||
|
||||
m_fDuration = 4.f;
|
||||
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrok_Charge::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Charge::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Charge::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Charge::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
/* 초기 객체 비지블*/
|
||||
|
||||
CEditEffect* pCharge_Goo = Get_PartObject<CEditEffect>("Charge_Goo");
|
||||
CEditEffect* pCombinedPT = Get_PartObject<CEditEffect>("CombinedPT");
|
||||
|
||||
pCharge_Goo->Set_Visible(true);
|
||||
pCombinedPT->Set_Visible(true);
|
||||
|
||||
/* 초기 객체 위치 초기화*/
|
||||
|
||||
_vector vOwnerPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_Position();
|
||||
|
||||
|
||||
pCharge_Goo->Get_Component<CTransform>()->Set_State(STATE::POSITION, vOwnerPos);
|
||||
pCombinedPT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vOwnerPos);
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Charge::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Charge::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CRanrok_Charge* CRanrok_Charge::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CRanrok_Charge* pInstance = new CRanrok_Charge(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CRanrok_Charge");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CRanrok_Charge::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CRanrok_Charge* pInstance = new CRanrok_Charge(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CRanrok_Charge");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CRanrok_Charge::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
if (m_bHit == false)
|
||||
return;
|
||||
|
||||
ON_COLLISION_INFO CollisionDesc = *static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
_vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Charge::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pInfoInstance);
|
||||
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CRanrok_Charge::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CRanrok_Charge::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,208 @@
|
||||
#include "pch.h"
|
||||
#include "Ranrok_Pulse.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EditEffect.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CRanrok_Pulse::CRanrok_Pulse(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CRanrok_Pulse::CRanrok_Pulse(const CRanrok_Pulse& rhs)
|
||||
: CEffect_Container(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
SAFE_ADDREF(m_pInfoInstance);
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Pulse::Initialize_Prototype()
|
||||
{
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Pulse::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokPulse")))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"RanrokPulse";
|
||||
|
||||
|
||||
|
||||
m_fDuration = 15.f;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrok_Pulse::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Pulse::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Pulse::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Pulse::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
/* 초기 객체 비지블*/
|
||||
|
||||
CEditEffect* pBottomDecal = Get_PartObject<CEditEffect>("Bottom_Decal");
|
||||
CEditEffect* pBottomSplatter = Get_PartObject<CEditEffect>("BottomSplatter");
|
||||
CEditEffect* pBottomSplatter2 = Get_PartObject<CEditEffect>("BottomSplatter2");
|
||||
CEditEffect* pRed_Sphere = Get_PartObject<CEditEffect>("Red_Sphere");
|
||||
CEditEffect* pRock_PT = Get_PartObject<CEditEffect>("Rock_PT");
|
||||
CEditEffect* pSmoke = Get_PartObject<CEditEffect>("Smoke");
|
||||
|
||||
pBottomDecal->Set_Visible(true);
|
||||
pBottomSplatter->Set_Visible(true);
|
||||
pBottomSplatter2->Set_Visible(true);
|
||||
pRock_PT->Set_Visible(true);
|
||||
pSmoke->Set_Visible(true);
|
||||
|
||||
pRed_Sphere->Set_Visible(true);
|
||||
|
||||
|
||||
/* 초기 객체 위치 초기화*/
|
||||
|
||||
_vector vOwnerPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_Position();
|
||||
|
||||
pRed_Sphere->Get_Component<CTransform>()->Set_WorldMatrix(m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix());
|
||||
pRed_Sphere->Get_Component<CTransform>()->Set_State(STATE::POSITION, vOwnerPos);
|
||||
|
||||
CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first;
|
||||
|
||||
if (pPlayer == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
_vector vPlayer_FootPos = pPlayer->Get_Component<CCharacter_Controller>()->Get_FootPosition();
|
||||
|
||||
XMStoreFloat4(&m_vTargetPos, vPlayer_FootPos);
|
||||
|
||||
_vector vCompute_Pos = XMVectorSetY(vOwnerPos, XMVectorGetY(vPlayer_FootPos));
|
||||
|
||||
pBottomDecal->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
|
||||
pBottomSplatter->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
|
||||
pBottomSplatter2->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
|
||||
pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
|
||||
pSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Pulse::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Pulse::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CRanrok_Pulse* CRanrok_Pulse::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CRanrok_Pulse* pInstance = new CRanrok_Pulse(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CRanrok_Pulse");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CRanrok_Pulse::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CRanrok_Pulse* pInstance = new CRanrok_Pulse(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CRanrok_Pulse");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CRanrok_Pulse::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
if (m_bHit == false)
|
||||
return;
|
||||
|
||||
ON_COLLISION_INFO CollisionDesc = *static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
_vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Pulse::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pInfoInstance);
|
||||
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CRanrok_Pulse::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CRanrok_Pulse::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -303,9 +303,14 @@ void CRanrok::Behavior_FireBreathEnter()
|
||||
m_bLookAt = true;
|
||||
},0.95f);
|
||||
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::FIREBREATH_A].first,
|
||||
[this]() {
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this);
|
||||
|
||||
_float fBreathTime = 1.f;
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this , &fBreathTime);
|
||||
|
||||
}, 0.1f);
|
||||
|
||||
}
|
||||
@@ -368,7 +373,11 @@ void CRanrok::Behavior_FireSweepEnter()
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::FIRESWEEP_A].first,
|
||||
[this]() {
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this);
|
||||
|
||||
_float fBreathTime = 3.f;
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &fBreathTime);
|
||||
|
||||
}, 0.08f);
|
||||
}
|
||||
else if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND))
|
||||
@@ -622,9 +631,17 @@ void CRanrok::Behavior_PulseEnter()
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::PULSE)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::PULSE)];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
/*Add_Event(pairAnimInfo.first,
|
||||
[this]() { CameraShake(10.f, 2.f, 5.f, 1.2f); },
|
||||
0.39f);*/
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_CHARGE, this);
|
||||
}, 0.f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_PURSE, this);
|
||||
},0.39f);
|
||||
}
|
||||
|
||||
HRESULT CRanrok::Behavior_PulseExitCheck(_float fTimeDelta)
|
||||
|
||||
@@ -65,7 +65,7 @@ HRESULT CTroll::Initialize(void* pArg)
|
||||
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(3.f, 5.f, -20.f, 1.f));
|
||||
|
||||
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>();
|
||||
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Z_Layer_EffectPool"))->Get_Object<CEffectPool>();
|
||||
SAFE_ADDREF(m_pEffectPool);
|
||||
|
||||
m_pLeftHand_BoneMat = m_pModelCom->Get_BoneMatrixPtr("LeftHand");
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace Editor
|
||||
FLAGWAVE, BROOMCIRCLE,
|
||||
ENEMY_DETECTION, INTERACTION_OBJECT, INTERACTION_NPC, 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, DEPTH_STOP, WB_CULLING, SCREEN_FX , DISTORTION , NONPOS , NONPOS_BLUR, BLUR_MESH, BLUR_CULLING , BLUR_CULLING_NO_EMISSIVE, BLOOM_CULLING , DEFAULT_NONPOS , NONWB_NONPOS, DECAL, DECAL_WB, DECAL_BLUR, 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, DEPTH_STOP, WB_CULLING, SCREEN_FX , DISTORTION , NONPOS , NONPOS_BLUR, BLUR_MESH, BLUR_CULLING , BLUR_CULLING_NO_EMISSIVE, BLOOM_CULLING , DEFAULT_NONPOS , NONWB_NONPOS, DECAL, DECAL_WB, DECAL_BLUR, BLEND_CULLING, END};
|
||||
|
||||
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, SPELL_LOCK, QUEST_SLOT, END };
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace Editor
|
||||
JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE,
|
||||
|
||||
STUN,
|
||||
TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, BLINK, RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT,
|
||||
TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, BLINK, RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE,
|
||||
END
|
||||
};
|
||||
|
||||
|
||||
@@ -307,7 +307,7 @@ class CEffectObject abstract : public CPartObject
|
||||
_string m_strModelName = {};
|
||||
_string m_strEmissiveName = {};
|
||||
_string m_strDistortionName = {};
|
||||
_string m_strNomalMapName = {};
|
||||
_string m_strNormalMapName = {};
|
||||
|
||||
_string m_strPath = {};
|
||||
_string m_strName = {};
|
||||
|
||||
@@ -30,6 +30,8 @@ class CRanrok_Breath final : public CEffect_Container
|
||||
HRESULT Ready_Child();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
void Set_BreathTime(_float fTime);
|
||||
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
#pragma once
|
||||
|
||||
#include "Editor_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
class CRanrok_Charge final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CRanrok_Charge(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CRanrok_Charge(const CRanrok_Charge& rhs);
|
||||
virtual ~CRanrok_Charge() = 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:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
_bool m_isParticleEnd = {};
|
||||
|
||||
_float3 m_vLook = {};
|
||||
_float m_fLinearSpeed = 0.8f;
|
||||
|
||||
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
|
||||
_float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f };
|
||||
private:
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
public:
|
||||
static CRanrok_Charge* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // DEBUG
|
||||
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,55 @@
|
||||
#pragma once
|
||||
|
||||
#include "Editor_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
class CRanrok_Pulse final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CRanrok_Pulse(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CRanrok_Pulse(const CRanrok_Pulse& rhs);
|
||||
virtual ~CRanrok_Pulse() = 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:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
|
||||
_float3 m_vLook = {};
|
||||
_float m_fLinearSpeed = 0.8f;
|
||||
|
||||
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
|
||||
_float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f };
|
||||
private:
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
public:
|
||||
static CRanrok_Pulse* 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
|
||||
@@ -59,6 +59,11 @@ struct ParticleValue
|
||||
float3 vWolrdOffset;
|
||||
float fLoopCount; /* 현재 몇번째 루프중인지 */
|
||||
|
||||
float fRoundRangeLength;
|
||||
float fAzimuthAngle;
|
||||
float fPolarAngle;
|
||||
float fRoundLengthLerpSpeed;
|
||||
|
||||
row_major matrix PreWorldMatrix;
|
||||
row_major matrix LocalMatrixInv;
|
||||
};
|
||||
@@ -99,7 +104,7 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐
|
||||
bool isNoResetTime;
|
||||
bool isLocal_Located_Not_TakeDelay;
|
||||
bool isCompute_LocalInverse;
|
||||
bool isPadding2;
|
||||
bool isRoundLengthLerp;
|
||||
|
||||
float fTimeDelta;
|
||||
float fSizeLerpOption; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다.
|
||||
@@ -160,6 +165,7 @@ void CS_MAIN(
|
||||
|
||||
if (isNoPos)
|
||||
{
|
||||
|
||||
particle.vTranslation.xyz += WorldMatrix[3].xyz;
|
||||
|
||||
/* 월드 오프셋 */
|
||||
@@ -170,6 +176,21 @@ void CS_MAIN(
|
||||
}
|
||||
}
|
||||
|
||||
if (isRoundLengthLerp == true)
|
||||
{
|
||||
if (particleValue.vDelay.x < particleValue.vDelay.y)
|
||||
{
|
||||
float3 vRoundRange = float3(
|
||||
particleValue.fRoundRangeLength * cos(particleValue.fAzimuthAngle) * sin(particleValue.fPolarAngle),
|
||||
particleValue.fRoundRangeLength * sin(particleValue.fAzimuthAngle) * sin(particleValue.fPolarAngle),
|
||||
particleValue.fRoundRangeLength * cos(particleValue.fPolarAngle));
|
||||
|
||||
|
||||
particleValue.vOriginTranslation.xyz += particleValue.fRoundLengthLerpSpeed * vRoundRange * fTimeDelta;
|
||||
particle.vTranslation.xyz += particleValue.fRoundLengthLerpSpeed * vRoundRange * fTimeDelta;
|
||||
|
||||
}
|
||||
}
|
||||
particleValue.vDelay.x += fTimeDelta;
|
||||
|
||||
if (particleValue.vDelay.x < particleValue.vDelay.y)
|
||||
@@ -271,6 +292,7 @@ void CS_MAIN(
|
||||
return ;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (isDrop == true)
|
||||
{
|
||||
|
||||
@@ -51,6 +51,7 @@ HRESULT CComputeShader::Initialize_Prototype(const _tchar* pShaderFilePath, cons
|
||||
#else
|
||||
HLSLFlags = D3DCOMPILE_OPTIMIZATION_LEVEL1;
|
||||
#endif // _DEBUG
|
||||
ID3DBlob* pErrorBlob = nullptr;
|
||||
|
||||
HRESULT hr = D3DCompileFromFile(pShaderFilePath,
|
||||
nullptr,
|
||||
@@ -60,7 +61,18 @@ HRESULT CComputeShader::Initialize_Prototype(const _tchar* pShaderFilePath, cons
|
||||
HLSLFlags,
|
||||
0,
|
||||
&m_pCSBlob,
|
||||
nullptr);
|
||||
&pErrorBlob);
|
||||
|
||||
if (FAILED(hr))
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
|
||||
if (pErrorBlob)
|
||||
OutputDebugStringA((char*)pErrorBlob->GetBufferPointer());
|
||||
#endif // DEBUG
|
||||
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -581,18 +581,17 @@ void CInstance_Model::Compute_CS(_float fTimeDelta)
|
||||
pDesc->isNoResetTime = m_InstanceDesc.isNoResetTime;
|
||||
pDesc->isLocal_Located_Not_TakeDelay = m_InstanceDesc.isLocal_Located_Not_TakeDelay;
|
||||
pDesc->isCompute_LocalInverse = m_InstanceDesc.isCompute_LocalInverse;
|
||||
|
||||
|
||||
pDesc->WorldMatrix = *m_pOwner->Get_Component<CTransform>()->Get_WorldMatrixPtr();
|
||||
pDesc->isRoundLengthLerp = m_InstanceDesc.isRoundLengthLerp;
|
||||
|
||||
pDesc->fSizeLerpOption = m_InstanceDesc.fSizeLerpOption;
|
||||
pDesc->fMoveLerpOption = m_InstanceDesc.fMoveLerpOption;
|
||||
|
||||
pDesc->ViewMatrix = *m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW);
|
||||
pDesc->ProjMatrix = *m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ);
|
||||
pDesc->fFar = *m_pGameInstance->Get_CurrentCameraFar();
|
||||
pDesc->vScreenSize = m_pGameInstance->Get_ViewPortSize();
|
||||
|
||||
|
||||
memcpy(&pDesc->WorldMatrix, m_pOwner->Get_Component<CTransform>()->Get_WorldMatrixPtr(), sizeof(_float4x4));
|
||||
memcpy(&pDesc->ViewMatrix, m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW), sizeof(_float4x4));
|
||||
memcpy(&pDesc->ProjMatrix, m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ), sizeof(_float4x4));
|
||||
|
||||
m_pContext->Unmap(m_pConstantBuffer, 0);
|
||||
}
|
||||
@@ -697,6 +696,12 @@ void CInstance_Model::Instane_Buffer_ReStruct()
|
||||
+ fRoundRange * cosf(XMConvertToRadians(fPolarAngle)),
|
||||
1.f);
|
||||
|
||||
|
||||
pParticleValues[i].fRoundRangeLength = fRoundRange;
|
||||
pParticleValues[i].fAzimuthAngle = XMConvertToRadians(fAzimuthAngle);
|
||||
pParticleValues[i].fPolarAngle = XMConvertToRadians(fPolarAngle);
|
||||
pParticleValues[i].fRoundLengthLerpSpeed = m_InstanceDesc.fRoundLengthLerpSpeed;
|
||||
|
||||
|
||||
_float3 vSinAmount = _float3(
|
||||
m_pGameInstance->Random_Float(m_InstanceDesc.vSinMinAmount.x, m_InstanceDesc.vSinMaxAmount.x),
|
||||
@@ -922,7 +927,6 @@ void CInstance_Model::Describe_Entity()
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (GUI::TreeNode("Transform"))
|
||||
{
|
||||
|
||||
@@ -956,6 +960,7 @@ void CInstance_Model::Describe_Entity()
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
|
||||
if (GUI::DragFloat2("RoundRangeLength", reinterpret_cast<_float*>(&m_InstanceDesc.vRoundRangeLength)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
@@ -971,6 +976,7 @@ void CInstance_Model::Describe_Entity()
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
|
||||
if (GUI::DragFloat3("WolrdOffsetMin", reinterpret_cast<_float*>(&m_InstanceDesc.vWolrdOffsetMin)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
@@ -981,6 +987,40 @@ void CInstance_Model::Describe_Entity()
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
|
||||
if (GUI::TreeNode("Round Range"))
|
||||
{
|
||||
|
||||
|
||||
if (ImGui::DragFloat2("RoundRangeLength", reinterpret_cast<_float*>(&m_InstanceDesc.vRoundRangeLength)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat2("AzimuthAngle", reinterpret_cast<_float*>(&m_InstanceDesc.vAzimuthAngle)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat2("PolarAngle", reinterpret_cast<_float*>(&m_InstanceDesc.vPolarAngle)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (GUI::Checkbox("RoundLengthLerp", &m_InstanceDesc.isRoundLengthLerp))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
|
||||
if (ImGui::DragFloat("fRoundLengthLerpSpeed", reinterpret_cast<_float*>(&m_InstanceDesc.fRoundLengthLerpSpeed)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
|
||||
@@ -307,6 +307,7 @@ void CRenderer::Render_NonBlend()
|
||||
COMPUTE_TIMEDELTA("Timer_Render_NonBlend");
|
||||
EVENTSCOPE_("Render_NonBlend");
|
||||
m_eType = RENDER::NONBLEND;
|
||||
|
||||
if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_GameObjects")))) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -78,15 +78,15 @@ class ENGINE_DLL CInstance_Model final : public CComponent
|
||||
_bool isNoResetTime = {};
|
||||
_bool isLocal_Located_Not_TakeDelay = {};
|
||||
_bool isCompute_LocalInverse = {};
|
||||
_bool isPadding3 = {};
|
||||
_bool isRoundLengthLerp = {};
|
||||
|
||||
_float fTimeMult = { 1.f };
|
||||
_float2 vRoundRangeLength = {};
|
||||
_float2 vAzimuthAngle = {};
|
||||
_float2 vPolarAngle = {};
|
||||
_float fRoundLengthLerpSpeed = {};
|
||||
|
||||
|
||||
_float4 vPadding6 = {};
|
||||
_float3 vPadding6 = {};
|
||||
|
||||
_bool isRandomAniIndex = {};
|
||||
_bool isMoveUp = {};
|
||||
@@ -193,7 +193,7 @@ class ENGINE_DLL CInstance_Model final : public CComponent
|
||||
_int isNoResetTime = {};
|
||||
_int isLocal_Located_Not_TakeDelay = {};
|
||||
_int isCompute_LocalInverse = {};
|
||||
_int isPadding2 = {};
|
||||
_int isRoundLengthLerp = {};
|
||||
|
||||
_float fTimeDelta = {};
|
||||
_float fSizeLerpOption = {};
|
||||
@@ -254,6 +254,11 @@ class ENGINE_DLL CInstance_Model final : public CComponent
|
||||
_float3 vWolrdOffset = {};
|
||||
_float fLoopCount = {};
|
||||
|
||||
_float fRoundRangeLength = {};
|
||||
_float fAzimuthAngle = {};
|
||||
_float fPolarAngle = {};
|
||||
_float fRoundLengthLerpSpeed = {};
|
||||
|
||||
_float4x4 PreWorldMatrix = {};
|
||||
_float4x4 LocalMatrixInv = {};
|
||||
|
||||
|
||||