diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index 3e16ba5c2..d8f71cef4 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -166,6 +166,7 @@ call Update_Resources.bat
+
@@ -405,6 +406,7 @@ call Update_Resources.bat
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index 0bf8d8c8c..c797d2741 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -722,6 +722,9 @@
04.Mechanic\State\State_Combat\State_FireBall
+
+ 02.GameObjects\Effect\MonsterEffect\Ranrok
+
02.GameObjects\UI\NPCInteraction
@@ -1512,6 +1515,9 @@
{93545681-c4c5-4a6a-9496-7b2e7b8a9302}
+
+ {087ad9ea-445d-4bf7-8ec4-0f29a0c2dd53}
+
{09764279-bf54-48e4-853a-45b5a65c92a7}
@@ -2199,6 +2205,9 @@
02.GameObjects\PhysX\CallBack\HitReport\Monster\Ranrok
+
+ 02.GameObjects\Effect\MonsterEffect\Ranrok
+
02.GameObjects\UI\NPCInteraction
diff --git a/Jusin154_Team3D/Client/Private/EffectObject.cpp b/Jusin154_Team3D/Client/Private/EffectObject.cpp
index 9602254e7..22b4c592b 100644
--- a/Jusin154_Team3D/Client/Private/EffectObject.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectObject.cpp
@@ -365,6 +365,22 @@ HRESULT CEffectObject::Load(CEffect_Container::EFFECT_SAVE_INFO EffectSaveInfo,
}
}
+ if (m_EffectInfo.isNomalMap)
+ {
+
+ m_strNomalMapName = EffectSaveInfo.wstrNomalName;;
+
+ if (m_strDistortionName.length() > 0)
+ {
+ if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strNomalMapName,
+ reinterpret_cast(&m_pNormal_TextureCom))))
+ {
+
+ return E_FAIL;
+ }
+ }
+ }
+
m_strModelName = EffectSaveInfo.wstrModelName;
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strModelName,
@@ -627,6 +643,38 @@ HRESULT CEffectObject::Load(const _char* pFilePath, LEVEL eLevel)
}
+ }
+
+
+ if (m_EffectInfo.isNomalMap)
+ {
+ size_t iComponentLength = {};
+
+ if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
+ CloseHandle(hFile);
+ return E_FAIL;
+ }
+
+ if (iComponentLength != 0)
+ {
+ _char szName[MAX_PATH] = {};
+
+ if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
+ CloseHandle(hFile);
+ return E_FAIL;
+ }
+
+ m_strNomalMapName = CMyTools::ToWstring(szName);
+
+ if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strNomalMapName,
+ reinterpret_cast(&m_pNormal_TextureCom))))
+ {
+ CloseHandle(hFile);
+ return E_FAIL;
+ }
+ }
+
+
}
size_t iComponentLength = {};
@@ -719,7 +767,7 @@ HRESULT CEffectObject::Bind_ShaderResources()
}
- if (m_EffectInfo.isMotionBlur == true)
+ if (m_EffectInfo.isMotionBlur == true || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DEFAULT)
{
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
@@ -1053,7 +1101,22 @@ HRESULT CEffectObject::Bind_ShaderResources()
}
}
+ if (m_pNormal_TextureCom != nullptr)
+ {
+ if (FAILED(m_pShaderCom->Bind_SRV("g_NormalTexture", m_pNormal_TextureCom->Get_SRV(0)))) {
+ return E_FAIL;
+ }
+ _float fUsingSurfaceParams = MRO_PARAMETER;
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fUsingSurfaceParams", &fUsingSurfaceParams, sizeof(_float))))
+ return E_FAIL;
+
+ if (FAILED(m_pShaderCom->Bind_SRV("g_SurfaceParamsTexture", m_pSurface_TextureCom->Get_SRV(0)))) {
+ return E_FAIL;
+ }
+
+ }
return S_OK;
@@ -1106,6 +1169,8 @@ void CEffectObject::Free()
SAFE_RELEASE(m_pDissolve_TextureCom);
SAFE_RELEASE(m_pEmissive_TextureCom);
SAFE_RELEASE(m_pDistortion_TextureCom);
+ SAFE_RELEASE(m_pNormal_TextureCom);
+ SAFE_RELEASE(m_pSurface_TextureCom);
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pInstance_ModelCom);
diff --git a/Jusin154_Team3D/Client/Private/EffectParts.cpp b/Jusin154_Team3D/Client/Private/EffectParts.cpp
index f5f093cda..6243eced9 100644
--- a/Jusin154_Team3D/Client/Private/EffectParts.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectParts.cpp
@@ -119,6 +119,12 @@ HRESULT CEffectParts::Ready_Components(void* pArg)
{
return E_FAIL;
}
+
+
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Base_MRO"),
+ reinterpret_cast(&m_pSurface_TextureCom))))
+ return E_FAIL;
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp
index 80bf9a228..b354ace1f 100644
--- a/Jusin154_Team3D/Client/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp
@@ -42,7 +42,7 @@
#include "Blink.h"
#include "Transformation.h"
#include "Avadakedavra.h"
-
+#include "Ranrok_FireBall.h"
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject(pDevice, pContext)
@@ -560,6 +560,17 @@ HRESULT CEffectPool::Ready_MonsterEffect()
))) return E_FAIL;
+ if (FAILED(Create_Effect(SKILL_TYPE::RANROK_FIREBALL, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CRanrok_FireBall* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+
+ ))) return E_FAIL;
+
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Effect_Container.cpp b/Jusin154_Team3D/Client/Private/Effect_Container.cpp
index 4e3d4b1c1..592b01ed1 100644
--- a/Jusin154_Team3D/Client/Private/Effect_Container.cpp
+++ b/Jusin154_Team3D/Client/Private/Effect_Container.cpp
@@ -347,6 +347,30 @@ HRESULT CEffect_Container::Load_Data(const _char* pPath)
}
+ }
+
+ if (EffectSaveInfo.EffectInfo.isNomalMap)
+ {
+ size_t iComponentLength = {};
+
+ if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
+ CloseHandle(hFile);
+ return E_FAIL;
+ }
+
+ if (iComponentLength != 0)
+ {
+ _char szName[MAX_PATH] = {};
+
+ if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
+ CloseHandle(hFile);
+ return E_FAIL;
+ }
+
+ EffectSaveInfo.wstrNomalName = CMyTools::ToWstring(szName);
+ }
+
+
}
size_t iComponentLength = {};
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 25b4bb657..e0c63ca4a 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -180,6 +180,7 @@
#include "Mage_Down_Attack.h"
#include "Mage_Nomal_Attack.h"
#include "MageSide.h"
+#include "Ranrok_FireBall.h"
#include "StunEffect.h"
#include "Box_Splesh.h"
@@ -1419,6 +1420,11 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Base_MRO"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("C:/MeshTable/Game/Environment//MasterMaterials/BaseTextures/T_Base011_MRO.dds"), 0)))) {
+ return E_FAIL;
+ }
+
#pragma region EFFECT
Asset_FileLoad("../Bin/Resources/Textures/Effect/Trails", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
@@ -1981,6 +1987,10 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRanrok_FireBall::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CGoblin_Teleport::Create(m_pDevice, m_pContext)))) {
diff --git a/Jusin154_Team3D/Client/Private/Mage_Nomal_Attack.cpp b/Jusin154_Team3D/Client/Private/Mage_Nomal_Attack.cpp
index 810b37b30..9f62d6027 100644
--- a/Jusin154_Team3D/Client/Private/Mage_Nomal_Attack.cpp
+++ b/Jusin154_Team3D/Client/Private/Mage_Nomal_Attack.cpp
@@ -21,8 +21,6 @@ CMage_Nomal_Attack::CMage_Nomal_Attack(const CMage_Nomal_Attack& rhs)
HRESULT CMage_Nomal_Attack::Initialize_Prototype()
{
-
-
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinMage/NomalAttack")))
return E_FAIL;
diff --git a/Jusin154_Team3D/Client/Private/Ranrok.cpp b/Jusin154_Team3D/Client/Private/Ranrok.cpp
index b8c5d5256..741617bc3 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok.cpp
@@ -62,8 +62,8 @@ 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();
- //SAFE_ADDREF(m_pEffectPool);
+ m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object();
+ SAFE_ADDREF(m_pEffectPool);
if (NEXT_LEVEL == ENUM_CLASS(LEVEL::FIELD))
{
@@ -646,7 +646,7 @@ void CRanrok::Free()
SAFE_RELEASE(m_pCharacter_Controller);
SAFE_RELEASE(m_pRigidBody);
- //SAFE_RELEASE(m_pEffectPool);
+ SAFE_RELEASE(m_pEffectPool);
Safe_Delete(m_pCallBack_Behavior);
Safe_Delete(m_pCallBack_HitReport);
}
diff --git a/Jusin154_Team3D/Client/Private/Ranrok_FireBall.cpp b/Jusin154_Team3D/Client/Private/Ranrok_FireBall.cpp
new file mode 100644
index 000000000..503b3d11e
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Ranrok_FireBall.cpp
@@ -0,0 +1,249 @@
+#include "pch.h"
+#include "Ranrok_FireBall.h"
+
+#include "GameInstance.h"
+#include "EffectParts.h"
+#include "Wand.h"
+#include "Player.h"
+#include "InfoInstance.h"
+
+CRanrok_FireBall::CRanrok_FireBall(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CRanrok_FireBall::CRanrok_FireBall(const CRanrok_FireBall& rhs)
+ : CEffect_Container(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+ SAFE_ADDREF(m_pInfoInstance);
+}
+
+HRESULT CRanrok_FireBall::Initialize_Prototype()
+{
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokFireBall")))
+ return E_FAIL;
+
+ return S_OK;
+
+}
+
+HRESULT CRanrok_FireBall::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"RanrokFireBall";
+
+
+ m_pFireBall = Get_PartObject("FireBall");
+ m_pFireBall_PT = Get_PartObject("FireBall_PT");
+ m_pFireBall_Surface = Get_PartObject("FireBall_Surface");
+ m_pFireBall_Tail = Get_PartObject("FireBall_Tail");
+
+ SAFE_ADDREF(m_pFireBall);
+ SAFE_ADDREF(m_pFireBall_PT);
+ SAFE_ADDREF(m_pFireBall_Surface);
+ SAFE_ADDREF(m_pFireBall_Tail);
+
+ m_fDuration = 3.2f;
+
+
+ return S_OK;
+}
+
+void CRanrok_FireBall::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+ XMStoreFloat4(&m_vStartPos, m_pFireBall->Get_WorldPostion());
+}
+
+void CRanrok_FireBall::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+
+ m_pFireBall->Get_Component()->Translation(XMLoadFloat3(&m_vLook) * m_fLinearSpeed);
+ m_pFireBall_PT->Get_Component()->Translation(XMLoadFloat3(&m_vLook) * m_fLinearSpeed);
+ m_pFireBall_Surface->Get_Component()->Translation(XMLoadFloat3(&m_vLook) * m_fLinearSpeed);
+ m_pFireBall_Tail->Get_Component()->Translation(XMLoadFloat3(&m_vLook) * m_fLinearSpeed);
+
+ if (false == m_bHit) {
+ _vector vStartPos = XMLoadFloat4(&m_vStartPos);
+ _vector vEndPos = m_pFireBall->Get_WorldPostion();
+ ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.2f , true);
+
+ OnCollision(this, &CollisionInfo);
+ }
+
+}
+
+void CRanrok_FireBall::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CRanrok_FireBall::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject, nullptr)))
+ return E_FAIL;
+
+
+ /* 초기 객체 비지블*/
+ m_pFireBall->Set_Visible(true);
+ m_pFireBall_PT->Set_Visible(true);
+ m_pFireBall_Surface->Set_Visible(true);
+ m_pFireBall_Tail->Set_Visible(true);
+
+ /* 초기 객체 위치 초기화*/
+
+ _matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component()->Get_BoneMatrixPtr("tongue_01_end"));
+
+ for (int i = 0; i < 3; ++i) {
+ BoneMat.r[i] = XMVector3Normalize(BoneMat.r[i]);
+ }
+
+ _matrix WorldMat = m_pOwner->Get_Component()->Get_XMWorldMatrix();
+
+ _matrix CombinedMat = BoneMat * WorldMat;
+
+ _vector vStartPos = CombinedMat.r[3];
+
+ XMStoreFloat4(&m_vStartPos, vStartPos);
+
+ m_pFireBall->Get_Component()->Set_State(STATE::POSITION, vStartPos);
+ m_pFireBall_PT->Get_Component()->Set_State(STATE::POSITION, vStartPos);
+ m_pFireBall_Surface->Get_Component()->Set_State(STATE::POSITION, vStartPos);
+ m_pFireBall_Tail->Get_Component()->Set_State(STATE::POSITION, vStartPos);
+
+
+ /* 플레이어 위치 받기 */
+ CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first;
+
+ if (pPlayer == nullptr)
+ return E_FAIL;
+
+ /* 초기 방향 */
+ XMStoreFloat4(&m_vTargetPos, pPlayer->Get_Component()->Get_Position());
+ XMStoreFloat3(&m_vLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos)));
+
+
+ return S_OK;
+}
+
+HRESULT CRanrok_FireBall::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CRanrok_FireBall::Ready_Child()
+{
+ return S_OK;
+}
+
+CRanrok_FireBall* CRanrok_FireBall::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CRanrok_FireBall* pInstance = new CRanrok_FireBall(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CRanrok_FireBall");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CRanrok_FireBall::Clone(void* pArg, CGameObject* pOwner)
+{
+ CRanrok_FireBall* pInstance = new CRanrok_FireBall(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CRanrok_FireBall");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CRanrok_FireBall::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ if (m_bHit == false)
+ return;
+
+ ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc);
+
+ _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
+
+
+ for (auto& pPair : m_PartObjects)
+ {
+ pPair.second->Set_Visible(true);
+ pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos);
+ }
+
+
+ m_pFireBall->Set_Visible(false);
+ m_pFireBall_Surface->Set_Visible(false);
+
+ m_pFireBall_Tail->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
+ m_pFireBall_PT->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
+
+ CPlayer* pPlayer = static_cast(m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first);
+
+
+ if (pPlayer == nullptr)
+ return;
+
+ pPlayer->Start_CameraShake(0.3f, 2.f);
+
+}
+
+void CRanrok_FireBall::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pInfoInstance);
+
+ SAFE_RELEASE(m_pFireBall);
+ SAFE_RELEASE(m_pFireBall_PT);
+ SAFE_RELEASE(m_pFireBall_Surface);
+ SAFE_RELEASE(m_pFireBall_Tail);
+}
+#ifdef _DEBUG
+void CRanrok_FireBall::Describe_Entity()
+{
+
+}
+#endif
+
+HRESULT CRanrok_FireBall::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
index 53f3b6b46..fdb96edfb 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
@@ -404,6 +404,12 @@ void CRanrok::Behavior_FireBallEnter()
pairAnimInfo = m_Animation[STATEANIM::FIREBALL2_A];
break;
}
+
+ Add_Event(pairAnimInfo.first,
+ [this]() {
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_FIREBALL, this);
+ }, 0.1f);
+
}
else if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND))
{
diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h
index b64e91425..8f26c2cde 100644
--- a/Jusin154_Team3D/Client/Public/Client_Enum.h
+++ b/Jusin154_Team3D/Client/Public/Client_Enum.h
@@ -67,6 +67,11 @@ namespace Client
/*고블린 메이지*/
GOBLIN_MAGE_ATTACK , GOBLIN_MAGE_DOWN , GOBLIN_MAGE_SIDE,
+
+ /*란록*/
+
+ RANROK_FIREBALL,
+
END
};
diff --git a/Jusin154_Team3D/Client/Public/Client_Struct.h b/Jusin154_Team3D/Client/Public/Client_Struct.h
index 368278850..f9237447a 100644
--- a/Jusin154_Team3D/Client/Public/Client_Struct.h
+++ b/Jusin154_Team3D/Client/Public/Client_Struct.h
@@ -203,10 +203,10 @@ namespace Client
_float2 vDissolveUVGainAmount = {};
_bool isDissolveMove = {};
- _float3 vDissolveValue = {};
+ _float3 vDissolveValue = {}; /* Soft Mask , Cut Ratio*/
_float fModelDistortIntensity = {};
- _float vPadding0 = {};
+ _float fPadding0 = {};
_float fLightDeley = {};
_float fLightIntensity = {};
@@ -233,7 +233,11 @@ namespace Client
_bool isDiffuse_B = {};
_bool isBlurColor = {};
- _float vPadding4 = {};
+ _bool isBlurDissolve = {};
+ _bool isNomalMap = {};
+ _bool isPadding2 = {};
+ _bool isPadding3 = {};
+
_float4 vPadding5 = {};
_bool isRimLight = {};
diff --git a/Jusin154_Team3D/Client/Public/EffectObject.h b/Jusin154_Team3D/Client/Public/EffectObject.h
index 422d740b8..b4032a504 100644
--- a/Jusin154_Team3D/Client/Public/EffectObject.h
+++ b/Jusin154_Team3D/Client/Public/EffectObject.h
@@ -48,6 +48,8 @@ class CEffectObject abstract : public CPartObject
CTexture* m_pDissolve_TextureCom = { nullptr };
CTexture* m_pEmissive_TextureCom = { nullptr };
CTexture* m_pDistortion_TextureCom = { nullptr };
+ CTexture* m_pNormal_TextureCom = { nullptr };
+ CTexture* m_pSurface_TextureCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
CLight* m_pLightCom = { nullptr };
@@ -66,6 +68,7 @@ class CEffectObject abstract : public CPartObject
_wstring m_strModelName = {};
_wstring m_strEmissiveName = {};
_wstring m_strDistortionName = {};
+ _wstring m_strNomalMapName = {};
public:
virtual void Free() override;
diff --git a/Jusin154_Team3D/Client/Public/Effect_Container.h b/Jusin154_Team3D/Client/Public/Effect_Container.h
index 6ba718be1..261256e24 100644
--- a/Jusin154_Team3D/Client/Public/Effect_Container.h
+++ b/Jusin154_Team3D/Client/Public/Effect_Container.h
@@ -25,6 +25,7 @@ class CEffect_Container abstract : public CContainerObject
_wstring wstrDissolveName = {};
_wstring wstrEmissiveName = {};
_wstring wstrDistortionName = {};
+ _wstring wstrNomalName = {};
_wstring wstrModelName = {};
_wstring wstrEffectName = {};
diff --git a/Jusin154_Team3D/Client/Public/Ranrok_FireBall.h b/Jusin154_Team3D/Client/Public/Ranrok_FireBall.h
new file mode 100644
index 000000000..e0b8ebde6
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Ranrok_FireBall.h
@@ -0,0 +1,59 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CRanrok_FireBall final : public CEffect_Container
+{
+private:
+ CRanrok_FireBall(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CRanrok_FireBall(const CRanrok_FireBall& rhs);
+ virtual ~CRanrok_FireBall() = 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 = {};
+
+ class CEffectParts* m_pFireBall = { nullptr };
+ class CEffectParts* m_pFireBall_PT = { nullptr };
+ class CEffectParts* m_pFireBall_Surface = { nullptr };
+ class CEffectParts* m_pFireBall_Tail = { nullptr };
+
+ _float3 m_vLook = {};
+ _float m_fLinearSpeed = 0.3f;
+
+ _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_FireBall* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // DEBUG
+
+
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokFireBall.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokFireBall.bin
new file mode 100644
index 000000000..a49d55334
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokFireBall.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:94248c105e920d78f0d0e5806be2b2c2d69c36b61cbc52cc5a5f9e35cad318a2
+size 671
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/RanrokFireBall.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/RanrokFireBall.bin
new file mode 100644
index 000000000..ea828365d
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/RanrokFireBall.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fee4d7cee8de5dbf3d10f48f79b4baac04aaaea16c1f564be81993b345bd59ad
+size 608
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/RanrokFireBall.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/RanrokFireBall.bin
deleted file mode 100644
index 8e7439a49..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/RanrokFireBall.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:2b39761058678a9755d3aa187e87d8e9c4cf4c60bcfa8a48db54d2e4fb547993
-size 300
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/FireBall_Tail.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/FireBall_Tail.bin
new file mode 100644
index 000000000..bab16664f
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/FireBall_Tail.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4505cc2e8886677f93a234959b7570bd4f66dcec8d47ac8c5b1d584a6e1f0bd8
+size 1087
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Breath.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Breath.bin
new file mode 100644
index 000000000..305afb326
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Breath.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:797ae2a0449254d0a20c0f44d00dd5338bee979ab2605889add9023961c392ec
+size 1087
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Black_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Black_Smoke.bin
new file mode 100644
index 000000000..d3a39ccc9
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Black_Smoke.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6e8bb46e911f9de6427e47cceb990919608a0c731071b3b723afa96ca839e2c0
+size 1077
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/FireBall.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/FireBall.bin
index 9f2c43537..7d787bb73 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/FireBall.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/FireBall.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:a24e7a6e4de08530a23655f9d0de604b808456dcccbfed61c1fb4060821d0e52
+oid sha256:17a02ef904a527fde73ce50d7f8db6a53a061387daa8baf8147af158ef969fa9
size 1032
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/FireBall_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/FireBall_PT.bin
index 7566c8696..9c3a55104 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/FireBall_PT.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/FireBall_PT.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:6ae9fbf6b6f9cb4db01ffaeea6b590db83c7d6bfaef8f92f60e59871bfa56125
-size 1138
+oid sha256:08f3ac592de5b3b522cda9543b23e49d9013cf03ae74d83c2351e0e433f6093f
+size 1136
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/FireBall_Ring.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/FireBall_Ring.bin
new file mode 100644
index 000000000..9fa7d3b71
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/FireBall_Ring.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5d9dc42cab92e649b62929e072c46381a883fd92a3524540ef9795ef36012d4f
+size 1076
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/FireBall_Surface.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/FireBall_Surface.bin
index e8023ecdf..f409f16fe 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/FireBall_Surface.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/FireBall_Surface.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:66b4178d5c55c7794852d9c9fd8dbf99ce8bc62493b20c39092a50a7dce9fef0
+oid sha256:2f41cd14f2cd317f28422fb7e0a37a5e503957347bc6da0eaaa422facf55f2b9
size 1027
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/FireBall_Tail.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/FireBall_Tail.bin
deleted file mode 100644
index 0ac02af54..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/FireBall_Tail.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:c413ab3b2d0a161a8e5312524bb0c98c759332356c092e9bfdce31b38dfcae34
-size 1087
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Hit_Effect.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Hit_Effect.bin
index bfe7d56a2..522b1b001 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Hit_Effect.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Hit_Effect.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:bfbc3cfab6833ec29e5c8225339d95b2849d8d0872e3f411c57e5db19d0aff62
+oid sha256:d718e8b7d3a2f94e3caeec07660f5091bfacb9248e3d986dbfcf7328bdd34a40
size 1085
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Hit_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Hit_PT.bin
index ddd0cecf5..861a97148 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Hit_PT.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Hit_PT.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:3a1ff82b443bad94101a2e44c5f30c0cd7d02040908e2bdd61ef98c98a759609
-size 1178
+oid sha256:8dcb25ea6795172f4813716b70663f7a10d033d05c745fa703ce13972792f3e9
+size 1174
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Hit_PT_2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Hit_PT_2.bin
new file mode 100644
index 000000000..a809feb5a
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Hit_PT_2.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b451035db2a86bf2236fa8687c6e506654829f97b0940003a1d50c4e92fa8c39
+size 1174
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Splatter0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/Splatter0.bin
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokFireBall/Splatter0.bin
rename to Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/Splatter0.bin
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Blur.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Blur.hlsl
index bbd7c9266..d160873e0 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Blur.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Blur.hlsl
@@ -4,6 +4,7 @@ matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
Texture2D g_BlurTexture;
Texture2D g_BlurXTexture;
+Texture2D g_BlurYTexture;
float2 g_vResolution;
@@ -79,6 +80,11 @@ struct PS_OUT_BLUR_Y
float4 vBlurY : SV_TARGET0;
};
+struct PS_OUT_COMBINED
+{
+ float4 vBackBuffer : SV_TARGET0;
+};
+
PS_OUT_BLUR_X PS_MAIN_BLUR_X(PS_IN In)
{
PS_OUT_BLUR_X Out;
@@ -120,10 +126,25 @@ PS_OUT_BLUR_Y PS_MAIN_BLUR_Y(PS_IN In)
vColor += g_fWeights_32[i + 15] * g_BlurXTexture.Sample(BorderZeroSampler, vTexcoord);
}
+ Out.vBlurY = vColor;
+
+ return Out;
+}
+
+PS_OUT_COMBINED PS_COMBINED(PS_IN In)
+{
+ PS_OUT_COMBINED Out;
+
+
+ float4 vColor = { 0.f, 0.f, 0.f, 0.f };
+
+
+ vColor = g_BlurYTexture.Sample(DefaultSampler, In.vTexcoord);
+
if (vColor.a <= FLT_EPSILON5)
discard;
- Out.vBlurY = vColor;
+ Out.vBackBuffer = vColor;
return Out;
}
@@ -131,7 +152,7 @@ PS_OUT_BLUR_Y PS_MAIN_BLUR_Y(PS_IN In)
technique11 DefaultTechnique
{
- pass BlurXPass// 4
+ pass BlurXPass// 0
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_None, 0);
@@ -141,7 +162,7 @@ technique11 DefaultTechnique
PixelShader = compile ps_5_0 PS_MAIN_BLUR_X();
}
- pass BlurYPass // 4
+ pass BlurYPass // 1
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_None, 0);
@@ -151,5 +172,14 @@ technique11 DefaultTechnique
PixelShader = compile ps_5_0 PS_MAIN_BLUR_Y();
}
+ pass Combined // 2
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_None, 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_COMBINED();
+ }
}
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl
index 88a4716f1..85a25120b 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl
@@ -404,6 +404,7 @@ PS_OUT PS_MAIN(PS_IN In)
Out.vAlbedo = vMtrlDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
+
float fSurfaceParam = g_fUsingSurfaceParams;
if (true == AlmostEqual7(g_fUsingSurfaceParams, 0.f))
{
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
index 7af357805..60ee87d32 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
@@ -69,10 +69,12 @@ Texture2D g_EmissiveTexture : register(t6);
Texture2D g_DepthStencilTexture : register(t7);
Texture2D g_DistortionTexture : register(t8);
Texture2D g_DepthTexture : register(t9);
+Texture2D g_SurfaceParamsTexture : register(t10);
float4 g_vCamPosition;
float g_fFar;
+float g_fUsingSurfaceParams;
/* 디퓨즈 */
vector g_vColor;
@@ -243,18 +245,41 @@ struct VS_BULR_MESH_OUT
float4 vPrevProjPos : TEXCOORD5;
};
-VS_OUT VS_MAIN(VS_IN In, uint iGPUIndex : SV_InstanceID)
+struct PS_BLUR_MESH_IN
{
- VS_OUT Out = (VS_OUT) 0;
+ float4 vPosition : SV_POSITION;
+ float4 vNormal : NORMAL;
+ float3 vTangent : TANGENT;
+ float3 vBinormal : BINORMAL;
+ float2 vTexcoord : TEXCOORD0;
+ float2 vLifeTime : TEXCOORD1;
+ float4 vWorldPos : TEXCOORD2;
+ float4 vProjPos : TEXCOORD3;
+ uint iGPUIndex : TEXCOORD4;
+ float4 vPrevProjPos : TEXCOORD5;
+};
+
+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);
+ row_major matrix PreTransformMatrix = g_ParticleValue[iGPUIndex].PreWorldMatrix;
+
+
matW = mul(TransformMatrix, g_WorldMatrix);
matWV = mul(matW, g_ViewMatrix);
matWVP = mul(matWV, g_ProjMatrix);
+ matrix matPrevW, matPrevWV, matPrevWVP;
+
+ matPrevW = mul(PreTransformMatrix, g_PrevWorldMatrix);
+ matPrevWV = mul(matPrevW, g_PrevViewMatrix);
+ matPrevWVP = mul(matPrevWV, g_PrevProjMatrix);
+
@@ -269,7 +294,7 @@ VS_OUT VS_MAIN(VS_IN In, uint iGPUIndex : SV_InstanceID)
Out.vWorldPos = mul(vector(In.vPosition, 1.f), matW);
Out.iGPUIndex = iGPUIndex;
Out.vProjPos = vPosition;
-
+ Out.vPrevProjPos = mul(vector(In.vPosition, 1.f), matPrevWVP);
return Out;
}
@@ -390,6 +415,17 @@ struct PS_OUT
float4 vRevealage : SV_TARGET1;
};
+struct PS_NOMAL_OUT
+{
+ float4 vAlbedo : SV_TARGET0;
+ float4 vNormal : SV_TARGET1;
+ float4 vDepth : SV_TARGET2;
+ float4 vColor : SV_Target3;
+ float4 vSurface : SV_Target4;
+ float2 vVelocityUV : SV_TARGET5;
+};
+
+
float4 DrawEffect(PS_IN In)
{
vector vMtrlDiffuse = vector(0.f ,0.f ,0.f ,0.f);
@@ -807,21 +843,56 @@ float4 SoftEffect(PS_IN In, float4 vMtrlDiffuse)
return vDiffuse;
}
-PS_OUT PS_MAIN(PS_IN In)
+
+PS_NOMAL_OUT PS_MAIN(PS_BLUR_MESH_IN In)
{
-
- PS_OUT Out;
+ PS_IN PS_In;
+ PS_NOMAL_OUT Out;
+
+ PS_In.vPosition = In.vPosition;
+ PS_In.vNormal = In.vNormal;
+ PS_In.vTangent = In.vTangent;
+ PS_In.vBinormal = In.vBinormal;
+ PS_In.vTexcoord = In.vTexcoord;
+ PS_In.vLifeTime = In.vLifeTime;
+ PS_In.vWorldPos = In.vWorldPos;
+ PS_In.vProjPos = In.vProjPos;
+ PS_In.iGPUIndex = In.iGPUIndex;
+
vector vMtrlDiffuse;
-
- vMtrlDiffuse = DrawEffect(In);
- vMtrlDiffuse = SoftEffect(In, vMtrlDiffuse);
+ float4 vSurface = g_SurfaceParamsTexture.Sample(DefaultSampler, In.vTexcoord);
+ float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
+
+ float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal.rgb);
+
+ float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
- vMtrlDiffuse.rgb += EmissiveDraw(In, vMtrlDiffuse).rgb;
- vMtrlDiffuse.rgb += RimLight(In).rgb;
-
- Out.vDiffuse = vMtrlDiffuse;
+ float fSurfaceParam = g_fUsingSurfaceParams;
+ if (true == AlmostEqual7(g_fUsingSurfaceParams, 0.f))
+ {
+ fSurfaceParam = 0;
+ }
+
+ vMtrlDiffuse = DrawEffect(PS_In);
+
+ vMtrlDiffuse.rgb += EmissiveDraw(PS_In, vMtrlDiffuse).rgb;
+
+ vMtrlDiffuse += RimLight(PS_In);
+
+ vSurface.b = 0.5f;
+
+ Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
+ Out.vAlbedo = vMtrlDiffuse;
+ Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
+ Out.vSurface = vSurface;
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
+ fSurfaceParam, // 서페이스 파라미터
+ 1.f);
+ Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
+
return Out;
}
@@ -1154,19 +1225,7 @@ PS_BLOOM_OUT PS_DISTORTION(PS_IN In)
-struct PS_BLUR_MESH_IN
-{
- float4 vPosition : SV_POSITION;
- float4 vNormal : NORMAL;
- float3 vTangent : TANGENT;
- float3 vBinormal : BINORMAL;
- float2 vTexcoord : TEXCOORD0;
- float2 vLifeTime : TEXCOORD1;
- float4 vWorldPos : TEXCOORD2;
- float4 vProjPos : TEXCOORD3;
- uint iGPUIndex : TEXCOORD4;
- float4 vPrevProjPos : TEXCOORD5;
-};
+
struct PS_BLUR_MESH_OUT
{
@@ -1217,10 +1276,10 @@ technique11 DefaultTechnique
//0
pass Model
{
- SetRasterizerState(RS_Default);
+ SetRasterizerState(RS_Nocull);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
- VertexShader = compile vs_5_0 VS_MAIN();
+ VertexShader = compile vs_5_0 VS_BLUR_MESH();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_MAIN();
}
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_Env_Icy_Snow_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_Env_Icy_Snow_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_Env_Icy_Snow_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_Env_Icy_Snow_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_BandRibbed01_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_BandRibbed01_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_BandRibbed01_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_BandRibbed01_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_Cloud_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_Cloud_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_Cloud_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_Cloud_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_Distortion_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_Distortion_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_Distortion_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_Distortion_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_Distortion_Ring2_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_Distortion_Ring2_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_Distortion_Ring2_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_Distortion_Ring2_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_Distortion_Ring3_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_Distortion_Ring3_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_Distortion_Ring3_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_Distortion_Ring3_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_Distortion_Ring_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_Distortion_Ring_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_Distortion_Ring_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_Distortion_Ring_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_Fly_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_Fly_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_Fly_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_Fly_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_FracturedRockPiece_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_FracturedRockPiece_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_FracturedRockPiece_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_FracturedRockPiece_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_Straw01_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_Straw01_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_Straw01_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_Straw01_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_Straw02_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_Straw02_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_Straw02_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_Straw02_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_Waterfall_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_Waterfall_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_Waterfall_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_Waterfall_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_grass_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_grass_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_grass_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_grass_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_heat_distortion_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_heat_distortion_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_heat_distortion_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_heat_distortion_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_mud_clumps_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_mud_clumps_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_mud_clumps_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_mud_clumps_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_ripples_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_ripples_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_ripples_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_ripples_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_water_drops_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_water_drops_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_FX_water_drops_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_FX_water_drops_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_VFX_Smoke_01_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_VFX_Smoke_01_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_VFX_Smoke_01_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_VFX_Smoke_01_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_WaterfallFoam_01_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_WaterfallFoam_01_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_WaterfallFoam_01_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_WaterfallFoam_01_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_Web_Net_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_Web_Net_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_Web_Net_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_Web_Net_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_waterSplashA_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_waterSplashA_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/T_waterSplashA_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/T_waterSplashA_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Blood_Goop_01_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Blood_Goop_01_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Blood_Goop_01_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Blood_Goop_01_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Blood_Goop_03_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Blood_Goop_03_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Blood_Goop_03_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Blood_Goop_03_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Blood_Goop_2_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Blood_Goop_2_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Blood_Goop_2_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Blood_Goop_2_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_BoilBubble_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_BoilBubble_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_BoilBubble_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_BoilBubble_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_BoilingRipples_Small_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_BoilingRipples_Small_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_BoilingRipples_Small_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_BoilingRipples_Small_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Burnt_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Burnt_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Burnt_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Burnt_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_ButtSlide_A_HalfRes_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_ButtSlide_A_HalfRes_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_ButtSlide_A_HalfRes_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_ButtSlide_A_HalfRes_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_CausticNoise_C_Seamless_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_CausticNoise_C_Seamless_N.png
new file mode 100644
index 000000000..02056f9e4
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_CausticNoise_C_Seamless_N.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Char_01_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Char_01_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Char_01_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Char_01_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_ChromaticCellNoise_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_ChromaticCellNoise_N.png
new file mode 100644
index 000000000..978a48415
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_ChromaticCellNoise_N.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Cloud_Noise_Tile_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Cloud_Noise_Tile_N.png
new file mode 100644
index 000000000..8971501b9
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Cloud_Noise_Tile_N.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Cloud_SoftWisp_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Cloud_SoftWisp_N.png
new file mode 100644
index 000000000..70ed242c2
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Cloud_SoftWisp_N.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_ConeCurl_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_ConeCurl_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_ConeCurl_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_ConeCurl_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Cone_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Cone_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Cone_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Cone_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_CottonFilling2x2_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_CottonFilling2x2_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_CottonFilling2x2_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_CottonFilling2x2_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Cracks01_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Cracks01_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Cracks01_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Cracks01_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Cracks04_D_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Cracks04_D_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Cracks04_D_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Cracks04_D_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_DIST_NRM2_OLD_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_DIST_NRM2_OLD_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_DIST_NRM2_OLD_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_DIST_NRM2_OLD_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Dementor_Ash_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Dementor_Ash_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Dementor_Ash_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Dementor_Ash_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_DistortionNoise_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_DistortionNoise_N.png
new file mode 100644
index 000000000..1a70cb9e6
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_DistortionNoise_N.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Droplets_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Droplets_N.png
new file mode 100644
index 000000000..130bcf9da
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Droplets_N.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Drops_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Drops_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Drops_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Drops_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Edurus_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Edurus_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Edurus_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Edurus_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_FireballCloud_Noise_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_FireballCloud_Noise_N.png
new file mode 100644
index 000000000..b7efaf028
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_FireballCloud_Noise_N.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_GooSoft_Noise_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_GooSoft_Noise_N.png
new file mode 100644
index 000000000..068e4cce8
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_GooSoft_Noise_N.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Goo_Noise_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Goo_Noise_N.png
new file mode 100644
index 000000000..0ab1cc9b2
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Goo_Noise_N.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Ground_ClumpySnow_2k_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Ground_ClumpySnow_2k_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Ground_ClumpySnow_2k_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Ground_ClumpySnow_2k_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Ground_Ice_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Ground_Ice_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Ground_Ice_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Ground_Ice_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_HeatTile3_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_HeatTile3_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_HeatTile3_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_HeatTile3_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_IceB_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_IceB_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_IceB_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_IceB_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Ice_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Ice_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Ice_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Ice_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_LiquidSplatter_Tiling_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_LiquidSplatter_Tiling_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_LiquidSplatter_Tiling_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_LiquidSplatter_Tiling_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_MarbleSkin_01_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_MarbleSkin_01_N.png
new file mode 100644
index 000000000..e3bb361a7
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_MarbleSkin_01_N.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Mud_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Mud_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Mud_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Mud_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Noise07_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Noise07_N.png
new file mode 100644
index 000000000..3c8c10f0d
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Noise07_N.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Noise09_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Noise09_N.png
new file mode 100644
index 000000000..c04bc6340
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Noise09_N.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Noise_Anisotropic2_height_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Noise_Anisotropic2_height_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Noise_Anisotropic2_height_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Noise_Anisotropic2_height_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Noise_Gchannel_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Noise_Gchannel_N.png
new file mode 100644
index 000000000..1429e2062
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Noise_Gchannel_N.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Noise_LowFreq_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Noise_LowFreq_N.png
new file mode 100644
index 000000000..1dde8c0fd
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Noise_LowFreq_N.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Noise_Plasma_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Noise_Plasma_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Noise_Plasma_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Noise_Plasma_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Paper_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Paper_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Paper_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Paper_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Petrificus_SkinFX_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Petrificus_SkinFX_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Petrificus_SkinFX_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Petrificus_SkinFX_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Raindrop_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Raindrop_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Raindrop_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Raindrop_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_RibbonOffset_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_RibbonOffset_N.png
new file mode 100644
index 000000000..db40cb0b7
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_RibbonOffset_N.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_SkinBurn_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_SkinBurn_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_SkinBurn_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_SkinBurn_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_SmokeRend_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_SmokeRend_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_SmokeRend_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_SmokeRend_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_SmokeTiled_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_SmokeTiled_N.png
new file mode 100644
index 000000000..df6263c18
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_SmokeTiled_N.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Snow_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Snow_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Snow_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Snow_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_SphereNormal_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_SphereNormal_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_SphereNormal_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_SphereNormal_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Sphere_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Sphere_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Sphere_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Sphere_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_SpiderThread_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_SpiderThread_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_SpiderThread_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_SpiderThread_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_SpiderWeb_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_SpiderWeb_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_SpiderWeb_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_SpiderWeb_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_SplashLoop_01_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_SplashLoop_01_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_SplashLoop_01_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_SplashLoop_01_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_SplashMesh_02_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_SplashMesh_02_N.png
new file mode 100644
index 000000000..f018c34cb
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_SplashMesh_02_N.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Splash_Goo2_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Splash_Goo2_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Splash_Goo2_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Splash_Goo2_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Splash_Goo_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Splash_Goo_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Splash_Goo_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Splash_Goo_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Splatter_Decals_3_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Splatter_Decals_3_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Splatter_Decals_3_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Splatter_Decals_3_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Voronoi_Cells_19b_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Voronoi_Cells_19b_N.png
new file mode 100644
index 000000000..bdd92aa30
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Voronoi_Cells_19b_N.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_WarpedRing_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_WarpedRing_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_WarpedRing_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_WarpedRing_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_WaterSurfaceFlow_01_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_WaterSurfaceFlow_01_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_WaterSurfaceFlow_01_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_WaterSurfaceFlow_01_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_WaterTurbulentTile_01_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_WaterTurbulentTile_01_N.png
new file mode 100644
index 000000000..781f2526e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_WaterTurbulentTile_01_N.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_WaterfallFoam_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_WaterfallFoam_N.png
new file mode 100644
index 000000000..0fca2edec
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_WaterfallFoam_N.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_WaveDisplace_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_WaveDisplace_N.png
new file mode 100644
index 000000000..fad2ad04e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_WaveDisplace_N.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Wavy_Low_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Wavy_Low_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Wavy_Low_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Wavy_Low_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Wavy_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Wavy_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Wavy_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Wavy_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_WindNoise_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_WindNoise_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_WindNoise_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_WindNoise_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Wisps_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Wisps_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_Wisps_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_Wisps_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_cloudsBillowy03_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_cloudsBillowy03_N.png
new file mode 100644
index 000000000..d5f74a675
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_cloudsBillowy03_N.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_cloudsBillowyA_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_cloudsBillowyA_N.png
new file mode 100644
index 000000000..c1fe2fef8
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_cloudsBillowyA_N.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_dist_noise_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_dist_noise_D.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_dist_noise_D.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_dist_noise_D.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_dist_noise_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_dist_noise_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_dist_noise_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_dist_noise_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_goo_bubbles_B_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_goo_bubbles_B_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_goo_bubbles_B_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_goo_bubbles_B_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_noise_flame_Tiled_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_noise_flame_Tiled_N.png
new file mode 100644
index 000000000..293d14c4c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_noise_flame_Tiled_N.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_smokeCloud_Dal_BPF_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_smokeCloud_Dal_BPF_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_smokeCloud_Dal_BPF_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_smokeCloud_Dal_BPF_N.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_water_flow_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_water_flow_N.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/VFX/Textures/VFX_T_water_flow_N.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Nomal/VFX_T_water_flow_N.png
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
index bfb787471..460529e7c 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
@@ -203,6 +203,7 @@ call Update_Shaders.bat
+
@@ -450,6 +451,7 @@ call Update_Shaders.bat
+
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
index 4e94dcaf2..a31791f3c 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
@@ -664,6 +664,12 @@
{ebd7a1c2-4914-4956-ad9c-a0fc2e857f56}
+
+ {8ac1faba-2669-44f3-9de3-75850d0b0fb5}
+
+
+ {4070f5a1-7f80-42da-afa0-f7f0500376f9}
+
{48e893e6-2374-44a3-b091-814ad89451c4}
@@ -1359,6 +1365,9 @@
02.GameObjects\Dummys\DummyDecal
+
+ 02.GameObjects\Layer_Effect\Effect\Monster_Effect\Ranrok\FireBall
+
02.GameObjects\Env\08.LightSpawner
@@ -2059,6 +2068,9 @@
02.GameObjects\Dummys\DummyDecal
+
+ 02.GameObjects\Layer_Effect\Effect\Monster_Effect\Ranrok\FireBall
+
02.GameObjects\Env\08.LightSpawner
diff --git a/Jusin154_Team3D/Editor/Private/CamPosition_Shoulder.cpp b/Jusin154_Team3D/Editor/Private/CamPosition_Shoulder.cpp
index 5909e926f..9eea44ab3 100644
--- a/Jusin154_Team3D/Editor/Private/CamPosition_Shoulder.cpp
+++ b/Jusin154_Team3D/Editor/Private/CamPosition_Shoulder.cpp
@@ -101,6 +101,13 @@ void CCamPosition_Shoulder::Update(_float fTimeDelta)
if (m_pGameInstance->Mouse_Down(DIM_MBUTTON)) {
m_pGameInstance->Toggle_MouseCenter();
}
+
+ if (true == m_bMovable) {
+ m_vAccRotDegrees.y += m_pGameInstance->Get_MouseMove().x * m_fMouseSensor;
+ m_vAccRotDegrees.x += m_pGameInstance->Get_MouseMove().y * m_fMouseSensor;
+ CMyTools::AdjustAccumulateDegreePitchYawDegree(m_vAccRotDegrees);
+ }
+
if (m_pGameInstance->Key_Up(DIK_P)) {
m_vShoulderOtherRatio = m_vShoulderPosRatio = m_vShoulderStartRatio;
m_vShoulderStartRatio.x *= -1.f;
@@ -147,6 +154,13 @@ HRESULT CCamPosition_Shoulder::Ready_Components(void* pArg)
}
return S_OK;
}
+
+void CCamPosition_Shoulder::Set_CameraShake(_float fXShock, _float fYShock)
+{
+ m_vAccRealDegrees.x = fXShock;
+ m_vAccRealDegrees.y = fYShock;
+}
+
HRESULT CCamPosition_Shoulder::Ready_SubParts()
{
{
diff --git a/Jusin154_Team3D/Editor/Private/EditEffect.cpp b/Jusin154_Team3D/Editor/Private/EditEffect.cpp
index f70a0acd4..2232ed706 100644
--- a/Jusin154_Team3D/Editor/Private/EditEffect.cpp
+++ b/Jusin154_Team3D/Editor/Private/EditEffect.cpp
@@ -326,6 +326,23 @@ HRESULT CEditEffect::Save_Effect(const _char* pPath)
}
}
}
+
+ if (m_EffectInfo.isNomalMap)
+ {
+ size_t iComponentLength = m_strNomalMapName.length();
+ const _char* pFileComponentPath = m_strNomalMapName.c_str();
+
+ if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+
+ if (iComponentLength != 0)
+ {
+ if (!WriteFile(hFile, pFileComponentPath, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+ }
+ }
size_t iComponentLength = m_strModelName.length();
@@ -390,6 +407,10 @@ HRESULT CEditEffect::Ready_Components(void* pArg)
}
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Base_MRO"),
+ reinterpret_cast(&m_pSurface_TextureCom))))
+ return E_FAIL;
+
return S_OK;
}
@@ -491,7 +512,7 @@ void CEditEffect::Describe_Entity()
GUI::Checkbox("Bloom", &m_EffectInfo.isBloom);
GUI::Checkbox("Blur", &m_EffectInfo.isBlur);
GUI::Checkbox("RimLight", &m_EffectInfo.isRimLight);
-
+ GUI::Checkbox("Nomal", &m_EffectInfo.isNomalMap);
if (GUI::Checkbox("Billboard", &m_EffectInfo.isBillboard))
{
@@ -732,6 +753,16 @@ void CEditEffect::Describe_Entity()
if (GUI::TreeNode("DIFFUSE_TEX"))
{
+ if (m_pDiffuse_TextureCom != nullptr)
+ {
+ if (GUI::ImageButton("Current Texture", m_pDiffuse_TextureCom->Get_SRV(0), ImVec2(48, 48)))
+ {
+ }
+
+ GUI::Spacing(); GUI::Spacing();
+ }
+
+
_string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DIFFUSE_TEXTURE", (CComponent**)&m_pDiffuse_TextureCom, nullptr, this);
if (strName != "") {
@@ -787,6 +818,15 @@ void CEditEffect::Describe_Entity()
if (GUI::TreeNode("MASKING_TEX"))
{
+ if (m_pMasking_TextureCom != nullptr)
+ {
+ if (GUI::ImageButton("Current Texture", m_pMasking_TextureCom->Get_SRV(0), ImVec2(48, 48)))
+ {
+ }
+
+ GUI::Spacing(); GUI::Spacing();
+ }
+
string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "MASKING_TEXTURE", (CComponent**)&m_pMasking_TextureCom, nullptr, this);
if (strName != "") {
@@ -806,34 +846,42 @@ void CEditEffect::Describe_Entity()
{
if (GUI::TreeNode("DISSOLVE"))
{
+ GUI::Checkbox("Dissolve G", &m_EffectInfo.isDissolve_G);
+ GUI::SameLine();
+ GUI::Checkbox("Dissolve B", &m_EffectInfo.isDissolve_B);
+
+ GUI::Checkbox("Nomal Dissolve", &m_EffectInfo.isNomalDissolve);
+ GUI::Checkbox("Reverse Dissolve", &m_EffectInfo.isReverseDissolve);
+
+ ImGui::PushItemWidth(80);
+ GUI::Spacing();
+ GUI::Checkbox("DissolveMove", &m_EffectInfo.isDissolveMove);
+ GUI::DragFloat2("DissolveUVGainAmount", (_float*)&m_EffectInfo.vDissolveUVGainAmount, 0.01f);
+
+ GUI::Spacing();
+ GUI::DragFloat("DissolveDelay", &m_EffectInfo.fDissolveDelay, 0.005f);
+ GUI::DragFloat("ReverseDissolveDelay", &m_EffectInfo.fReverseDissolveDelay, 0.005f);
+
+ GUI::Spacing();
+
+ GUI::DragFloat("DissolveMaskEdge", &m_EffectInfo.vDissolveValue.x, 0.005f);
+ GUI::DragFloat("DissolveSoftMask", &m_EffectInfo.vDissolveValue.y, 0.005f);
+ GUI::DragFloat("DissolveCutRatio", &m_EffectInfo.vDissolveValue.z, 0.005f);
+
+ GUI::Spacing();
+
+ ImGui::PopItemWidth();
+
if (GUI::TreeNode("DISSOLV_TEX"))
{
- GUI::Checkbox("Dissolve G", &m_EffectInfo.isDissolve_G);
- GUI::SameLine();
- GUI::Checkbox("Dissolve B", &m_EffectInfo.isDissolve_B);
-
- GUI::Checkbox("Nomal Dissolve", &m_EffectInfo.isNomalDissolve);
- GUI::Checkbox("Reverse Dissolve", &m_EffectInfo.isReverseDissolve);
-
- ImGui::PushItemWidth(80);
- GUI::Spacing();
- GUI::Checkbox("DissolveMove", &m_EffectInfo.isDissolveMove);
- GUI::DragFloat2("DissolveUVGainAmount", (_float*)&m_EffectInfo.vDissolveUVGainAmount, 0.01f);
-
- GUI::Spacing();
- GUI::DragFloat("DissolveDelay", &m_EffectInfo.fDissolveDelay, 0.005f);
- GUI::DragFloat("ReverseDissolveDelay", &m_EffectInfo.fReverseDissolveDelay, 0.005f);
-
- GUI::Spacing();
-
- GUI::DragFloat("DissolveMaskEdge", &m_EffectInfo.vDissolveValue.x, 0.005f);
- GUI::DragFloat("DissolveSoftMask", &m_EffectInfo.vDissolveValue.y, 0.005f);
- GUI::DragFloat("DissolveCutRatio", &m_EffectInfo.vDissolveValue.z, 0.005f);
-
- GUI::Spacing();
-
- ImGui::PopItemWidth();
+ if (m_pDissolve_TextureCom != nullptr)
+ {
+ if (GUI::ImageButton("Current Texture", m_pDissolve_TextureCom->Get_SRV(0), ImVec2(48, 48)))
+ {
+ }
+ GUI::Spacing(); GUI::Spacing();
+ }
_string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DISSOLVE_TEXTURE", (CComponent**)&m_pDissolve_TextureCom, nullptr, this);
@@ -885,6 +933,15 @@ void CEditEffect::Describe_Entity()
if (GUI::TreeNode("DISTORTION_TEX"))
{
+ if (m_pDistortion_TextureCom != nullptr)
+ {
+ if (GUI::ImageButton("Current Texture", m_pDistortion_TextureCom->Get_SRV(0), ImVec2(48, 48)))
+ {
+ }
+
+ GUI::Spacing(); GUI::Spacing();
+ }
+
_string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DISTORTION_TEXTURE", (CComponent**)&m_pDistortion_TextureCom, nullptr, this);
if (strName != "") {
@@ -936,6 +993,15 @@ void CEditEffect::Describe_Entity()
if (GUI::TreeNode("NOISE_TEX"))
{
+ if (m_pNoise_TextureCom != nullptr)
+ {
+ if (GUI::ImageButton("Current Texture", m_pNoise_TextureCom->Get_SRV(0), ImVec2(48, 48)))
+ {
+ }
+
+ GUI::Spacing(); GUI::Spacing();
+ }
+
_string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "NOISE_TEXTURE", (CComponent**)&m_pNoise_TextureCom, nullptr, this);
if (strName != "") {
@@ -949,6 +1015,29 @@ void CEditEffect::Describe_Entity()
}
}
+ if (m_EffectInfo.isNomalMap == true)
+ {
+ if (GUI::TreeNode("NOMAL_TEX"))
+ {
+ if (m_pNormal_TextureCom != nullptr)
+ {
+ if (GUI::ImageButton("Current Texture", m_pNormal_TextureCom->Get_SRV(0), ImVec2(48, 48)))
+ {
+ }
+
+ GUI::Spacing(); GUI::Spacing();
+ }
+
+ _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "NOMAL_TEXTURE", (CComponent**)&m_pNormal_TextureCom, nullptr, this , L"NOMAL");
+
+ if (strName != "") {
+ m_strNomalMapName = strName;
+ }
+
+ GUI::TreePop();
+ }
+ }
+
GUI::Separator(); GUI::Spacing();
diff --git a/Jusin154_Team3D/Editor/Private/EffectObject.cpp b/Jusin154_Team3D/Editor/Private/EffectObject.cpp
index ed24da2ee..ee5a92bb6 100644
--- a/Jusin154_Team3D/Editor/Private/EffectObject.cpp
+++ b/Jusin154_Team3D/Editor/Private/EffectObject.cpp
@@ -48,7 +48,7 @@ HRESULT CEffectObject::Render()
if (FAILED(m_pInstance_ModelCom->Bind_CS_Output(5, 1)))
return E_FAIL;
- if (m_EffectInfo.eRenderOrder == RENDER::BULR_MESH)
+ if (m_EffectInfo.eRenderOrder == RENDER::BULR_MESH || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DEFAULT)
{
if (FAILED(m_pInstance_ModelCom->Bind_OutPut_SRV_VS(5, 1)))
return E_FAIL;
@@ -481,6 +481,32 @@ HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel)
}
}
+ if (m_EffectInfo.isNomalMap)
+ {
+ size_t iComponentLength = {};
+
+ if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+
+ if (iComponentLength != 0)
+ {
+ _char szName[MAX_PATH] = {};
+
+ if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+
+ m_strNomalMapName = szName;
+
+ if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strNomalMapName),
+ reinterpret_cast(&m_pNormal_TextureCom))))
+ return E_FAIL;
+ }
+
+
+ }
+
m_pInstance_ModelCom->Load_InstanceModel(hFile);
@@ -704,6 +730,33 @@ HRESULT CEffectObject::LoadPre(const _char* pFilePath, LEVEL eLevel)
}
+ }
+
+
+ if (m_EffectInfo.isNomalMap)
+ {
+ size_t iComponentLength = {};
+
+ if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+
+ if (iComponentLength != 0)
+ {
+ _char szName[MAX_PATH] = {};
+
+ if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+
+ m_strNomalMapName = szName;
+
+ if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strNomalMapName),
+ reinterpret_cast(&m_pNormal_TextureCom))))
+ return E_FAIL;
+ }
+
+
}
size_t iComponentLength = {};
@@ -801,7 +854,7 @@ HRESULT CEffectObject::Bind_ShaderResources()
}
- if (m_EffectInfo.isMotionBlur == true)
+ if (m_EffectInfo.isMotionBlur == true || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DEFAULT)
{
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
@@ -1141,7 +1194,22 @@ HRESULT CEffectObject::Bind_ShaderResources()
}
+ if (m_pNormal_TextureCom != nullptr)
+ {
+ if (FAILED(m_pShaderCom->Bind_SRV("g_NormalTexture", m_pNormal_TextureCom->Get_SRV(0)))) {
+ return E_FAIL;
+ }
+ _float fUsingSurfaceParams = MRO_PARAMETER;
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fUsingSurfaceParams", &fUsingSurfaceParams, sizeof(_float))))
+ return E_FAIL;
+
+ if (FAILED(m_pShaderCom->Bind_SRV("g_SurfaceParamsTexture", m_pSurface_TextureCom->Get_SRV(0)))) {
+ return E_FAIL;
+ }
+
+ }
return S_OK;
}
@@ -1192,6 +1260,8 @@ void CEffectObject::Free()
SAFE_RELEASE(m_pDissolve_TextureCom);
SAFE_RELEASE(m_pEmissive_TextureCom);
SAFE_RELEASE(m_pDistortion_TextureCom);
+ SAFE_RELEASE(m_pNormal_TextureCom);
+ SAFE_RELEASE(m_pSurface_TextureCom);
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pInstance_ModelCom);
diff --git a/Jusin154_Team3D/Editor/Private/EffectPool.cpp b/Jusin154_Team3D/Editor/Private/EffectPool.cpp
index 2e3ca5a28..3f5c04de1 100644
--- a/Jusin154_Team3D/Editor/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Editor/Private/EffectPool.cpp
@@ -21,6 +21,7 @@
#include "TrollSwing.h"
#include "StunEffect.h"
#include "Blink.h"
+#include "Ranrok_FireBall.h"
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject(pDevice, pContext)
@@ -55,8 +56,8 @@ HRESULT CEffectPool::Initialize(void* pArg)
m_isActiveMonsterEffectCreate = false;
#endif //
#ifdef 진우
- m_isActiveEffectCreate = true;
- m_isActiveMonsterEffectCreate = false;
+ m_isActiveEffectCreate = false;
+ m_isActiveMonsterEffectCreate = true;
#endif //
#ifdef 기무리
m_isActiveEffectCreate = false;
@@ -101,7 +102,7 @@ void CEffectPool::Priority_Update(_float fTimeDelta)
#if 진우
- (*m_EffectList[ENUM_CLASS(SKILL_TYPE::BLINK)].begin())->Describe_Entity();
+ //(*m_EffectList[ENUM_CLASS(SKILL_TYPE::BLINK)].begin())->Describe_Entity();
Describe_Entity();
@@ -302,16 +303,30 @@ HRESULT CEffectPool::Ready_MonsterEffect()
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::STUN, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ //if (FAILED(Create_Effect(SKILL_TYPE::STUN, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ \
+ // CStunEffect* pEffect = nullptr;
- CStunEffect* pEffect = nullptr;
+ // pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
- pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+ // return pEffect; }
+ //))) return E_FAIL;
+
+
+ if (FAILED(Create_Effect(SKILL_TYPE::RANROK_FIREBALL, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CRanrok_FireBall* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
return pEffect; }
))) return E_FAIL;
+
+
return S_OK;
+
+
}
HRESULT CEffectPool::Use_Skill(SKILL_TYPE eType, CGameObject* pOwner, void* pArg)
@@ -377,6 +392,9 @@ HRESULT CEffectPool::Reset_Pool()
if (FAILED(Ready_Effect()))
return E_FAIL;
+ if (FAILED(Ready_MonsterEffect()))
+ return E_FAIL;
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/Effect_Container.cpp b/Jusin154_Team3D/Editor/Private/Effect_Container.cpp
index 27e1ba1a2..8e03b9cf2 100644
--- a/Jusin154_Team3D/Editor/Private/Effect_Container.cpp
+++ b/Jusin154_Team3D/Editor/Private/Effect_Container.cpp
@@ -181,6 +181,7 @@ HRESULT CEffect_Container::Load_Package(const _char* pPath)
OPEN_EXISTING, // 기존 파일 열기
FILE_ATTRIBUTE_NORMAL,
NULL
+
);
@@ -539,7 +540,111 @@ ON_COLLISION_INFO CEffect_Container::SweepTarget(_vector StartPos, _vector EndPo
return tagCollInfo;
}
+ON_COLLISION_INFO CEffect_Container::MonsterSweepTarget(_vector StartPos, _vector EndPos, _float fRadius, _bool isTerrainCollision)
+{
+ _vector vStartPos = StartPos;
+ _vector vEndPos = EndPos;
+ _vector vDir = { vEndPos - vStartPos };
+ _float fDistance = XMVectorGetX(XMVector3Length(vEndPos - vStartPos));
+
+ PSX::PxSweepBuffer pxBuffer = {};
+
+ _bool bHit = m_pGameInstance->SphereCast(fRadius, vStartPos, vDir, fDistance, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eDYNAMIC, pxBuffer);
+
+ const PSX::PxSweepHit& hit = pxBuffer.block;
+ PSX::PxRigidActor* pActor = hit.actor;
+ PSX::PxShape* pShape = hit.shape;
+ ON_COLLISION_INFO tagCollInfo = {};
+
+ tagCollInfo.vWorldPos.w = 1.f;
+
+ if (bHit) {
+
+ memcpy_s(&tagCollInfo.vWorldPos, sizeof(tagCollInfo.vWorldPos), &hit.position, sizeof(hit.position));
+
+ memcpy_s(&tagCollInfo.vWorldNomal, sizeof(tagCollInfo.vWorldNomal), &hit.normal, sizeof(hit.normal));
+ XMStoreFloat4(&tagCollInfo.vHitDir, vDir);
+ tagCollInfo.fLength = fDistance;
+
+
+ if (nullptr != pActor && nullptr != pActor->userData)
+ {
+ PhsXUserData* pUserData = static_cast(pActor->userData);
+ tagCollInfo.pObject = pUserData->pOwner;
+
+ switch (pUserData->eKind)
+ {
+ case PHYSX_KIND::CCTActor:
+ {
+ switch (PXOBJECT(pUserData->iSubKind))
+ {
+
+ case PXOBJECT::PLAYER:
+ {
+ pUserData->pOwner->OnCollision(this, &tagCollInfo);
+ m_bHit = true;
+ }
+ break;
+ case PXOBJECT::SKILL_PROTEGO:
+ {
+ pUserData->pOwner->OnCollision(this, &tagCollInfo);
+ m_bHit = true;
+ }
+ }
+ }
+ }
+ }
+
+
+ }
+
+ if (isTerrainCollision == true && bHit == false)
+ {
+ memcpy_s(&tagCollInfo.vWorldPos, sizeof(tagCollInfo.vWorldPos), &hit.position, sizeof(hit.position));
+ memcpy_s(&tagCollInfo.vWorldNomal, sizeof(tagCollInfo.vWorldNomal), &hit.normal, sizeof(hit.normal));
+ XMStoreFloat4(&tagCollInfo.vHitDir, vDir);
+ tagCollInfo.fLength = fDistance;
+ tagCollInfo.pObject = m_pOwner->Get_Owner();
+
+ bHit = m_pGameInstance->SphereCast(fRadius, vStartPos, vDir, fDistance, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, pxBuffer);
+
+ const PSX::PxSweepHit& hit = pxBuffer.block;
+ PSX::PxRigidActor* pActor = hit.actor;
+ PSX::PxShape* pShape = hit.shape;
+
+ tagCollInfo.vWorldPos.w = 1.f;
+
+ if (bHit)
+ {
+ memcpy_s(&tagCollInfo.vWorldPos, sizeof(tagCollInfo.vWorldPos), &hit.position, sizeof(hit.position));
+ memcpy_s(&tagCollInfo.vWorldNomal, sizeof(tagCollInfo.vWorldNomal), &hit.normal, sizeof(hit.normal));
+ XMStoreFloat4(&tagCollInfo.vHitDir, vDir);
+ tagCollInfo.fLength = fDistance;
+
+ if (nullptr != pActor && nullptr != pActor->userData)
+ {
+ PhsXUserData* pUserData = static_cast(pActor->userData);
+ tagCollInfo.pObject = pUserData->pOwner;
+
+ switch (PXOBJECT(pUserData->iSubKind))
+ {
+ case PXOBJECT::TERRAIN:
+ {
+
+ m_bHit = true;
+ break;
+ }
+ }
+
+ }
+ }
+
+
+ }
+
+ return tagCollInfo;
+}
_int CEffect_Container::CollisionCheck()
{
_bool bIsCollide = { false };
diff --git a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp
index 28226a082..dfadb0d07 100644
--- a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp
+++ b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp
@@ -153,7 +153,7 @@ HRESULT CEffect_Editor::Packaging(const _char* pDirectoryPath)
{
_uint iIndex = {};
- _string strPerfectFilePath = "../Bin/Resources/Data/Effect/Package/";
+ _string strPerfectFilePath = "../Bin/Resources/Data/Effect/MonsterPackage/";
_string strDirectoryPath = pDirectoryPath;
size_t pos = strDirectoryPath.rfind('/'); // 뒤에서부터 '/' 검색
diff --git a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp
index b54600172..5a676ccb6 100644
--- a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp
+++ b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp
@@ -84,11 +84,11 @@ HRESULT CLevel_EffectViewer::Initialize()
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster"))))
- return E_FAIL;
+ //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster"))))
+ // return E_FAIL;
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster"))))
- return E_FAIL;
+ //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster"))))
+ // return E_FAIL;
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster"))))
return E_FAIL;
diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp
index 3dd4f516c..6ab4482f0 100644
--- a/Jusin154_Team3D/Editor/Private/Loader.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader.cpp
@@ -193,6 +193,7 @@
#include "Goblin_Spector.h"
#include "StunEffect.h"
#include "Blink.h"
+#include "Ranrok_FireBall.h"
#pragma endregion
#pragma region PHYSX_HEADER
@@ -1259,6 +1260,12 @@ HRESULT CLoader::Loading_For_Effect()
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Terrain_MRO"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Terrain/Terrain_MRO_%d.dds"), 4)))) {
return E_FAIL;
+ }
+
+ /* Base_MRO */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Base_MRO"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("C:/MeshTable/Game/Environment//MasterMaterials/BaseTextures/T_Base011_MRO.dds"), 0)))) {
+ return E_FAIL;
}
Asset_FileLoad("../Bin/Resources/Textures/Effect/Noises", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
@@ -1336,6 +1343,21 @@ HRESULT CLoader::Loading_For_Effect()
});
+ 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(ENUM_CLASS(LEVEL::EFFECT), wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0 , L"NOMAL")))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
+
m_strMessage = TEXT("Model Loading..");
@@ -1475,6 +1497,10 @@ HRESULT CLoader::Loading_For_Effect()
TEXT("Prototype_Component_Wand_Model")
));
+ futures.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_Playable_Model")
+ ));
for (auto& job : futures) {
@@ -1763,6 +1789,10 @@ HRESULT CLoader::Loading_For_Effect()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CRanrok_FireBall::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
/* For.Prototype_GameObject_Wand */
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CWand::Create(m_pDevice, m_pContext))))
diff --git a/Jusin154_Team3D/Editor/Private/Player.cpp b/Jusin154_Team3D/Editor/Private/Player.cpp
index 094a63672..c000c4921 100644
--- a/Jusin154_Team3D/Editor/Private/Player.cpp
+++ b/Jusin154_Team3D/Editor/Private/Player.cpp
@@ -84,6 +84,9 @@ HRESULT CPlayer::Initialize(void* pArg)
m_pCharacter_Controller->Set_Position(XMVectorSet(-34.f, 5, -11.4f, 1.f));
+#if 진우
+ m_pCharacter_Controller->Set_Position(XMVectorSet(-34.f, -80.f, -11.4f, 1.f));
+#endif
#ifdef _DEBUG
m_BasicEffect = make_unique(m_pDevice);
@@ -95,7 +98,7 @@ HRESULT CPlayer::Initialize(void* pArg)
#endif // _DEBUG
// UI 연동 추가
-
+ m_pModelCom->Set_Temp(true);
return S_OK;
}
@@ -184,7 +187,7 @@ HRESULT CPlayer::Render()
}
#ifdef _DEBUG
- m_pCharacter_Controller->Render();
+ //m_pCharacter_Controller->Render();
//m_pRigidBody->Render();
Render_CameraCoordinateSystem();
#endif
@@ -252,7 +255,7 @@ HRESULT CPlayer::Ready_Components()
return E_FAIL;
}
- m_strModelPrototypeTag = TEXT("Prototype_Component_Npc_Model");
+ m_strModelPrototypeTag = TEXT("Prototype_Component_Playable_Model");
/* Com_Model */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag,
@@ -309,6 +312,33 @@ HRESULT CPlayer::Ready_Components()
return S_OK;
}
+void CPlayer::Start_CameraShake(_float fTime, _float fIntense)
+{
+ m_vCameraShakeTimer.x = 0.f;
+ m_vCameraShakeTimer.y = fTime;
+ m_fCameraShakeIntense = fIntense;
+ m_bCameraShake = true;
+}
+
+void CPlayer::Update_CameraShake(_float fTimeDelta)
+{
+ if (true == m_bCameraShake) {
+ m_vCameraShakeTimer.x += fTimeDelta;
+ if (m_vCameraShakeTimer.x > m_vCameraShakeTimer.y) {
+ m_vCameraShakeTimer.x = 0.f;
+ m_pCamPosition_ShoulderPart->Set_CameraShake(0.f, 0.f);
+ m_bCameraShake = false;
+ }
+ else {
+ _float fIntense = { 1.f - m_vCameraShakeTimer.x / m_vCameraShakeTimer.y };
+ fIntense *= fIntense;
+ m_pCamPosition_ShoulderPart->Set_CameraShake(
+ fIntense * m_pGameInstance->Real_Random_Float(-m_fCameraShakeIntense, m_fCameraShakeIntense),
+ fIntense * m_pGameInstance->Real_Random_Float(-m_fCameraShakeIntense, m_fCameraShakeIntense)
+ );
+ }
+ }
+}
HRESULT CPlayer::Ready_Parts()
{
diff --git a/Jusin154_Team3D/Editor/Private/Ranrok.cpp b/Jusin154_Team3D/Editor/Private/Ranrok.cpp
index de4675161..ae6d38f6f 100644
--- a/Jusin154_Team3D/Editor/Private/Ranrok.cpp
+++ b/Jusin154_Team3D/Editor/Private/Ranrok.cpp
@@ -61,11 +61,11 @@ 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();
- //SAFE_ADDREF(m_pEffectPool);
+ m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object();
+ SAFE_ADDREF(m_pEffectPool);
- m_pCharacter_Controller->Set_Position(XMVectorSet(-44.704f, -2.860f, 16.071f, 1.f));
- m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-44.704f, -2.860f, 16.071f, 1.f));
+ m_pCharacter_Controller->Set_Position(XMVectorSet(3.f, -75.f, -15.f, 1.f));
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(3.f, -75.f, -15.f, 1.f));
Load_RanrokPos("../Bin/Resources/Data/RanrokPos/RanrokPos.xml");
@@ -636,7 +636,7 @@ void CRanrok::Free()
SAFE_RELEASE(m_pCharacter_Controller);
SAFE_RELEASE(m_pRigidBody);
- //SAFE_RELEASE(m_pEffectPool);
+ SAFE_RELEASE(m_pEffectPool);
Safe_Delete(m_pCallBack_Behavior);
Safe_Delete(m_pCallBack_HitReport);
}
@@ -644,81 +644,9 @@ void CRanrok::Free()
void CRanrok::Describe_Entity()
{
- GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG);
- if (GUI::CollapsingHeader("Ranrak")) {
- __super::Describe_Entity();
+ __super::Describe_Entity();
- string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
- GUI::Text(AnimList.c_str());
-
- GUI::Text("AnimTrack %.2f", m_pModelCom->Get_CurrentTrackPosition());
- GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio());
- GUI::Text("AnimSpeed %.2f", m_pModelCom->Get_AnimSpeed());
-
- GUI::Text("CurrFlow %d", m_iCurrentFlow);
-
- _float3 Pos;
- XMStoreFloat3(&Pos, Get_WorldPostion());
-
- if (GUI::DragFloat3("Pos", (_float*)&Pos, 0.01f))
- {
- m_pCharacter_Controller->Set_Position(XMVectorSetW(XMLoadFloat3(&Pos), 1.f));
- }
-
- GUI::SameLine();
-
- if (GUI::SmallButton("Copy"))
- {
- char buf[128];
- sprintf_s(buf, "", Pos.x, Pos.y, Pos.z);
-
- GUI::SetClipboardText(buf);
-
- m_Points[0].push_back(XMVectorSet(Pos.x, Pos.y, Pos.z, 1.f));
- }
-
- GUI::SameLine();
-
- if (GUI::SmallButton("Clear"))
- {
- m_Points[0].clear();
- }
-
- GUI::Separator();
- GUI::Text("Points[0] Count : %d", (_int)m_Points[0].size());
-
- for (_uint i = 0; i < m_Points[0].size();)
- {
- _vector v = m_Points[0][i];
- XMFLOAT3 p;
- XMStoreFloat3(&p, v);
-
- GUI::PushID(i);
-
- GUI::Text("[%d] (%.2f, %.2f, %.2f)", i, p.x, p.y, p.z);
-
- GUI::SameLine();
-
- if (GUI::SmallButton("X"))
- {
- m_Points[0].erase(m_Points[0].begin() + i);
- GUI::PopID();
- continue;
- }
-
- GUI::PopID();
- i++;
- }
-
-
- if (GUI::Button("MovePos"))
- {
- m_pCharacter_Controller->Set_Position(XMVectorSet(m_pGameInstance->Get_CamPosition()->x, m_pGameInstance->Get_CamPosition()->y, m_pGameInstance->Get_CamPosition()->z,1.f));
- }
-
- m_pTransformCom->Describe_Entity();
- }
- GUI::End();
+ m_pTransformCom->Describe_Entity();
}
#endif // _DEBUG
diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_FireBall.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_FireBall.cpp
new file mode 100644
index 000000000..77ff766de
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Ranrok_FireBall.cpp
@@ -0,0 +1,266 @@
+#include "pch.h"
+#include "Ranrok_FireBall.h"
+
+#include "GameInstance.h"
+#include "EditEffect.h"
+#include "Wand.h"
+#include "Player.h"
+#include "InfoInstance.h"
+
+CRanrok_FireBall::CRanrok_FireBall(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CRanrok_FireBall::CRanrok_FireBall(const CRanrok_FireBall& rhs)
+ : CEffect_Container(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+ SAFE_ADDREF(m_pInfoInstance);
+}
+
+HRESULT CRanrok_FireBall::Initialize_Prototype()
+{
+
+
+ return S_OK;
+
+}
+
+HRESULT CRanrok_FireBall::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/RanrokFireBall")))
+ return E_FAIL;
+
+ m_wstrEffectName = L"RanrokFireBall";
+
+
+ m_pFireBall = Get_PartObject("FireBall");
+ m_pFireBall_PT = Get_PartObject("FireBall_PT");
+ m_pFireBall_Surface = Get_PartObject("FireBall_Surface");
+
+
+ SAFE_ADDREF(m_pFireBall);
+ SAFE_ADDREF(m_pFireBall_PT);
+ SAFE_ADDREF(m_pFireBall_Surface);
+
+ m_fDuration = 4.f;
+
+
+ return S_OK;
+}
+
+void CRanrok_FireBall::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+ XMStoreFloat4(&m_vStartPos, m_pFireBall->Get_WorldPostion());
+}
+
+void CRanrok_FireBall::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+
+ m_pFireBall->Get_Component()->Translation(XMLoadFloat3(&m_vLook) * m_fLinearSpeed);
+ m_pFireBall_PT->Get_Component()->Translation(XMLoadFloat3(&m_vLook) * m_fLinearSpeed);
+ m_pFireBall_Surface->Get_Component()->Translation(XMLoadFloat3(&m_vLook) * m_fLinearSpeed);
+ //m_pFireBall_Tail->Get_Component()->Translation(XMLoadFloat3(&m_vLook) * m_fLinearSpeed);
+
+ if (false == m_bHit) {
+ _vector vStartPos = XMLoadFloat4(&m_vStartPos);
+ _vector vEndPos = m_pFireBall->Get_WorldPostion();
+ ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.2f , true);
+
+ OnCollision(this, &CollisionInfo);
+ }
+
+}
+
+void CRanrok_FireBall::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CRanrok_FireBall::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject, nullptr)))
+ return E_FAIL;
+
+ CEditEffect* pBlack_Smoke = Get_PartObject("Black_Smoke");
+ CEditEffect* pFireBall_Ring = Get_PartObject("FireBall_Ring");
+
+ /* 초기 객체 비지블*/
+ m_pFireBall->Set_Visible(true);
+ m_pFireBall_PT->Set_Visible(true);
+ m_pFireBall_Surface->Set_Visible(true);
+
+ pBlack_Smoke->Set_Visible(true);
+ pFireBall_Ring->Set_Visible(true);
+
+ /* 초기 객체 위치 초기화*/
+
+ _matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component()->Get_BoneMatrixPtr("jaw"));
+
+ for (int i = 0; i < 3; ++i) {
+ BoneMat.r[i] = XMVector3Normalize(BoneMat.r[i]);
+ }
+
+ _matrix WorldMat = m_pOwner->Get_Component()->Get_XMWorldMatrix();
+
+ _matrix CombinedMat = BoneMat * WorldMat;
+
+ _vector vStartPos = CombinedMat.r[3];
+
+ XMStoreFloat4(&m_vStartPos, vStartPos);
+
+ /* 플레이어 위치 받기 */
+ CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first;
+
+ if (pPlayer == nullptr)
+ return E_FAIL;
+
+ /* 초기 방향 */
+ XMStoreFloat4(&m_vTargetPos, pPlayer->Get_Component()->Get_Position());
+ XMStoreFloat3(&m_vLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos)));
+
+ m_pFireBall_PT->Get_Component()->Set_State(STATE::POSITION, vStartPos);
+ //m_pFireBall_Tail->Get_Component()->Set_State(STATE::POSITION, vStartPos - XMLoadFloat3(&m_vLook) * 5.f);
+ pBlack_Smoke->Get_Component()->Set_State(STATE::POSITION, vStartPos);
+ pFireBall_Ring->Get_Component()->Set_State(STATE::POSITION, vStartPos);
+ /* PJ 월드 구성하기 */
+
+
+ _vector vLook = XMVector3Normalize(XMLoadFloat3(&m_vLook));
+ _vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f) , vLook));
+ _vector vUp = XMVector3Normalize(XMVector3Cross(vLook, vRight));
+ _vector vPos = vStartPos;
+
+ _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos };
+
+ m_pFireBall->Get_Component()->Set_WorldMatrix(PJ_WorldMat);
+ m_pFireBall_Surface->Get_Component()->Set_WorldMatrix(PJ_WorldMat);
+
+ return S_OK;
+}
+
+HRESULT CRanrok_FireBall::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CRanrok_FireBall::Ready_Child()
+{
+ return S_OK;
+}
+
+CRanrok_FireBall* CRanrok_FireBall::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CRanrok_FireBall* pInstance = new CRanrok_FireBall(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CRanrok_FireBall");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CRanrok_FireBall::Clone(void* pArg, CGameObject* pOwner)
+{
+ CRanrok_FireBall* pInstance = new CRanrok_FireBall(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CRanrok_FireBall");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CRanrok_FireBall::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ if (m_bHit == false)
+ return;
+
+ ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc);
+
+ _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
+
+
+ for (auto& pPair : m_PartObjects)
+ {
+ pPair.second->Set_Visible(true);
+ pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos);
+ }
+
+
+ m_pFireBall->Set_Visible(false);
+ m_pFireBall_Surface->Set_Visible(false);
+
+ //m_pFireBall_Tail->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
+ m_pFireBall_PT->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
+
+
+ CEditEffect* pBlack_Smoke = Get_PartObject("Black_Smoke");
+
+ pBlack_Smoke->Set_Visible(false);
+
+ CPlayer* pPlayer = static_cast(m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first);
+
+
+ if (pPlayer == nullptr)
+ return;
+
+ pPlayer->Start_CameraShake(0.3f, 2.f);
+
+}
+
+void CRanrok_FireBall::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pInfoInstance);
+
+ SAFE_RELEASE(m_pFireBall);
+ SAFE_RELEASE(m_pFireBall_PT);
+ SAFE_RELEASE(m_pFireBall_Surface);
+ //SAFE_RELEASE(m_pFireBall_Tail);
+}
+#ifdef _DEBUG
+void CRanrok_FireBall::Describe_Entity()
+{
+
+}
+#endif
+
+HRESULT CRanrok_FireBall::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp
index 0ecec91e6..9787d7e9d 100644
--- a/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp
+++ b/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp
@@ -398,11 +398,26 @@ void CRanrok::Behavior_FireBallEnter()
{
case 0:
pairAnimInfo = m_Animation[STATEANIM::FIREBALL1_A];
+
+ Add_Event(pairAnimInfo.first,
+ [this]() {
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_FIREBALL, this);
+ }, 0.38f);
+
break;
case 1:
pairAnimInfo = m_Animation[STATEANIM::FIREBALL2_A];
+
+ Add_Event(pairAnimInfo.first,
+ [this]() {
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_FIREBALL, this);
+ }, 0.5f);
+
break;
}
+
+
+
}
else if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND))
{
@@ -412,11 +427,25 @@ void CRanrok::Behavior_FireBallEnter()
{
case 0:
pairAnimInfo = m_Animation[STATEANIM::FIREBALL1_G];
+
+ Add_Event(pairAnimInfo.first,
+ [this]() {
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_FIREBALL, this);
+ }, 0.4f);
+
break;
case 1:
pairAnimInfo = m_Animation[STATEANIM::FIREBALL2_G];
+
+ Add_Event(pairAnimInfo.first,
+ [this]() {
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_FIREBALL, this);
+ }, 0.45f);
break;
}
+
+
+
}
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBALL)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBALL)];
diff --git a/Jusin154_Team3D/Editor/Public/CamPosition_Shoulder.h b/Jusin154_Team3D/Editor/Public/CamPosition_Shoulder.h
index fbaff6adb..a5b431472 100644
--- a/Jusin154_Team3D/Editor/Public/CamPosition_Shoulder.h
+++ b/Jusin154_Team3D/Editor/Public/CamPosition_Shoulder.h
@@ -28,7 +28,7 @@ class CCamPosition_Shoulder final : public CCamPosition
virtual HRESULT Render() override;
virtual _vector Get_WorldPostion() override;
-
+ void Set_CameraShake(_float fXShock, _float fYShock);
private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
@@ -49,6 +49,8 @@ class CCamPosition_Shoulder final : public CCamPosition
_bool m_bLerp = { false };
_float2 m_vLerpTimer = { 0.f, 1.f };
+ _float2 m_vAccRotDegrees = { 0.f, 0.f };
+ _float2 m_vAccRealDegrees = { 0.f, 0.f };
CCamPosition_Target* m_pTarget_LookPart = { nullptr };
CCamPosition_Target* m_pTarget_FollowPart = { nullptr };
diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h
index c9f7a5b9e..efa60118b 100644
--- a/Jusin154_Team3D/Editor/Public/Editor_Define.h
+++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h
@@ -57,7 +57,7 @@ namespace Editor
JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE,
STUN,
- TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, BLINK,
+ TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, BLINK, RANROK_FIREBALL,
END
};
diff --git a/Jusin154_Team3D/Editor/Public/EffectObject.h b/Jusin154_Team3D/Editor/Public/EffectObject.h
index 1c9711cca..23839d5ab 100644
--- a/Jusin154_Team3D/Editor/Public/EffectObject.h
+++ b/Jusin154_Team3D/Editor/Public/EffectObject.h
@@ -138,9 +138,10 @@ class CEffectObject abstract : public CPartObject
_bool isBlurColor = {};
_bool isBlurDissolve = {};
- _bool isPadding1 = {};
+ _bool isNomalMap = {};
_bool isPadding2 = {};
_bool isPadding3 = {};
+
_float4 vPadding5 = {};
_bool isRimLight = {};
@@ -287,6 +288,8 @@ class CEffectObject abstract : public CPartObject
CTexture* m_pDissolve_TextureCom = { nullptr };
CTexture* m_pEmissive_TextureCom = { nullptr };
CTexture* m_pDistortion_TextureCom = { nullptr };
+ CTexture* m_pNormal_TextureCom = { nullptr };
+ CTexture* m_pSurface_TextureCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
CLight* m_pLightCom = { nullptr };
@@ -303,6 +306,7 @@ class CEffectObject abstract : public CPartObject
_string m_strModelName = {};
_string m_strEmissiveName = {};
_string m_strDistortionName = {};
+ _string m_strNomalMapName = {};
_string m_strPath = {};
_string m_strName = {};
diff --git a/Jusin154_Team3D/Editor/Public/Effect_Container.h b/Jusin154_Team3D/Editor/Public/Effect_Container.h
index 3636e71a7..c16ea395a 100644
--- a/Jusin154_Team3D/Editor/Public/Effect_Container.h
+++ b/Jusin154_Team3D/Editor/Public/Effect_Container.h
@@ -37,6 +37,7 @@ class CEffect_Container abstract : public CContainerObject
void Update_Event(_float fTimeDelta);
_int CollisionCheck();
ON_COLLISION_INFO SweepTarget(_vector StartPos, _vector EndPos, _float fRadius, _bool isTerrainCollision = false);
+ ON_COLLISION_INFO MonsterSweepTarget(_vector StartPos, _vector EndPos, _float fRadius, _bool isTerrainCollision = false);
protected:
_uint m_iSkillType = ENUM_CLASS(SKILL_TYPE::END);
diff --git a/Jusin154_Team3D/Editor/Public/Effect_Editor.h b/Jusin154_Team3D/Editor/Public/Effect_Editor.h
index bcf0014c2..00cfaa15a 100644
--- a/Jusin154_Team3D/Editor/Public/Effect_Editor.h
+++ b/Jusin154_Team3D/Editor/Public/Effect_Editor.h
@@ -47,9 +47,9 @@ class CEffect_Editor final : public CEffect_Container
class CTrailObject* m_pTrailObject = { nullptr };
map<_wstring, vector>> m_MatFiles = {}; // map<머테리얼 이름, vector<텍스쳐이름 , 텍스쳐 경로>>
- _char m_szBuffer[MAX_PATH] = { "../Bin/Resources/Data/Effect/"};
+ _char m_szBuffer[MAX_PATH] = { "../Bin/Resources/Data/Effect/Ranrok"};
_char m_szTrailBuffer[MAX_PATH] = { "../Bin/Resources/Data/Effect/Trail/" };
- _char m_szPackageBuffer[MAX_PATH] = { "../Bin/Resources/Data/Effect/" };
+ _char m_szPackageBuffer[MAX_PATH] = { "../Bin/Resources/Data/Effect/Ranrok" };
_string m_strSavePath = {};
_string m_strTrailSavePath = {};
diff --git a/Jusin154_Team3D/Editor/Public/Player.h b/Jusin154_Team3D/Editor/Public/Player.h
index 050849905..17eb658d5 100644
--- a/Jusin154_Team3D/Editor/Public/Player.h
+++ b/Jusin154_Team3D/Editor/Public/Player.h
@@ -31,6 +31,8 @@ class CPlayer final : public CUnit
#endif // _DEBUG
_bool Set_Sprint(_bool bSprint) { m_bSprintToggle = bSprint; }
_matrix Get_WandPos();
+ void Start_CameraShake(_float fTime, _float fIntense);
+ void Update_CameraShake(_float fTimeDelta);
private:
class CInfoInstance* m_pInfoInstance = { nullptr };
CUnit* m_pLockOnMonster = { nullptr };
@@ -43,6 +45,11 @@ class CPlayer final : public CUnit
_float3 m_vCameraLookDir = { 0.f, 0.f, 1.f, };
_float3 m_vCameraRightDir = { 1.f, 0.f, 0.f };
+ _float2 m_vCameraShakeTimer = { 0.f, TIMER_SHORT_LERP };
+ _float m_fCameraShakeTime = TIMER_SHORT_LERP;
+ _float m_fCameraShakeIntense = 5.f;
+ _bool m_bCameraShake = { false };
+
class CCamPosition_Socket* m_pCamPosition_TopDown_LookPart = { nullptr };
class CCamPosition_Arm* m_pCamPosition_TopDown_FollowPart = { nullptr };
class CCamPosition_Shoulder* m_pCamPosition_ShoulderPart = { nullptr };
diff --git a/Jusin154_Team3D/Editor/Public/Ranrok_FireBall.h b/Jusin154_Team3D/Editor/Public/Ranrok_FireBall.h
new file mode 100644
index 000000000..d1fa055a5
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Ranrok_FireBall.h
@@ -0,0 +1,58 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Editor)
+
+class CRanrok_FireBall final : public CEffect_Container
+{
+private:
+ CRanrok_FireBall(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CRanrok_FireBall(const CRanrok_FireBall& rhs);
+ virtual ~CRanrok_FireBall() = 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 = {};
+
+ class CEditEffect* m_pFireBall = { nullptr };
+ class CEditEffect* m_pFireBall_PT = { nullptr };
+ class CEditEffect* m_pFireBall_Surface = { nullptr };
+
+ _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_FireBall* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // DEBUG
+
+
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Blur.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Blur.hlsl
index bbd7c9266..d160873e0 100644
--- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Blur.hlsl
+++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Blur.hlsl
@@ -4,6 +4,7 @@ matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
Texture2D g_BlurTexture;
Texture2D g_BlurXTexture;
+Texture2D g_BlurYTexture;
float2 g_vResolution;
@@ -79,6 +80,11 @@ struct PS_OUT_BLUR_Y
float4 vBlurY : SV_TARGET0;
};
+struct PS_OUT_COMBINED
+{
+ float4 vBackBuffer : SV_TARGET0;
+};
+
PS_OUT_BLUR_X PS_MAIN_BLUR_X(PS_IN In)
{
PS_OUT_BLUR_X Out;
@@ -120,10 +126,25 @@ PS_OUT_BLUR_Y PS_MAIN_BLUR_Y(PS_IN In)
vColor += g_fWeights_32[i + 15] * g_BlurXTexture.Sample(BorderZeroSampler, vTexcoord);
}
+ Out.vBlurY = vColor;
+
+ return Out;
+}
+
+PS_OUT_COMBINED PS_COMBINED(PS_IN In)
+{
+ PS_OUT_COMBINED Out;
+
+
+ float4 vColor = { 0.f, 0.f, 0.f, 0.f };
+
+
+ vColor = g_BlurYTexture.Sample(DefaultSampler, In.vTexcoord);
+
if (vColor.a <= FLT_EPSILON5)
discard;
- Out.vBlurY = vColor;
+ Out.vBackBuffer = vColor;
return Out;
}
@@ -131,7 +152,7 @@ PS_OUT_BLUR_Y PS_MAIN_BLUR_Y(PS_IN In)
technique11 DefaultTechnique
{
- pass BlurXPass// 4
+ pass BlurXPass// 0
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_None, 0);
@@ -141,7 +162,7 @@ technique11 DefaultTechnique
PixelShader = compile ps_5_0 PS_MAIN_BLUR_X();
}
- pass BlurYPass // 4
+ pass BlurYPass // 1
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_None, 0);
@@ -151,5 +172,14 @@ technique11 DefaultTechnique
PixelShader = compile ps_5_0 PS_MAIN_BLUR_Y();
}
+ pass Combined // 2
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_None, 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_COMBINED();
+ }
}
diff --git a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp
index 8f7788514..2012fe477 100644
--- a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp
+++ b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp
@@ -988,6 +988,11 @@ void CInstance_Model::Describe_Entity()
if (GUI::TreeNode("Pivot Move"))
{
+ if (GUI::Checkbox("ExcludePos From PibotMove", &m_InstanceDesc.isExcludePos))
+ {
+ Instane_Buffer_ReStruct();
+ }
+
if (GUI::Checkbox("PivotMove", &m_InstanceDesc.isPivotMove))
{
Instane_Buffer_ReStruct();
@@ -1080,12 +1085,6 @@ void CInstance_Model::Describe_Entity()
}
- if (GUI::Checkbox("ExcludePos From PibotMove", &m_InstanceDesc.isExcludePos))
- {
- Instane_Buffer_ReStruct();
- }
-
-
if (ImGui::DragFloat3("DeltaAxisAngleMin", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaAxisAngleMin)))
diff --git a/Jusin154_Team3D/Engine/Private/Renderer.cpp b/Jusin154_Team3D/Engine/Private/Renderer.cpp
index 8e6085a7d..46f9f77c6 100644
--- a/Jusin154_Team3D/Engine/Private/Renderer.cpp
+++ b/Jusin154_Team3D/Engine/Private/Renderer.cpp
@@ -657,6 +657,7 @@ void CRenderer::Render_Blur()
COMPUTE_TIMEDELTA("Timer_Render_Blur");
EVENTSCOPE_("Render_Blur");
m_eType = RENDER::BLUR;
+
if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_Blur")))) {
return;
}
@@ -700,6 +701,29 @@ void CRenderer::Render_Blur()
return;
}
+ if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_Blur_Y")))) {
+ return;
+ }
+
+ m_pBlurShader->Bind_Matrix("g_WorldMatrix", &m_ScreenWorldMatrix);
+ m_pBlurShader->Bind_Matrix("g_ViewMatrix", &m_ScreenViewMatrix);
+ m_pBlurShader->Bind_Matrix("g_ProjMatrix", &m_ScreenProjMatrix);
+
+ if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Blur_X"), m_pBlurShader, "g_BlurXTexture"))) {
+ return;
+ }
+
+ m_pBlurShader->Begin(ENUM_CLASS(SHADER_PASS_BLUR::BLUR_Y));
+
+ m_pVIBuffer->Bind_Resources();
+
+ m_pVIBuffer->Render();
+
+ if (FAILED(m_pGameInstance->End_MRT()))
+ {
+ return;
+ }
+
COMPUTE_TIMEDELTA("Timer_Render_Blur");
}
@@ -708,7 +732,7 @@ void CRenderer::Combine_Blur()
COMPUTE_TIMEDELTA("Timer_Combine_Blur");
EVENTSCOPE_("Combine_Blur");
- if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Blur_X"), m_pBlurShader, "g_BlurXTexture"))) {
+ if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Blur_Y"), m_pBlurShader, "g_BlurYTexture"))) {
return;
}
@@ -726,7 +750,7 @@ void CRenderer::Combine_Blur()
m_pBlurShader->Bind_Matrix("g_ProjMatrix", &m_ScreenProjMatrix);
- m_pBlurShader->Begin(ENUM_CLASS(SHADER_PASS_BLUR::BLUR_Y));
+ m_pBlurShader->Begin(ENUM_CLASS(SHADER_PASS_BLUR::COMBINED));
m_pVIBuffer->Bind_Resources();
m_pVIBuffer->Render();
diff --git a/Jusin154_Team3D/Engine/Private/Renderer_Declare.cpp b/Jusin154_Team3D/Engine/Private/Renderer_Declare.cpp
index d4b5c2004..a84634d63 100644
--- a/Jusin154_Team3D/Engine/Private/Renderer_Declare.cpp
+++ b/Jusin154_Team3D/Engine/Private/Renderer_Declare.cpp
@@ -221,6 +221,12 @@ HRESULT CRenderer::Initialize()
return E_FAIL;
}
+ /* Target_Blur_Y */
+ if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Blur_Y"), (_uint)Viewport.Width, (_uint)Viewport.Height,
+ DXGI_FORMAT_R16G16B16A16_FLOAT, _float4(0.0f, 0.0f, 0.0f, 0.0f)))) {
+ return E_FAIL;
+ }
+
/* Target_ENV_Blur_X */
if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_ENV_Blur_X"), (_uint)Viewport.Width, (_uint)Viewport.Height,
@@ -458,6 +464,10 @@ HRESULT CRenderer::Initialize()
return E_FAIL;
}
+ /* MRT_Blur_Y*/
+ if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Blur_Y"), TEXT("Target_Blur_Y")))) {
+ return E_FAIL;
+ }
/* MRT_ENV_Blur_X */
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_ENV_Blur_X"), TEXT("Target_ENV_Blur_X")))) {
diff --git a/Jusin154_Team3D/Engine/Public/Engine_Enum.h b/Jusin154_Team3D/Engine/Public/Engine_Enum.h
index cd00e7d01..91acd6291 100644
--- a/Jusin154_Team3D/Engine/Public/Engine_Enum.h
+++ b/Jusin154_Team3D/Engine/Public/Engine_Enum.h
@@ -51,7 +51,7 @@ enum class SHADER_PASS_DEFERRED { DEBUG, DIRECTIONAL, POINT, COMBINED, BLUR, SPO
POSTCOMBINED, FOG, TONE_MAPPING, SSAO_OCCLUSION, SSAO_BLUR, MOTIONBLUR, DOWNSAMPLE, MOTIONBLURTILE, MOTIONBLURTENT,
END };
-enum class SHADER_PASS_BLUR { BLUR_X , BLUR_Y , END};
+enum class SHADER_PASS_BLUR { BLUR_X , BLUR_Y , COMBINED, END};
enum class TEXTURE_MOUNT_SLOT0 { NOT_DEFINED, METALLIC, SPECULAR, HEIGHT, END };
enum class TEXTURE_MOUNT_SLOT1 { NOT_DEFINED, ROUGHNESS, END };
diff --git a/Jusin154_Team3D/Engine/Public/Engine_Macro.h b/Jusin154_Team3D/Engine/Public/Engine_Macro.h
index 142b201d4..ac0ea0f76 100644
--- a/Jusin154_Team3D/Engine/Public/Engine_Macro.h
+++ b/Jusin154_Team3D/Engine/Public/Engine_Macro.h
@@ -112,7 +112,8 @@
#define SSAO_SAMPLE_NUMBER 64
#define TIMER_SHORT_LERP 0.16f
-
+#define MRO_PARAMETER 2.f/ 27.f
+#define SRO_PARAMETER 15.f/ 27.f
constexpr unsigned int g_iNearShadowWidth = 8192;
constexpr unsigned int g_iNearShadowHeight = 4096;