diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
index 117084542..bc18364e1 100644
--- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
+++ b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
@@ -38,6 +38,7 @@ struct ParticleValue
float fSizeDrag;
float3 vDeltaSize;
+ float2 vDelay;
};
@@ -79,6 +80,17 @@ void CS_MAIN(
ParticleValue particleValue = g_ParticleValueBufferInput[iIndex];
+ particleValue.vDelay.x += fTimeDelta;
+
+ if (particleValue.vDelay.x < particleValue.vDelay.y)
+ {
+
+ g_VBInstanceOutput[iIndex] = particle;
+ g_ParticleValueOutput[iIndex] = particleValue;
+
+ return;
+ }
+
// 라이프타임 움직임
particle.vLifeTime.x += fTimeDelta;
@@ -97,7 +109,7 @@ void CS_MAIN(
particle.vLifeTime.x = 0.f;
particleValue.vAniIndex.x = 0.f;
-
+ particleValue.vDelay.x = 0.f;
g_VBInstanceOutput[iIndex] = particle;
g_ParticleValueOutput[iIndex] = particleValue;
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index a1f282c22..3f3bd6c8f 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -157,6 +157,7 @@
+
@@ -174,8 +175,13 @@
+
+
+
+
+
@@ -197,6 +203,7 @@
+
@@ -204,6 +211,7 @@
+
@@ -215,11 +223,17 @@
+
+
+
+
+
+
@@ -245,6 +259,7 @@
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index 238888ead..a94092e3b 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -127,6 +127,27 @@
04.Mechanic\State\Movement\Move
+
+ 02.GameObjects\Effect\Effect_Container
+
+
+ 02.GameObjects\Effect\EffectParts
+
+
+ 02.GameObjects\Effect\EffectObject
+
+
+ 02.GameObjects\Effect\TrailObject
+
+
+ 02.GameObjects\Effect\Effects\Bombard
+
+
+ 02.GameObjects\Effect\Effects\NomalJap
+
+
+ 02.GameObjects\PhysX\EffectHitBox
+
02.GameObjects\Cameras\CameraPosition\Socket
@@ -329,6 +350,33 @@
{0a3f9629-27d1-411c-806e-b550af8f1ca1}
+
+ {23fc95c4-0db3-4569-bd37-4d9bc32938ba}
+
+
+ {a88b2e75-92f7-4bed-b12a-76fb8763f533}
+
+
+ {482050d0-23dc-4744-b0db-0673a84f40e7}
+
+
+ {129abdf3-e499-467e-aca8-917e66827890}
+
+
+ {b3077955-b37e-41f8-bb7a-7b1483fcecdc}
+
+
+ {6fc43376-8b17-4888-b347-9beef7bee2ba}
+
+
+ {3a613328-d01e-43e5-a095-9a6912cb3cf0}
+
+
+ {639cba10-a93e-465c-a921-4541fe317446}
+
+
+ {54169d8d-f771-4638-a71e-3aca3eeff9bb}
+
{1f9c16e8-b675-419f-b166-b79662407259}
@@ -451,6 +499,27 @@
04.Mechanic\State\Movement\Move
+
+ 02.GameObjects\Effect\Effect_Container
+
+
+ 02.GameObjects\Effect\EffectParts
+
+
+ 02.GameObjects\Effect\EffectObject
+
+
+ 02.GameObjects\Effect\TrailObject
+
+
+ 02.GameObjects\Effect\Effects\Bombard
+
+
+ 02.GameObjects\Effect\Effects\NomalJap
+
+
+ 02.GameObjects\PhysX\EffectHitBox
+
02.GameObjects\Cameras\CameraPosition\Socket
diff --git a/Jusin154_Team3D/Client/Private/Bombard.cpp b/Jusin154_Team3D/Client/Private/Bombard.cpp
new file mode 100644
index 000000000..cf24bbdc2
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Bombard.cpp
@@ -0,0 +1,193 @@
+#include "pch.h"
+#include "Bombard.h"
+
+#include "GameInstance.h"
+#include "EffectParts.h"
+#include "PhysXEffectHitBox.h"
+
+
+CBombard::CBombard(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CBombard::CBombard(const CBombard& rhs)
+ : CEffect_Container(rhs)
+{
+}
+
+HRESULT CBombard::Initialize_Prototype()
+{
+
+ return S_OK;
+
+}
+
+HRESULT CBombard::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Child()))
+ return E_FAIL;
+
+ if (FAILED(Load_Directory("../Bin/Resources/Data/Effect/Bombard/")))
+ return E_FAIL;
+
+
+ m_wstrEffectName = L"Bombard";
+
+ CPartObject* pShootPt = Get_PartObject("Bombard_Shoot_Pt");
+ m_pLight_Projectile = Get_PartObject("Bombard_Projectile");
+ CPartObject* pCircle0 = Get_PartObject("Bombard_Circle0");
+
+ pShootPt->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+ m_pLight_Projectile->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+ pCircle0->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+
+ pCircle0->Set_Visible(true);
+ pShootPt->Set_Visible(true);
+ m_pLight_Projectile->Set_Visible(true);
+
+ SAFE_ADDREF(m_pLight_Projectile);
+ m_fDuration = 2.5f;
+
+ return S_OK;
+}
+
+void CBombard::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CBombard::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+ _vector vOwnerLook = m_pOwner->Get_Component()->Get_State(STATE::LOOK);
+
+ m_pLight_Projectile->Get_Component()->Translation(vOwnerLook * 2.f);
+}
+
+void CBombard::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CBombard::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CBombard::Ready_Child()
+{
+ CPhysXEffectHitBox::PHYSXDUMMY_DESC Desc{};
+
+ m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+
+ XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f));
+
+ Desc.vRotRPY = { 0.f, 0.f, 0.f };
+ Desc.iSubKind = 70;
+ Desc.vDeltaPos = { 0.f, 0.f, 2.f };
+ Desc.vLifeTime = { 0.f, 2.f };
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, CURRENT_LEVEL, LAYER_HITBOX, &Desc, this , &m_pPhysHitBox))) {
+ assert(false);
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CBombard* CBombard::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CBombard* pInstance = new CBombard(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CBombard");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CBombard::Clone(void* pArg, CGameObject* pOwner)
+{
+ CBombard* pInstance = new CBombard(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CBombard");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CBombard::OnCollision(CGameObject* pOther , void* pDesc)
+{
+ //CTransform* pOtherTransform = p
+ ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
+
+ for (auto& pPair : m_PartObjects)
+ {
+ pPair.second->Set_Visible(true);
+ pPair.second->Get_Component()->Set_State(STATE::POSITION, CollisionDesc->vWorldPos);
+ }
+
+
+ m_pLight_Projectile->Set_Visible(false);
+ Get_PartObject("Bombard_Shoot_Pt")->Set_Visible(false);
+
+ _vector vOwnerLook = m_pOwner->Get_Component()->Get_State(STATE::LOOK);
+ Get_PartObject("Bombard_Smoke")->Get_Component()->Translation(vOwnerLook);
+
+ Get_PartObject("Bombard_Circle0")->Set_Visible(false);
+
+ m_pPhysHitBox->Set_Dead();
+}
+
+void CBombard::Free()
+{
+ __super::Free();
+
+ //if(m_pPhysHitBox != nullptr)
+ // if (m_pPhysHitBox->Get_Depth() == false)
+ // SAFE_RELEASE(m_pPhysHitBox);
+
+ SAFE_RELEASE(m_pLight_Projectile);
+
+}
+
+void CBombard::Describe_Entity()
+{
+
+}
+
+HRESULT CBombard::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Client/Private/Camera_Debug.cpp b/Jusin154_Team3D/Client/Private/Camera_Debug.cpp
index 679fabb63..6e22265f5 100644
--- a/Jusin154_Team3D/Client/Private/Camera_Debug.cpp
+++ b/Jusin154_Team3D/Client/Private/Camera_Debug.cpp
@@ -26,7 +26,7 @@ void CCamera_Debug::Update(_float fTimeDelta)
if (m_pGameInstance->Key_Up(DIK_GRAVE)) {
m_bMovable = !m_bMovable;
}
- if (m_pGameInstance->Mouse_Down(DIM_RBUTTON)) {
+ if (m_pGameInstance->Key_Down(DIK_1)) {
m_pGameInstance->Toggle_MouseCenter();
}
if (m_bMovable) {
diff --git a/Jusin154_Team3D/Client/Private/EffectObject.cpp b/Jusin154_Team3D/Client/Private/EffectObject.cpp
new file mode 100644
index 000000000..4d3561f29
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/EffectObject.cpp
@@ -0,0 +1,665 @@
+#include "pch.h"
+#include "EffectObject.h"
+#include "GameInstance.h"
+
+CEffectObject::CEffectObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CPartObject(pDevice, pContext)
+{
+}
+
+CEffectObject::CEffectObject(const CEffectObject& rhs)
+ :CPartObject(rhs)
+{
+}
+
+void CEffectObject::Priority_Update(_float fTimeDelta)
+{
+}
+
+void CEffectObject::Update(_float fTimeDelta)
+{
+
+}
+
+void CEffectObject::Late_Update(_float fTimeDelta)
+{
+
+}
+
+HRESULT CEffectObject::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+
+ for (_uint i = 0; i < m_pInstance_ModelCom->Get_NumMeshes(); i++)
+ {
+
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_INSTANCE_MODEL::NON_NOMALMAP)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pInstance_ModelCom->Bind_CS_Output(5, 1)))
+ return E_FAIL;
+
+ if (FAILED(m_pGameInstance->Bind_DepthStencil(m_pShaderCom, "g_DepthStencilTexture")))
+ return E_FAIL;
+
+
+
+
+ if (FAILED(m_pInstance_ModelCom->Render(i)))
+ {
+ return E_FAIL;
+ }
+ }
+
+
+ return S_OK;
+}
+
+HRESULT CEffectObject::Render_Blur()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fBlurIntensity", &m_EffectInfo.fBlurIntensity, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iBlurWeight", &m_EffectInfo.iBlurWeight, sizeof(_int)))) {
+ return E_FAIL;
+ }
+
+
+
+ for (_uint i = 0; i < m_pInstance_ModelCom->Get_NumMeshes(); i++)
+ {
+
+
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_INSTANCE_MODEL::BLUR)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pInstance_ModelCom->Bind_CS_Output(5, 1)))
+ return E_FAIL;
+
+
+ if (FAILED(m_pInstance_ModelCom->Render(i)))
+ {
+ return E_FAIL;
+ }
+
+ }
+
+
+
+
+ return S_OK;
+}
+
+
+
+HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel)
+{
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pNoise_TextureCom);
+ SAFE_RELEASE(m_pMasking_TextureCom);
+ SAFE_RELEASE(m_pDissolve_TextureCom);
+ SAFE_RELEASE(m_pEmissive_TextureCom);
+
+ SAFE_RELEASE(m_pInstance_ModelCom);
+
+ if (m_pLightCom != nullptr)
+ SAFE_RELEASE(m_pLightCom);
+
+ _string strPerfectFilePath = pFilePath;
+
+ strPerfectFilePath += ".bin";
+
+ HANDLE hFile = CreateFileW(
+ CMyTools::ToWstring(strPerfectFilePath).c_str(), // 파일 이름
+ GENERIC_READ, // 읽기 모드
+ FILE_SHARE_READ, // 다른 프로세스도 읽기 가능
+ NULL,
+ OPEN_EXISTING, // 기존 파일 열기
+ FILE_ATTRIBUTE_NORMAL,
+ NULL
+ );
+
+
+ if (hFile == INVALID_HANDLE_VALUE) {
+ MessageBox(NULL, L"오브젝트 읽기 실패", L"System Message", MB_OK);
+ return E_FAIL;
+ }
+
+ // 나중에 패키징할때 패스를 저장할거임
+
+
+ DWORD dwByte(0);
+
+ if (!ReadFile(hFile, &m_EffectInfo, sizeof(EFFECT_INFO), &dwByte, nullptr)) {
+ CloseHandle(hFile);
+ return E_FAIL;
+ }
+
+ m_EffectInfo.LightDesc.pPosition = m_pTransformCom->Get_StatePtr(STATE::POSITION);
+ m_EffectInfo.LightDesc.iLevel = ENUM_CLASS(eLevel);
+
+ if (m_EffectInfo.LightDesc.eType != LIGHT::DIRECTIONAL) // 0이 아닐때만 생성
+ {
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pLightCom, &m_EffectInfo.LightDesc)))
+ {
+ CloseHandle(hFile);
+ return E_FAIL;
+ }
+ }
+
+
+ if (m_EffectInfo.isDiffuse)
+ {
+ 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_strDiffuseName = szName;
+
+ if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDiffuseName),
+ reinterpret_cast(&m_pDiffuse_TextureCom))))
+ {
+ CloseHandle(hFile);
+ return E_FAIL;
+ }
+
+ }
+
+
+ }
+
+ if (m_EffectInfo.isNoise)
+ {
+ 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_strNoiseName = szName;
+
+ if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strNoiseName),
+ reinterpret_cast(&m_pNoise_TextureCom))))
+ return E_FAIL;
+ }
+
+
+ }
+
+ if (m_EffectInfo.isMasking)
+ {
+ 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)) {
+ CloseHandle(hFile);
+ return E_FAIL;
+ }
+
+ m_strMaskingName = szName;
+
+ if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strMaskingName),
+ reinterpret_cast(&m_pMasking_TextureCom))))
+ {
+ CloseHandle(hFile);
+ return E_FAIL;
+ }
+ }
+
+
+ }
+
+ if (m_EffectInfo.isDissolve)
+ {
+ 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_strDissolveName = szName;
+
+ if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDissolveName),
+ reinterpret_cast(&m_pDissolve_TextureCom))))
+ {
+ CloseHandle(hFile);
+ return E_FAIL;
+ }
+
+
+ }
+
+
+ }
+
+ if (m_EffectInfo.isEmissive)
+ {
+ 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_strEmissiveName = szName;
+
+ if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strEmissiveName),
+ reinterpret_cast(&m_pEmissive_TextureCom))))
+ {
+ CloseHandle(hFile);
+ return E_FAIL;
+ }
+ }
+
+
+ }
+
+ if (m_EffectInfo.isDistortion)
+ {
+ 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_strDistortionName = szName;
+
+ if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDistortionName),
+ reinterpret_cast(&m_pDistortion_TextureCom))))
+ {
+ CloseHandle(hFile);
+ return E_FAIL;
+ }
+ }
+
+
+ }
+
+ 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)(DWORD)iComponentLength + 1), &dwByte, nullptr)) {
+ CloseHandle(hFile);
+ return E_FAIL;
+ }
+
+ m_strModelName = szName;
+
+ if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strModelName),
+ reinterpret_cast(&m_pInstance_ModelCom))))
+ {
+ CloseHandle(hFile);
+ return E_FAIL;;
+ }
+ }
+
+
+
+ m_pInstance_ModelCom->Load_InstanceModel(hFile);
+
+ CloseHandle(hFile);
+
+
+
+ return S_OK;
+}
+
+
+
+HRESULT CEffectObject::Bind_ShaderResources()
+{
+
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ return E_FAIL;
+
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
+ return E_FAIL;
+ }
+
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isDiffuse", &m_EffectInfo.isDiffuse, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isMasking", &m_EffectInfo.isMasking, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isDissolve", &m_EffectInfo.isDissolve, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoise", &m_EffectInfo.isNoise, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isEmissive", &m_EffectInfo.isEmissive, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isDistortion", &m_EffectInfo.isDistortion, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isDiffuseUVMove", &m_EffectInfo.isDiffuseUVMove, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isMaskUVMove", &m_EffectInfo.isMaskUVMove, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoiseUVMove", &m_EffectInfo.isNoiseUVMove, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isReverseDissolve", &m_EffectInfo.isReverseDissolve, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isEmissiveDissolve", &m_EffectInfo.isEmissiveDissolve, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isMaskClampSample", &m_EffectInfo.isMaskClampSample, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoiseColor", &m_EffectInfo.isNoiseColor, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoiseAlpha", &m_EffectInfo.isNoiseAlpha, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isNomalDissolve", &m_EffectInfo.isNomalDissolve, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vColor", &m_EffectInfo.vColor, sizeof(_float4)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vEmissive", &m_EffectInfo.vEmissive, sizeof(_float4)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fEmissiveStrength", &m_EffectInfo.fEmissiveStrength, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fNoiseDistortionIntensity", &m_EffectInfo.fNoiseDistortionIntensity, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vDiffuseUVGainAmount", &m_EffectInfo.vDiffuseUVGainAmount, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vMaskingUVGainAmount", &m_EffectInfo.vMaskingUVGainAmount, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vNoiseUVGainAmount", &m_EffectInfo.vNoiseUVGainAmount, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vDiffuseDistortionUVGainAmount", &m_EffectInfo.vDiffuseDistortionUVGainAmount, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vMaskDistortionUVGainAmount", &m_EffectInfo.vMaskDistortionUVGainAmount, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vUVCutting", &m_EffectInfo.vUVCutting, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vUVMaskCutting", &m_EffectInfo.vUVMaskCutting, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iMaskMoveLerpOption", &m_EffectInfo.iMaskMoveLerpOption, sizeof(_int)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iDiffuseMoveLerpOption", &m_EffectInfo.iDiffuseMoveLerpOption, sizeof(_int)))) {
+ return E_FAIL;
+ }
+
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iMaskDistortionMoveLerpOption", &m_EffectInfo.iMaskDistortionMoveLerpOption, sizeof(_int)))) {
+ return E_FAIL;
+ }
+
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iDiffuseDistortionMoveLerpOption", &m_EffectInfo.iDiffuseDistortionMoveLerpOption, sizeof(_int)))) {
+ return E_FAIL;
+ }
+
+
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fDiffuseAlpha", &m_EffectInfo.fDiffuseAlpha, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftenExp", &m_EffectInfo.fSoftenExp, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftStrength", &m_EffectInfo.fSoftStrength, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCoreBoost", &m_EffectInfo.fCoreBoost, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fRadius", &m_EffectInfo.fRadius, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftMaskEdge", &m_EffectInfo.fSoftMaskEdge, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftMask", &m_EffectInfo.fSoftMask, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+
+ if (m_pDiffuse_TextureCom != nullptr)
+ {
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_DiffuseTexture", 0))) {
+ return E_FAIL;
+ }
+ }
+
+ if (m_pNoise_TextureCom != nullptr)
+ {
+ if (FAILED(m_pNoise_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_NoiseTexture", 0))) {
+ return E_FAIL;
+ }
+ }
+
+ if (m_pMasking_TextureCom != nullptr)
+ {
+ if (FAILED(m_pMasking_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_MaskingTexture", 0))) {
+ return E_FAIL;
+ }
+ }
+
+ if (m_pDissolve_TextureCom != nullptr)
+ {
+ if (FAILED(m_pDissolve_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_DissolveTexture", 0))) {
+ return E_FAIL;
+ }
+ }
+
+ if (m_pEmissive_TextureCom != nullptr)
+ {
+ if (FAILED(m_pEmissive_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_EmissiveTexture", 0))) {
+ return E_FAIL;
+ }
+ }
+
+ if (m_pDistortion_TextureCom != nullptr)
+ {
+ if (FAILED(m_pDistortion_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_DistortionTexture", 0))) {
+ return E_FAIL;
+ }
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+
+
+
+ return S_OK;
+}
+
+HRESULT CEffectObject::Ready_Components(void* pArg)
+{
+ CTransform::TRANSFORM_DESC TransformDesc = {};
+
+ TransformDesc.fRadius = 20.f;
+ TransformDesc.fRotationPerSec = 10.f;
+ TransformDesc.fSpeedPerSec = 10.f;
+
+
+ if (FAILED(__super::Ready_Components(&TransformDesc))) {
+ return E_FAIL;
+ }
+
+
+ //나중에 로드할 때 라이트를 값을 입력받아서 생성 하자
+ return S_OK;
+}
+
+HRESULT CEffectObject::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CEffectObject::Initialize(void* pArg)
+{
+
+ if (FAILED(__super::Initialize(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+
+
+void CEffectObject::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pNoise_TextureCom);
+ SAFE_RELEASE(m_pMasking_TextureCom);
+ SAFE_RELEASE(m_pDissolve_TextureCom);
+ SAFE_RELEASE(m_pEmissive_TextureCom);
+ SAFE_RELEASE(m_pDistortion_TextureCom);
+
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pInstance_ModelCom);
+
+ if(m_pLightCom != nullptr)
+ SAFE_RELEASE(m_pLightCom);
+}
+
+
diff --git a/Jusin154_Team3D/Client/Private/EffectParts.cpp b/Jusin154_Team3D/Client/Private/EffectParts.cpp
new file mode 100644
index 000000000..3000b31ab
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/EffectParts.cpp
@@ -0,0 +1,130 @@
+#include "pch.h"
+#include "EffectParts.h"
+
+#include "GameInstance.h"
+#include "Instance_Model.h"
+
+CEffectParts::CEffectParts(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffectObject{ pDevice, pContext }
+{
+}
+
+CEffectParts::CEffectParts(const CEffectParts& rhs)
+ : CEffectObject(rhs)
+{
+}
+
+HRESULT CEffectParts::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CEffectParts::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+
+ Set_Visible(false);
+
+ return S_OK;
+}
+
+void CEffectParts::Priority_Update(_float fTimeDelta)
+{
+
+}
+
+void CEffectParts::Update(_float fTimeDelta)
+{
+
+ if (m_bVisible == false)
+ return;
+
+ if (m_pInstance_ModelCom == nullptr)
+ return;
+
+ m_pInstance_ModelCom->Drop(fTimeDelta);
+
+ if (m_EffectInfo.isBillboard)
+ m_pGameInstance->BillBoard(m_pTransformCom);
+
+
+}
+
+void CEffectParts::Late_Update(_float fTimeDelta)
+{
+
+ if (m_bVisible == false)
+ return;
+
+ if (m_pInstance_ModelCom == nullptr)
+ return;
+
+
+ if (m_EffectInfo.isBlur == true)
+ {
+ m_pGameInstance->Add_RenderGroup(RENDER::BLUR, this);
+ }
+
+ m_pGameInstance->Add_RenderGroup(RENDER::EFFECT, this);
+
+}
+
+
+HRESULT CEffectParts::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_INSTANCE_MODEL, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+
+ return S_OK;
+}
+
+
+CEffectParts* CEffectParts::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CEffectParts* pInstance = new CEffectParts(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CEffectParts");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CEffectParts::Clone(void* pArg, CGameObject* pOwner)
+{
+ CEffectParts* pInstance = new CEffectParts(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CEffectParts");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CEffectParts::Free()
+{
+ __super::Free();
+
+}
+
+void CEffectParts::Describe_Entity()
+{
+
+}
diff --git a/Jusin154_Team3D/Client/Private/Effect_Container.cpp b/Jusin154_Team3D/Client/Private/Effect_Container.cpp
new file mode 100644
index 000000000..7f7a5e905
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Effect_Container.cpp
@@ -0,0 +1,192 @@
+#include "pch.h"
+#include "Effect_Container.h"
+
+#include "GameInstance.h"
+#include "EffectParts.h"
+#include "TrailObject.h"
+
+
+#include
+
+CEffect_Container::CEffect_Container(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CContainerObject{ pDevice, pContext }
+{
+}
+
+CEffect_Container::CEffect_Container(const CEffect_Container& rhs)
+ : CContainerObject(rhs)
+{
+
+}
+
+HRESULT CEffect_Container::Initialize_Prototype()
+{
+
+ return S_OK;
+
+}
+
+HRESULT CEffect_Container::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Child()))
+ return E_FAIL;
+
+ return S_OK;
+}
+
+void CEffect_Container::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CEffect_Container::Update(_float fTimeDelta)
+{
+ __super::Update(fTimeDelta);
+
+}
+
+void CEffect_Container::Late_Update(_float fTimeDelta)
+{
+ __super::Late_Update(fTimeDelta);
+}
+
+void CEffect_Container::OnCollision(CGameObject* pOther, void* pDesc)
+{
+}
+
+HRESULT CEffect_Container::Load_Directory(const _char* pPath)
+{
+
+ for (const auto& file : filesystem::directory_iterator(pPath))
+ {
+ if (file.is_directory())
+ continue;
+
+ string ext = file.path().extension().string();
+
+ if (strcmp(ext.c_str(), ".bin"))
+ continue;
+
+ _char szFilePath[MAX_PATH] = {};
+
+ strcpy_s(szFilePath, MAX_PATH, file.path().string().c_str());
+
+
+ /////////////////////////////
+
+ CEffectParts* pEffectParts = nullptr;
+
+ CPartObject::PARTOBJECT_DESC PartsDesc{};
+
+ PartsDesc.pParentTransform = m_pTransformCom;
+
+
+
+
+ /*이펙트 껍데기 생성*/
+
+ _wstring wstrFileName = file.path().stem().wstring(); //이름 넣기
+
+ if (FAILED(Add_PartObject(CMyTools::ToString(wstrFileName), g_iStaticLevel, &pEffectParts, &PartsDesc))) {
+ assert(false);
+ return E_FAIL;
+ }
+
+
+ /*이펙트 로드 로드*/
+ size_t iPos = {};
+ _string strFilePath = szFilePath;
+
+ while ((iPos = strFilePath.find(".bin")) != std::string::npos) {
+ strFilePath.erase(iPos, 4);
+ };
+
+
+ if (FAILED(pEffectParts->Load(strFilePath.c_str(),static_cast(NEXT_LEVEL))))
+ {
+ Safe_Release(pEffectParts);
+ continue;
+ }
+
+ Safe_Release(pEffectParts);
+ }
+
+ return S_OK;
+}
+
+HRESULT CEffect_Container::Ready_Components(void* pArg)
+{
+ CTransform::TRANSFORM_DESC TransformDesc = {};
+
+ TransformDesc.fRadius = 20.f;
+ TransformDesc.fRotationPerSec = 10.f;
+ TransformDesc.fSpeedPerSec = 10.f;
+
+ if (FAILED(__super::Ready_Components(&TransformDesc))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CEffect_Container::Ready_Child()
+{
+
+ return S_OK;
+}
+
+void CEffect_Container::Free()
+{
+ __super::Free();
+
+}
+
+HRESULT CEffect_Container::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+void CEffect_Container::Update_Event(_float fTimeDelta)
+{
+
+ m_fPreAccTime = m_fAccTime;
+ m_fAccTime += fTimeDelta;
+
+ if (m_fAccTime >= m_fDelay || m_isDelayed == false) // 아직 딜레이되지 않았고 딜레이를 넘어섰다면
+ {
+ m_isDelayed = true;
+ }
+ else
+ {
+ return;
+ }
+
+
+ if (m_fAccTime >= m_fDuration) // 듀레이션을 넘어섰다면
+ {
+ if (m_isLoop)
+ {
+ m_fAccTime = 0.f;
+ m_fPreAccTime = 0.f;
+ m_isDelayed = false;
+ }
+ else
+ {
+ m_bVisible = false;
+ }
+ }
+
+
+ for (auto& pPair : m_Events) // 이벤트들을 비교하면서 실행함
+ {
+ if (pPair.first >= m_fPreAccTime && pPair.first <= m_fAccTime)
+ {
+ pPair.second();
+ }
+ }
+
+
+}
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index ed55e5887..6146c0058 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -39,10 +39,14 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
return E_FAIL;
}
- if (FAILED(Ready_Layer_SkyBox(TEXT("Layer_SkyBox")))) {
+ if (FAILED(Ready_Layer_Camera())) {
return E_FAIL;
}
+ //if (FAILED(Ready_Layer_SkyBox(TEXT("Layer_SkyBox")))) {
+ // return E_FAIL;
+ //}
+
return S_OK;
}
@@ -94,7 +98,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_UI(const _wstring& strLayerTag)
HRESULT CLevel_GamePlay::Ready_Layer_Camera()
{
- /*CCamera_Debug::CAMERA_DEBUG_DESC Camera_Desc{};
+ CCamera_Debug::CAMERA_DEBUG_DESC Camera_Desc{};
Camera_Desc.fFovy = XMConvertToRadians(60.0f);
Camera_Desc.fNear = 0.1f;
Camera_Desc.fFar = 200.f;
@@ -114,7 +118,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Camera()
}
if (FAILED(m_pGameInstance->Bind_Camera(NEXT_LEVEL, CAMERA_DEBUG, true))) {
return E_FAIL;
- }*/
+ }
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 40fbdb436..6e6ee579a 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -17,8 +17,23 @@
#include "Wand.h"
#include "SkyBox.h"
#include "Broom.h"
+
+#pragma region PHYSX
+
#include "Dummy_PhysXWall.h"
#include "Dummy_PhysXPlayable.h"
+#include "PhysXEffectHitBox.h"
+
+#pragma endregion
+
+#pragma region EFFECT
+
+#include "EffectParts.h"
+#include "Bombard.h"
+#include "TrailObject.h"
+#include "Instance_Model.h"
+
+#pragma endregion
CLoader::CLoader(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: m_pDevice{ pDevice }
@@ -128,6 +143,66 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+
+ Asset_FileLoad("../Bin/Resources/Textures/Effect/Noises", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
+
+ _string strFilePath = pFilePath;
+ _wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
+
+ Asset_FileLoad("../Bin/Resources/Textures/Effect/Diffuse", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
+
+ _string strFilePath = pFilePath;
+ _wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
+
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
+
+ Asset_FileLoad("../Bin/Resources/Textures/Effect/Flipbooks", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
+
+ _string strFilePath = pFilePath;
+ _wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
+
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
+
+ Asset_FileLoad("../Bin/Resources/Textures/Effect/Gradients", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
+
+ _string strFilePath = pFilePath;
+ _wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
+
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
+
m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_MESH,
@@ -152,6 +227,12 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_INSTANCE_MODEL,
+ CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl"),
+ VTX_MODEL_INSTANCE_PARTICLE::Elements, VTX_MODEL_INSTANCE_PARTICLE::iNumElements)))) {
+ return E_FAIL;
+ }
+
// Heavy Wall
CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc{};
{
@@ -168,6 +249,8 @@ HRESULT CLoader::Loading_For_GamePlay()
Desc.vAutoDamping = { 100.f, 100.f };
}
+
+
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_HEAVY_WALL"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
return E_FAIL;
}
@@ -204,6 +287,57 @@ HRESULT CLoader::Loading_For_GamePlay()
m_strMessage = TEXT("이펙트를(을) 로딩 중 입니다.");
+
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CEffectParts::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTrailObject::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CBombard::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+
+
+ m_strMessage = TEXT("Model Loading..");
+
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_SkyboxModel"),
+ CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.fbx", XMMatrixIdentity()))))
+ return E_FAIL;
+
+ Asset_FileLoad("../Bin/Resources/Models/Effect/ParticleMesh", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
+ CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
+ return E_FAIL;
+
+ return S_OK;
+
+ });
+
+ Asset_FileLoad("../Bin/Resources/Models/Effect/Goo", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
+ CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
+ return E_FAIL;
+
+ return S_OK;
+
+ });
+
+ Asset_FileLoad("../Bin/Resources/Models/Effect/NomalMesh", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
+ CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
+ return E_FAIL;
+
+ return S_OK;
+
+ });
+
m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다.");
//if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CGamePlay_Canvas::Create(m_pDevice, m_pContext)))) {
@@ -256,6 +390,7 @@ HRESULT CLoader::Loading_For_GamePlay()
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroom::Create(m_pDevice, m_pContext))))
return E_FAIL;
+
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_PhysXWall::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
@@ -264,6 +399,10 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CPhysXEffectHitBox::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
m_strMessage = TEXT("정보를 불러오는 중입니다.");
m_strMessage = TEXT("로딩이 완료되었습니다..");
@@ -315,6 +454,31 @@ HRESULT CLoader::Loading_For_Restart()
return S_OK;
}
+HRESULT CLoader::Asset_FileLoad(const _char* pDirectoryPath, const _tchar* pPreName, function AddPrototypeEvent)
+{
+ for (const auto& file : filesystem::directory_iterator(pDirectoryPath))
+ {
+ if (file.is_directory())
+ continue;
+
+ string ext = file.path().extension().string();
+
+ if (!strcmp(ext.c_str(), ".txt"))
+ continue;
+
+ _char szFilePath[MAX_PATH] = {};
+
+ strcpy_s(szFilePath, MAX_PATH, file.path().string().c_str());
+
+ wstring wstrFileName = pPreName + file.path().stem().wstring();
+
+ AddPrototypeEvent(wstrFileName, szFilePath);
+
+ }
+
+ return S_OK;
+}
+
CLoader* CLoader::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eNextLevelID)
{
CLoader* pInstance = new CLoader(pDevice, pContext);
diff --git a/Jusin154_Team3D/Client/Private/NomalJap.cpp b/Jusin154_Team3D/Client/Private/NomalJap.cpp
new file mode 100644
index 000000000..b1cc4b88a
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/NomalJap.cpp
@@ -0,0 +1,164 @@
+#include "pch.h"
+#include "NomalJap.h"
+
+#include "GameInstance.h"
+#include "EffectParts.h"
+#include "PhysXEffectHitBox.h"
+
+
+CNomalJap::CNomalJap(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CNomalJap::CNomalJap(const CNomalJap& rhs)
+ : CEffect_Container(rhs)
+{
+
+}
+
+HRESULT CNomalJap::Initialize_Prototype()
+{
+
+ return S_OK;
+
+}
+
+HRESULT CNomalJap::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Child()))
+ return E_FAIL;
+
+ m_wstrEffectName = L"Nomal_Jap";
+
+ m_PartObjects.begin()->second->Set_Visible(true);
+ m_PartObjects.begin()->second->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+
+ m_fDuration = 5.f;
+
+ return S_OK;
+}
+
+void CNomalJap::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CNomalJap::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+}
+
+void CNomalJap::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CNomalJap::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CNomalJap::Ready_Child()
+{
+ CPhysXEffectHitBox::PHYSXDUMMY_DESC Desc{};
+
+ m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+
+ XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f));
+
+ Desc.vRotRPY = { 0.f, 0.f, 0.f };
+ Desc.iSubKind = 70;
+ Desc.vDeltaPos = { 0.f, 0.f, 2.f };
+ Desc.vLifeTime = { 0.f, 2.f };
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, CURRENT_LEVEL, LAYER_HITBOX, &Desc, this , &m_pPhysHitBox))) {
+ assert(false);
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CNomalJap* CNomalJap::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CNomalJap* pInstance = new CNomalJap(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CNomalJap");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CNomalJap::Clone(void* pArg, CGameObject* pOwner)
+{
+ CNomalJap* pInstance = new CNomalJap(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CNomalJap");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CNomalJap::OnCollision(CGameObject* pOther , void* pDesc)
+{
+ //CTransform* pOtherTransform = p
+ ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
+
+ for (auto& pPair : m_PartObjects)
+ {
+ pPair.second->Set_Visible(true);
+ pPair.second->Get_Component()->Set_State(STATE::POSITION, CollisionDesc->vWorldPos);
+ }
+
+ m_PartObjects.begin()->second->Set_Visible(false);
+
+ m_pPhysHitBox->Set_Dead();
+}
+
+void CNomalJap::Free()
+{
+ __super::Free();
+
+ //if(m_pPhysHitBox != nullptr)
+ // if (m_pPhysHitBox->Get_Depth() == false)
+ // SAFE_RELEASE(m_pPhysHitBox);
+
+}
+
+void CNomalJap::Describe_Entity()
+{
+
+}
+
+HRESULT CNomalJap::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp b/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp
new file mode 100644
index 000000000..1904b1ea0
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp
@@ -0,0 +1,199 @@
+#include "pch.h"
+#include "PhysXEffectHitBox.h"
+#include "GameInstance.h"
+
+
+CPhysXEffectHitBox::CPhysXEffectHitBox(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CGameObject{ pDevice, pContext }
+{
+}
+
+CPhysXEffectHitBox::CPhysXEffectHitBox(const CPhysXEffectHitBox& rhs)
+ : CGameObject(rhs)
+{
+}
+
+HRESULT CPhysXEffectHitBox::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CPhysXEffectHitBox::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+void CPhysXEffectHitBox::Priority_Update(_float fTimeDelta)
+{
+ m_pTransformCom->RewindMomentum();
+}
+
+void CPhysXEffectHitBox::Update(_float fTimeDelta)
+{
+ m_pTransformCom->AccumulateMomentum(XMLoadFloat3(&m_vDeltaPos));
+ m_vLifeTime.x += fTimeDelta;
+ if (m_vLifeTime.x > m_vLifeTime.y) {
+ m_bDead = true;
+ }
+}
+
+void CPhysXEffectHitBox::Late_Update(_float fTimeDelta)
+{
+ if (true == m_pCharacter_Controller->IsActive()) {
+ m_pCharacter_Controller->Move(fTimeDelta);
+ }
+ if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
+ m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
+ }
+}
+
+HRESULT CPhysXEffectHitBox::Render()
+{
+ //if (FAILED(Bind_ShaderResources())) {
+ // return E_FAIL;
+ //}
+
+ //if (FAILED(m_pModelCom->Bind_Material(0, m_pShaderCom))) {
+ // return E_FAIL;
+ //}
+ //if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) {
+ // return E_FAIL;
+ //}
+
+ //if (FAILED(m_pModelCom->Render(0))) {
+ // return E_FAIL;
+ //}
+#ifdef _DEBUG
+ if (FAILED(m_pCharacter_Controller->Render())) {
+ return E_FAIL;
+ }
+#endif // _DEBUG
+
+
+ return S_OK;
+}
+
+HRESULT CPhysXEffectHitBox::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+ PHYSXDUMMY_DESC* pDesc = static_cast(pArg);
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPos), 1.f));
+ m_pTransformCom->Rotation(pDesc->vRotRPY.x, pDesc->vRotRPY.y, pDesc->vRotRPY.z);
+ m_vDeltaPos = pDesc->vDeltaPos;
+ m_vLifeTime = pDesc->vLifeTime;
+ { // CCT
+ CCharacter_Controller::Character_Controller_DESC Desc{};
+
+ Desc.iSubKind = pDesc->iSubKind;
+ Desc.pTransform = m_pTransformCom;
+ Desc.eBodyType = ACTOR::BOX;
+ Desc.fContactOffset = 0.1f;
+ Desc.fMaterial = { 0.5f, 0.5f, 0.6f };
+ Desc.bAutoStepping = { false };
+ Desc.fStepOffset = { 0.05f };
+ Desc.fRadius = 0.5f;
+ Desc.fHeight = 1.0f;
+ Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_EffectHitBox_HitReport::Create();
+ Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_EffectHitBox_Behavior::Create();
+ Desc.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY;
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) {
+ return E_FAIL;
+ }
+ }
+ m_pCharacter_Controller->Set_Position(m_pTransformCom->Get_State(STATE::POSITION));
+ /* Com_Shader */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
+ reinterpret_cast(&m_pShaderCom)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Box"), (CComponent**)&m_pModelCom))) {
+ return E_FAIL;
+ }
+
+
+ return S_OK;
+}
+
+HRESULT CPhysXEffectHitBox::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+CPhysXEffectHitBox* CPhysXEffectHitBox::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CPhysXEffectHitBox* pInstance = new CPhysXEffectHitBox(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CPhysXEffectHitBox");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CPhysXEffectHitBox::Clone(void* pArg, CGameObject* pOwner)
+{
+ CPhysXEffectHitBox* pInstance = new CPhysXEffectHitBox(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CPhysXEffectHitBox");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CPhysXEffectHitBox::Free()
+{
+ if (nullptr == m_pGameInstance) {
+ m_pCharacter_Controller->SetActive(false);
+ PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition();
+ PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z);
+ m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
+ m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor());
+
+
+ }
+ __super::Free();
+ if (nullptr != m_pCallBack_Behavior) {
+ m_pCallBack_Behavior->Finalize();
+ }
+ if (nullptr != m_pCallBack_HitReport) {
+ m_pCallBack_HitReport->Finalize();
+ }
+ SAFE_RELEASE(m_pCharacter_Controller);
+ Safe_Delete(m_pCallBack_Behavior);
+ Safe_Delete(m_pCallBack_HitReport);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pModelCom);
+}
+
+void CPhysXEffectHitBox::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp
index 82562d8b4..150724cfd 100644
--- a/Jusin154_Team3D/Client/Private/Player.cpp
+++ b/Jusin154_Team3D/Client/Private/Player.cpp
@@ -21,6 +21,8 @@
#include "State_Combat.h"
#pragma endregion
+#include "Bombard.h"
+
CPlayer::CPlayer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CUnit(pDevice, pContext)
{
diff --git a/Jusin154_Team3D/Client/Private/TrailObject.cpp b/Jusin154_Team3D/Client/Private/TrailObject.cpp
new file mode 100644
index 000000000..5565c2e68
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/TrailObject.cpp
@@ -0,0 +1,297 @@
+#include "pch.h"
+#include "TrailObject.h"
+
+#include "GameInstance.h"
+#include "Trail.h"
+
+
+CTrailObject::CTrailObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CPartObject{ pDevice, pContext }
+{
+}
+
+CTrailObject::CTrailObject(const CTrailObject& rhs)
+ : CPartObject(rhs)
+{
+}
+
+HRESULT CTrailObject::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CTrailObject::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+ return S_OK;
+}
+
+void CTrailObject::Priority_Update(_float fTimeDelta)
+{
+
+}
+
+void CTrailObject::Update(_float fTimeDelta)
+{
+ m_pTrailCom->Trail_Update(fTimeDelta, m_pParentTransformCom->Get_XMWorldMatrix());
+}
+
+void CTrailObject::Late_Update(_float fTimeDelta)
+{
+ if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
+ m_pGameInstance->Add_RenderGroup(RENDER::EFFECT, this);
+ }
+
+}
+
+HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
+{
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pMasking_TextureCom);
+ SAFE_RELEASE(m_pNoise_TextureCom);
+
+ _string strPerfectFilePath = pPath;
+
+ strPerfectFilePath += ".bin";
+
+ DWORD dwByte(0);
+
+ HANDLE hFile = CreateFileW(
+ CMyTools::ToWstring(strPerfectFilePath).c_str(), // 파일 이름
+ GENERIC_READ, // 읽기 모드
+ FILE_SHARE_READ, // 다른 프로세스도 읽기 가능
+ NULL,
+ OPEN_EXISTING, // 기존 파일 열기
+ FILE_ATTRIBUTE_NORMAL,
+ NULL
+ );
+
+ m_strPath = strPerfectFilePath;
+
+ if (hFile == INVALID_HANDLE_VALUE) {
+ MessageBox(NULL, L"오브젝트 읽기 실패", L"System Message", MB_OK);
+ return E_FAIL;
+ }
+
+
+ if (!ReadFile(hFile, &m_eEffectType, sizeof(EFFECT_TYPE), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+
+ 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_strTrailDiffuseName = szName;
+
+ m_isDiffuse = true;
+
+ if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailDiffuseName),
+ reinterpret_cast(&m_pDiffuse_TextureCom))))
+ return E_FAIL;
+
+
+ }
+
+ 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_strTrailNoiseName = szName;
+
+ m_isNoise = true;
+
+ if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailNoiseName),
+ reinterpret_cast(&m_pNoise_TextureCom))))
+ return E_FAIL;
+
+ }
+
+ 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_strTrailMaskingName = szName;
+
+ m_isMask = true;
+
+ if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailMaskingName),
+ reinterpret_cast(&m_pMasking_TextureCom))))
+ return E_FAIL;
+ }
+
+ m_pTrailCom->Load_Trail(hFile);
+
+ CloseHandle(hFile);
+
+
+ MessageBox(NULL, L"트레일 로드 성공", L"System Message", MB_OK);
+
+ return S_OK;
+}
+
+HRESULT CTrailObject::Ready_Components(void* pArg)
+{
+
+ if (FAILED(__super::Ready_Components(nullptr))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_POSTEX, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ CTrail::TRAIL_DESC pTrailDesc;
+
+ pTrailDesc.vHigh = _float3(0.f, 1.f, 0.f);
+ pTrailDesc.vLow = _float3(0.f, -1.f, 0.f);
+
+ if (FAILED(Add_Component(ENUM_CLASS(LEVEL::STATIC), &m_pTrailCom, &pTrailDesc))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CTrailObject::Render()
+{
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_POSTEX::TRAIL))))
+ return E_FAIL;
+
+ if (FAILED(Bind_ShaderResources()))
+ return E_FAIL;
+
+ if (FAILED(m_pTrailCom->Render()))
+ return E_FAIL;
+
+ return S_OK;
+}
+
+
+
+
+CTrailObject* CTrailObject::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CTrailObject* pInstance = new CTrailObject(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CTrailObject");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CTrailObject::Clone(void* pArg, CGameObject* pOwner)
+{
+ CTrailObject* pInstance = new CTrailObject(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CTrailObject");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CTrailObject::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pMasking_TextureCom);
+ SAFE_RELEASE(m_pNoise_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pTrailCom);
+}
+
+void CTrailObject::Describe_Entity()
+{
+}
+
+HRESULT CTrailObject::Bind_ShaderResources()
+{
+
+ if (FAILED(m_pTrailCom->Bind_Resources()))
+ return E_FAIL;
+
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isDiffuse", &m_isDiffuse, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isMask", &m_isMask, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoise", &m_isNoise, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (m_pDiffuse_TextureCom != nullptr)
+ {
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_DiffuseTexture", 0))) {
+ return E_FAIL;
+ }
+ }
+
+ if (m_pNoise_TextureCom != nullptr)
+ {
+ if (FAILED(m_pNoise_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_NoiseTexture", 0))) {
+ return E_FAIL;
+ }
+ }
+
+ if (m_pMasking_TextureCom != nullptr)
+ {
+ if (FAILED(m_pMasking_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_MaskingTexture", 0))) {
+ return E_FAIL;
+ }
+ }
+
+ return S_OK;
+}
diff --git a/Jusin154_Team3D/Client/Public/Bombard.h b/Jusin154_Team3D/Client/Public/Bombard.h
new file mode 100644
index 000000000..c53c892e3
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Bombard.h
@@ -0,0 +1,42 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CBombard final : public CEffect_Container
+{
+private:
+ CBombard(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CBombard(const CBombard& rhs);
+ virtual ~CBombard() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) 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 CPhysXEffectHitBox* m_pPhysHitBox = {};
+ class CPartObject* m_pLight_Projectile = {};
+public:
+ static CBombard* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/EffectObject.h b/Jusin154_Team3D/Client/Public/EffectObject.h
new file mode 100644
index 000000000..1ff1ea0c2
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/EffectObject.h
@@ -0,0 +1,136 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "PartObject.h"
+
+NS_BEGIN(Engine)
+class CInstance_Model;
+class CShader;
+class CTexture;
+class CLight;
+class CTrail;
+NS_END
+
+NS_BEGIN(Client)
+
+class CEffectObject abstract : public CPartObject
+{
+public:
+ typedef struct tagEffectInfo
+ {
+ _float4 vColor = { 0.f ,0.f ,0.f ,1.f };
+
+ _float2 vDiffuseUVGainAmount = {};
+ _float2 vMaskingUVGainAmount = {};
+ _float2 vNoiseUVGainAmount = {};
+
+ _float2 vDiffuseDistortionUVGainAmount = {};
+ _float2 vMaskDistortionUVGainAmount = {};
+
+ _float2 vUVCutting = { 1.f ,1.f };
+ _float2 vUVMaskCutting = { 1.f ,1.f };
+
+ _int iMaskMoveLerpOption = { 0 };
+ _int iDiffuseMoveLerpOption = { 0 };
+ _int iNoiseMoveLerpOption = { 0 };
+
+ _int iMaskDistortionMoveLerpOption = { 0 };
+ _int iDiffuseDistortionMoveLerpOption = { 0 };
+
+ _int iBlurWeight = { 0 };
+
+
+ _bool isDiffuse = {};
+ _bool isMasking = {};
+ _bool isDissolve = {};
+ _bool isNoise = {};
+ _bool isEmissive = {};
+ _bool isDistortion = {};
+ _bool isDiffuseUVMove = {};
+ _bool isNoiseUVMove = {};
+ _bool isMaskUVMove = {};
+ _bool isBlur = {};
+ _bool isBillboard = {};
+
+
+ _float4 vEmissive = { 0.f ,0.f ,0.f ,0.f };
+ _float fDiffuseAlpha = { 1.f };
+ _float fBlurIntensity = {};
+ _float fNoiseDistortionIntensity = {};
+ _float fEmissiveStrength = { 0.f };
+
+ LIGHT_DESC LightDesc = {};
+ RENDER eRenderOrder = { RENDER::EFFECT };
+
+ _bool isReverseDissolve = {};
+
+ EFFECT_TYPE eEffectType = { EFFECT_TYPE::EFFECT };
+
+ _bool isEmissiveDissolve = { false };
+
+ _bool isMaskClampSample = { false };
+ _bool isNoiseColor = { false };
+ _bool isNoiseAlpha = { false };
+ _bool isNomalDissolve = {};
+
+ _float fSoftenExp = { 1.31429f };
+ _float fSoftStrength = {};
+ _float fCoreBoost = {};
+ _float fRadius = {};
+
+ _float fSoftMaskEdge = {};
+ _float fSoftMask = {};
+
+
+ }EFFECT_INFO;
+
+
+protected:
+ CEffectObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CEffectObject(const CEffectObject& rhs);
+ virtual ~CEffectObject() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual HRESULT Render_Blur() override;
+public:
+ HRESULT Load(const _char* pFilePath, LEVEL eLevel);
+
+protected:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+protected:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pNoise_TextureCom = { nullptr };
+ CTexture* m_pMasking_TextureCom = { nullptr };
+ CTexture* m_pDissolve_TextureCom = { nullptr };
+ CTexture* m_pEmissive_TextureCom = { nullptr };
+ CTexture* m_pDistortion_TextureCom = { nullptr };
+
+ CShader* m_pShaderCom = { nullptr };
+ CLight* m_pLightCom = { nullptr };
+
+ CInstance_Model* m_pInstance_ModelCom = { nullptr };
+
+
+protected:
+ EFFECT_INFO m_EffectInfo = {};
+ _string m_strDiffuseName = {};
+ _string m_strNoiseName = {};
+ _string m_strMaskingName = {};
+ _string m_strDissolveName = {};
+ _string m_strModelName = {};
+ _string m_strEmissiveName = {};
+ _string m_strDistortionName = {};
+
+public:
+ virtual void Free() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/EffectParts.h b/Jusin154_Team3D/Client/Public/EffectParts.h
new file mode 100644
index 000000000..6517ab292
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/EffectParts.h
@@ -0,0 +1,37 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "EffectObject.h"
+
+NS_BEGIN(Engine)
+class CModel;
+class CShader;
+NS_END
+
+NS_BEGIN(Client)
+
+class CEffectParts final : public CEffectObject
+{
+private:
+ CEffectParts(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CEffectParts(const CEffectParts& rhs);
+ virtual ~CEffectParts() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+
+public:
+ static CEffectParts* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Effect_Container.h b/Jusin154_Team3D/Client/Public/Effect_Container.h
new file mode 100644
index 000000000..e0e067265
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Effect_Container.h
@@ -0,0 +1,51 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ContainerObject.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CEffect_Container abstract : public CContainerObject
+{
+protected:
+ CEffect_Container(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CEffect_Container(const CEffect_Container& rhs);
+ virtual ~CEffect_Container() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+public:
+ HRESULT Load_Directory(const _char* pPath);
+protected:
+ 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;
+
+ void Update_Event(_float fTimeDelta);
+
+protected:
+ _wstring m_wstrEffectName = {};
+
+ _bool m_isLoop = {};
+
+ _float m_fAccTime = {};
+ _float m_fPreAccTime = {};
+ _float m_fDuration = {};
+ _float m_fDelay = {};
+ _bool m_isDelayed = { false };
+
+ map<_float, function> m_Events = {};
+
+public:
+ virtual void Free() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Loader.h b/Jusin154_Team3D/Client/Public/Loader.h
index fe9223f44..3534ff9c8 100644
--- a/Jusin154_Team3D/Client/Public/Loader.h
+++ b/Jusin154_Team3D/Client/Public/Loader.h
@@ -36,7 +36,8 @@ class CLoader final : public CBase
HRESULT Loading_For_GamePlay();
HRESULT Loading_For_Field();
HRESULT Loading_For_Restart();
-
+private:
+ HRESULT Asset_FileLoad(const _char* pDirectoryPath, const _tchar* pPreName, function AddPrototypeEvent);
public:
static CLoader* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eNextLevelID);
virtual void Free() override;
diff --git a/Jusin154_Team3D/Client/Public/NomalJap.h b/Jusin154_Team3D/Client/Public/NomalJap.h
new file mode 100644
index 000000000..3c99a2848
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/NomalJap.h
@@ -0,0 +1,41 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CNomalJap final : public CEffect_Container
+{
+private:
+ CNomalJap(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CNomalJap(const CNomalJap& rhs);
+ virtual ~CNomalJap() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) 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 CPhysXEffectHitBox* m_pPhysHitBox = {};
+public:
+ static CNomalJap* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/PhysXEffectHitBox.h b/Jusin154_Team3D/Client/Public/PhysXEffectHitBox.h
new file mode 100644
index 000000000..5c5f0d4de
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/PhysXEffectHitBox.h
@@ -0,0 +1,61 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "GameObject.h"
+#include "CallBack_EffectHitBox_Behavior.h"
+#include "CallBack_EffectHitBox_HitReport.h"
+
+NS_BEGIN(Engine)
+class CModel;
+class CShader;
+class CRigidBody;
+NS_END
+
+NS_BEGIN(Client)
+
+class CPhysXEffectHitBox final : public CGameObject
+{
+public:
+ typedef struct tagPhysXDummyDesc
+ {
+ _float3 vPos = {};
+ _float3 vRotRPY = {};
+ _uint iSubKind = {};
+ _float3 vDeltaPos = {};
+ _float2 vLifeTime = {};
+ }PHYSXDUMMY_DESC;
+private:
+ CPhysXEffectHitBox(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CPhysXEffectHitBox(const CPhysXEffectHitBox& rhs);
+ virtual ~CPhysXEffectHitBox() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+ virtual HRESULT Render() override;
+
+private:
+ CCharacter_Controller* m_pCharacter_Controller = { nullptr };
+ CModel* m_pModelCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CCallBack_EffectHitBox_Behavior* m_pCallBack_Behavior = { nullptr };
+ CCallBack_EffectHitBox_HitReport* m_pCallBack_HitReport = { nullptr };
+ _float3 m_vDeltaPos = {};
+ _float2 m_vLifeTime = { };
+
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Bind_ShaderResources() override;
+
+public:
+ static CPhysXEffectHitBox* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/TrailObject.h b/Jusin154_Team3D/Client/Public/TrailObject.h
new file mode 100644
index 000000000..988ef6ea8
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/TrailObject.h
@@ -0,0 +1,63 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "EffectObject.h"
+
+NS_BEGIN(Engine)
+class CShader;
+class CTexture;
+class CTrail;
+NS_END
+
+NS_BEGIN(Client)
+
+class CTrailObject final : public CPartObject
+{
+private:
+ CTrailObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CTrailObject(const CTrailObject& rhs);
+ virtual ~CTrailObject() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+public:
+ HRESULT Load_Trail(const _char* pPath, LEVEL eLevel);
+private:
+ HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Render() override;
+
+public:
+ static CTrailObject* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pNoise_TextureCom = { nullptr };
+ CTexture* m_pMasking_TextureCom = { nullptr };
+
+ CShader* m_pShaderCom = { nullptr };
+ CTrail* m_pTrailCom = { nullptr };
+
+ _string m_strTrailDiffuseName = {};
+ _string m_strTrailNoiseName = {};
+ _string m_strTrailMaskingName = {};
+
+ _string m_strPath = {};
+ _string m_strName = {};
+
+ _bool m_isDiffuse = {};
+ _bool m_isNoise = {};
+ _bool m_isMask = {};
+
+ EFFECT_TYPE m_eEffectType = { EFFECT_TYPE::TRAIL };
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Circle_S.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Circle_S.bin
new file mode 100644
index 000000000..dd9540349
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Circle_S.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4d134c8cb1ad572871031b8731afc595a46080ae2c10bb888aa1adda962c7b7c
+size 811
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BasicParticle2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BasicParticle2.bin
index 8905548cc..ac6aa58f4 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BasicParticle2.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BasicParticle2.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:0bddaec7c43953cf48b607de04044f826d0b938d3a8febd4c3412e60cdc219d3
-size 754
+oid sha256:4919e0e868585d27f3175e2b1ae95f1bc2cf34e9114231e19a54469ef6fa0ca6
+size 762
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BlustParticle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BlustParticle.bin
index 68c274b11..9d42652d4 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BlustParticle.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BlustParticle.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:6527034abc9bec6aeb549613fe9005b652e5dc454b968fa814663439c2dc5cea
-size 707
+oid sha256:4da051ec4d8760ce5cdb5eeb1b62d35d2cb732a84427c73c88b48edabaaf5820
+size 715
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle0.bin
new file mode 100644
index 000000000..7c65c882d
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle0.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:593da97d845239af6f8c60bd6fe6188564ca834291cba69623ba9aa789a22858
+size 807
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle1.bin
new file mode 100644
index 000000000..b19f1f2a2
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle1.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:98c1aabafa6c9c8397a94e56e80159251eda4d449b40ed612a17b7c76f9b9ed8
+size 764
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Explosion.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Explosion.bin
new file mode 100644
index 000000000..ae3113402
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Explosion.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:43cf5bf0f9692bfca0f9dc049ad9290a60da09058403001a81767c6aca8cec3b
+size 758
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_0.bin
new file mode 100644
index 000000000..ce0af12bf
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_0.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c4be9d23c9e5746dfe3be5ab71dbf8fc62ac187ebc75f2ae284678defa2f54a4
+size 762
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_1.bin
new file mode 100644
index 000000000..61a654e8b
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_1.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:40d47864f42963f9aba8af3ee094187a08a53475ba09e014ee473b89cd315732
+size 766
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_2.bin
new file mode 100644
index 000000000..088719d88
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_2.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bb5a86b4dd6de00f3cbce4e6ec95e9b030a6907d596e33a1d9e176e3fab68d1a
+size 758
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_3.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_3.bin
new file mode 100644
index 000000000..ee6bb4fa9
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_3.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:379f94d9deec6c0a0376c82208c27fdd2ce7d70a18f92150186b886324ce4b1c
+size 758
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Projectile.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Projectile.bin
new file mode 100644
index 000000000..06d3c7681
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Projectile.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1677b131af3603894b1382c1238bc86c9531d8c98b4df95bbf8030084e91ea40
+size 863
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Shoot_Pt.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Shoot_Pt.bin
new file mode 100644
index 000000000..65f32c568
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Shoot_Pt.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4f5cae6be738dfbed366df4b2feab895ea73cf7c0b38fcd0949e3307b61cba2b
+size 754
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Smoke.bin
new file mode 100644
index 000000000..be380dad1
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Smoke.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:be68ab7cbb5c751eb4df1cf178ac391f86f61175bc1203f1e9aa67acb4a7701c
+size 713
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Circle0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Circle0.bin
deleted file mode 100644
index df3d71cf2..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Circle0.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:00d283741ea12a585fbea22dce225faccd6387d835dcead66b2f5e3396ac5ef0
-size 807
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Circle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Circle1.bin
deleted file mode 100644
index fe8911802..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Circle1.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:6be7b1f059c23cc86d6492b9adc0e23a486c914523114bef806c6740e0439ab8
-size 756
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Explosion.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Explosion.bin
deleted file mode 100644
index 926ec86a8..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Explosion.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:a805244677b5601cd024802b35b456a379c931285b6b4056231ebc1fcb511b40
-size 750
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_0.bin
deleted file mode 100644
index 508558701..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_0.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:2a13f34f5fa1739da81aaa652d0aa0528c552b45739fd7a1688a3a677c26af3f
-size 707
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_1.bin
deleted file mode 100644
index eb63deff2..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_1.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:8341c87c732cb69671bc7bcbc4e8d0d4173c8ab2115967144626e8b92f1650e1
-size 707
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_2.bin
deleted file mode 100644
index b5bfbbb96..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_2.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:79b814bffb0445f8cbddddcd299673df2c15bf469175a1e47f953a711dbf5142
-size 707
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_3.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_3.bin
deleted file mode 100644
index e7117e0b0..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_3.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:45b640a0bbb2ea7b5b63fc88d9995c916897f102446c28b06f534348bd1ca80f
-size 707
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Projectile.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Projectile.bin
deleted file mode 100644
index 1dc1e4f83..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Projectile.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:d6a2393e330944b0ee49c639fe99ea6164989ceccc597e48e84551b1d64375d8
-size 788
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Smoke.bin
deleted file mode 100644
index be3c2b23e..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Smoke.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:65218dbabefd07543025bba00c4bee0617bee83b98de57c9844547781372bf19
-size 705
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapImpact.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapImpact.bin
index 759f7f1d3..e75f4ffde 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapImpact.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapImpact.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:a6b892cfdd0a8aef117fb7a4afc7089653666870c2e1d23c520824963387f5bd
-size 807
+oid sha256:32e55b25ea8269a7a4fc33173977213d7fc0adef4e0e7438d4944bb2c259ca38
+size 815
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapLight.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapLight.bin
index 6e3ead7ee..8f2a7b7d5 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapLight.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapLight.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:3213bb3a0a08e1d868afc52ec304493e5111271f7661c8db56ce9eb641cde6c4
-size 752
+oid sha256:02d0b970957db4b839f69a8b31ed9372ab3e3ec59c266d47e0795aa89ec4b462
+size 760
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapParticle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapParticle1.bin
index 458c4302c..433e13866 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapParticle1.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapParticle1.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:90dc0962c1416a37debe58bc5b44d8697872f7e9a01fe4585565354517595f3f
-size 700
+oid sha256:25e6939fd9ea31c481cc986c29c39b777adf39a26accbda51083571243bbcca6
+size 708
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapProjectile.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapProjectile.bin
index 87689f225..b57256294 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapProjectile.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapProjectile.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:f5839f16366a626c1e4b91b7e49c71e28e0aad4cfdf649a2e54329aa0413f087
-size 790
+oid sha256:125761b44eb1740cbd69cf816ba9842655f3beb45ab478d240286711f85c5d5e
+size 798
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapProjectile2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapProjectile2.bin
index 55326b2b2..4544d45d5 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapProjectile2.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapProjectile2.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:b7f3086b12947b00771ddb624c4e89b20cec830c1ddb9eafa1e74de28a5058d0
-size 747
+oid sha256:d39015be44876db680d6b0e1884c4e68560653c39ec690c5b8f44428e887305f
+size 755
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectile1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectile1.bin
index df6a48467..09f300105 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectile1.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectile1.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:e447fb46c0fe49c8acc0061ee4b8cf68bdb59c63ee314c9b02a37d5309ac0406
-size 743
+oid sha256:91ce8fb795d36a82c8223f56c8e612fd684a52217337fe2aae2778087e48f925
+size 751
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectile2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectile2.bin
index 2fe8b6abc..dad2a6d5b 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectile2.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectile2.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:a6c04308bbd7dfa71570413576d4f66de96fb6269307201396c9794923c68fb2
-size 753
+oid sha256:cc62cee26718e7c20b11b610a5607b0f6316172e086c4ac3f58611922cdb8321
+size 761
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectileCircle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectileCircle1.bin
index 16f0fd880..b7e3b92cc 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectileCircle1.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectileCircle1.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:cfea59a237f53e73b02cb6623ab2cd0120f1f586aee6921f4bc570086fc065ef
-size 698
+oid sha256:d49ec12307cb4d9073e9030fc60e99714605ee22274cef75f29d2e25f1e88832
+size 706
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectileMiddle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectileMiddle.bin
index c271186f7..db020210a 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectileMiddle.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectileMiddle.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:bf9deea4ae9b01a688785bedf0d08a1179a32af2f0ceaa7020cf7b71749b85e5
-size 755
+oid sha256:cb14da6c40cd2e3296a9c7bd245cd9a27b18334a0484c2730492a0f287c71a18
+size 763
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Bombard.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Bombard.bin
index 34de99318..14775195c 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Bombard.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Bombard.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:ea5f0901fe1f61804ff823cc87eca481d0c8572ef56dc3d0e33fa53316b3245d
-size 236
+oid sha256:f6e731b6987906f2448658f99848e20631838757b20c6950a643f81136b47690
+size 502
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Jap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Jap.bin
index 6fe41b744..b28813ac9 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Jap.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Jap.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:bb36372372bf2af8134a67602cbfcb12d59453bd9de39d84dd5f6ca28e14e684
-size 178
+oid sha256:79e33167c83a310664da5a9b9e606fc0ad4a8b1842ae20549aadf92690a7b70d
+size 352
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Jap2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Jap2.bin
index 4bf1f68b3..905d91a18 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Jap2.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Jap2.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:6091a75b6a0306f07a76699af2d033104315ec52205cdfdd3f633cd9a36ea77d
-size 174
+oid sha256:1b6d8cd29ebd1ffea4e26cdbb65b8a67715def4288899a0e1e4ca20c179fe436
+size 352
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Jap3.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Jap3.bin
index 20aafc905..6cde20e1d 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Jap3.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Jap3.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:58315360932a699e60721381028c74c9e28f29dd38e8ceaf0c501ee056d7bf0c
-size 228
+oid sha256:9b1efe4c752d8a215f19adc218baba9872d7687684f56b0059ac14af146504f3
+size 352
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Light.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Light.bin
index df0e49ab1..f1e2e3409 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Light.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Light.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:e3610476d496d331ec27dd61739b2928f352629b4d904dcb1b79242dc8924f3a
-size 201
+oid sha256:84d17ab11d560e988be1ad90a370d344435218dd79e33e6de5abcae334c98a3e
+size 352
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Smoke1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Smoke1.bin
deleted file mode 100644
index cdf2e890b..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Smoke1.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:15e844a209069d289f4e267e6045fa6887257681163d5b146c97be76fa062db8
-size 752
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Test.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Test.bin
index 38bf119a0..bcdcc68c7 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Test.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Test.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:efe9a30cc81959dd7133ce0bb6276ac5b92eb16e2f1e154832623b9bd5965b90
-size 747
+oid sha256:2a0e85af914bd239835cf11ddf9d5cc7e9a5eb8e10b3ca58d35671a80c17ef20
+size 755
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/BasicParticle2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/BasicParticle2.bin
deleted file mode 100644
index 668d54bb0..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/BasicParticle2.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:92d5aa0adaad0ee75c2344d15eed70744786932153fb53f219efd2835764d29e
-size 746
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/BlustParticle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/BlustParticle.bin
deleted file mode 100644
index 7d64ccea8..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/BlustParticle.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:9d4184e9553e467b77c5466e0cedd9f00168ffed4aea52c07053aa9a7ed03096
-size 699
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Circle0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Circle0.bin
index 7c5ef33f2..a755382ec 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Circle0.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Circle0.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:d5706ffe31f04c0bee3e089e4f239a76fb67bd1237fb22ba8cd01a6fc7e9d17e
-size 799
+oid sha256:367f943b40ade0726986aa1bf3c0d67b29b535681ae6d6d10a7a6ef74bfb6b4f
+size 807
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Circle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Circle1.bin
new file mode 100644
index 000000000..d1e526981
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Circle1.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5c4926f2fc8de0565aeffcc27f993b21770f59435302231d1305e35f73a94e5b
+size 764
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Explosion.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Explosion.bin
index 3774f7ca0..a84bc4fcb 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Explosion.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Explosion.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:2893656232894ac1cc91992b9c97bbba75fcb21e69bc5de935141bc147df9b4e
-size 742
+oid sha256:58e65c18ffa77da07af960c7c2206cc3b52c4c76862728263e68d4e802704961
+size 758
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_0.bin
index a9904eb23..e184a87a0 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_0.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_0.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:e01d1835e23745c543e00f24fd199d7d89732682bcdddbb23c1ed221bd5bb9eb
-size 699
+oid sha256:1df4432e91ffc3bf002e0df74d9452abc3c15a72d99889f8945b9bc37d333908
+size 762
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_1.bin
index c01996bd6..04f1b87a8 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_1.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_1.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:8336e77446690682b872e84a9b60cdcea71bbd75b808e8d31c1b02483b561d01
-size 699
+oid sha256:965f49909fafbff69f2c8051229d6017d421e3a122bd0507dbf4d3c1235df6c5
+size 766
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_2.bin
index 34596452d..564ee46e5 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_2.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_2.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:4e81d31a047678292fe9d68aabd4cb75590a1816003a8f4cc29d85b6c3ec31a3
-size 699
+oid sha256:74aeb2cb30380db5a9f884b19cdba229ab5621c761d516c92c27c31f274163e5
+size 758
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_3.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_3.bin
index 5a0b6a7f3..3926dbdee 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_3.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_3.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:76950f5acde485735c077385f894e217dcfc30dc97d7a21711f2ee149f49b2d3
-size 699
+oid sha256:ef29c7294e103dc613454ed272b1db897b0a1de1bfa03ff8dfb63bef0456461c
+size 758
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Projectile.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Projectile.bin
index cca1aabe7..b65e3d130 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Projectile.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Projectile.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:d41b91c21d40d0c747bf7d7ced3bb1db8a4c6b6fc31893ee7111122170bc40ff
-size 780
+oid sha256:20f6073f983564c9b03ce321adbd375080f4060b9514d2b4f32960bbe7f7d907
+size 863
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Shoot_Pt.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Shoot_Pt.bin
new file mode 100644
index 000000000..a1223fd57
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Shoot_Pt.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b2875c3a6331f86254d7fb8029a33fd68748d1375c445b98fc30912206ffa210
+size 754
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Smoke.bin
index 1c843fca0..064799431 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Smoke.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Smoke.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:a00327d0f76135b565c06bbf73f38d8afc7b7469b9cf1e66dd3e3f05411f9a6e
-size 697
+oid sha256:413a07275ca91d24fab10ab675a21f34958019fc747a01b363c45619636e1629
+size 713
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapImpact.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapImpact.bin
deleted file mode 100644
index 56796e513..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapImpact.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:e7736584a24f1972257417aebda878d3464f37f0da0f27dad48cabd21ff6eca8
-size 799
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapLight.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapLight.bin
deleted file mode 100644
index dc1165384..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapLight.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:40fd0d79f844262822104ed5e604e072258f29ce6f2be142198273d40d23aecf
-size 744
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapParticle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapParticle1.bin
deleted file mode 100644
index 4f9d56f76..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapParticle1.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:d115f65e6f5e4603e16248081717cf5b3aceb1112c6368dead4eeafc8b9a16d3
-size 692
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapProjectile.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapProjectile.bin
deleted file mode 100644
index 737dcd279..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapProjectile.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:297b79febe8f4107fc34192a3b7ace5f0646bc5049d5c763983bca1828359ce4
-size 782
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapProjectile2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapProjectile2.bin
deleted file mode 100644
index bbdae3a81..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapProjectile2.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:50ff8d62caafa01c666960e0b72737da4bfa8905cce9af90c93229a39adf1854
-size 739
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectile1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectile1.bin
deleted file mode 100644
index d6d424595..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectile1.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:8b015bbe1091e4d524d7c7c637f5a42b931cc00e218d2307b637c6bd2103baf9
-size 735
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectile2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectile2.bin
deleted file mode 100644
index 9accc766d..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectile2.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:f1adb0b74c940aa6db942d9a71370cba3a9e095d34ea7b998c89a57e85af686e
-size 745
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectileCircle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectileCircle1.bin
deleted file mode 100644
index 834552570..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectileCircle1.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:d8646e5b9f972c65252ec77a97a97306cf484918ee3a41f451ef2e33c9a37fef
-size 690
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectileMiddle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectileMiddle.bin
deleted file mode 100644
index 0847cebf5..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectileMiddle.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:e4b6c8694927adf82c81db8733687eea942c26557bad8b4c23cea43aa067c84d
-size 747
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Smoke1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Smoke1.bin
deleted file mode 100644
index f13f07f59..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Smoke1.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:5f303dd4a3616b41c4a2dc5838d28579af68dab52871503cb3f90bf03e81877d
-size 744
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Test.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Test.bin
deleted file mode 100644
index a2d043337..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Test.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:ac035576a895f825fa0b0f35847cc45849d20accf2cdf7b40354da6761793b40
-size 739
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
index c9e4f582d..ba1161adb 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
@@ -33,7 +33,9 @@ Texture2D g_ShadowTexture;
Texture2D g_PreShadowTexture;
Texture2D g_BlurTexture;
Texture2D g_BlurXTexture;
+
Texture2D g_BlurWeightTexture;
+Texture2D g_BlurWeightXTexture;
Texture2D g_SurfaceTexture;
@@ -313,12 +315,33 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
return Out;
}
-float g_fWeights[32] =
+//float g_fWeights[32] =
+//{
+// 0.000400, 0.000700, 0.001200, 0.002000, 0.003200, 0.005000, 0.007500, 0.011000,
+// 0.015700, 0.021700, 0.029000, 0.037300, 0.046200, 0.055200, 0.063600, 0.070800,
+// 0.075900, 0.078500, 0.078500, 0.075900, 0.070800, 0.063600, 0.055200, 0.046200,
+// 0.037300, 0.029000, 0.021700, 0.015700, 0.011000, 0.007500, 0.005000, 0.003200
+//};
+
+float g_fWeights[128] =
{
- 0.000400, 0.000700, 0.001200, 0.002000, 0.003200, 0.005000, 0.007500, 0.011000,
- 0.015700, 0.021700, 0.029000, 0.037300, 0.046200, 0.055200, 0.063600, 0.070800,
- 0.075900, 0.078500, 0.078500, 0.075900, 0.070800, 0.063600, 0.055200, 0.046200,
- 0.037300, 0.029000, 0.021700, 0.015700, 0.011000, 0.007500, 0.005000, 0.003200
+ 0.000209902, 0.000241594, 0.000277451, 0.000317919, 0.000363477, 0.000414637, 0.000471944, 0.000535974,
+ 0.000607333, 0.000686659, 0.000774615, 0.000871889, 0.00097919, 0.00109725, 0.00122679, 0.00136858,
+ 0.00152334, 0.00169183, 0.00187477, 0.00207285, 0.00228675, 0.0025171, 0.00276448, 0.0030294,
+ 0.00331231, 0.00361356, 0.00393342, 0.00427205, 0.00462949, 0.00500564, 0.0054003, 0.00581308,
+ 0.00624346, 0.00669075, 0.00715411, 0.0076325, 0.00812472, 0.0086294, 0.009145, 0.0096698,
+ 0.0102019, 0.0107393, 0.0112798, 0.0118211, 0.0123608, 0.0128962, 0.0134249, 0.0139441,
+ 0.0144511, 0.0149431, 0.0154174, 0.0158713, 0.0163021, 0.0167073, 0.0170844, 0.0174311,
+ 0.0177452, 0.0180246, 0.0182676, 0.0184726, 0.0186383, 0.0187635, 0.0188474, 0.0188895,
+
+ 0.0188895, 0.0188474, 0.0187635, 0.0186383, 0.0184726, 0.0182676, 0.0180246, 0.0177452,
+ 0.0174311, 0.0170844, 0.0167073, 0.0163021, 0.0158713, 0.0154174, 0.0149431, 0.0144511,
+ 0.0139441, 0.0134249, 0.0128962, 0.0123608, 0.0118211, 0.0112798, 0.0107393, 0.0102019,
+ 0.0096698, 0.009145, 0.0086294, 0.00812472, 0.0076325, 0.00715411, 0.00669076, 0.00624346,
+ 0.00581308, 0.0054003, 0.00500564, 0.00462948, 0.00427205, 0.00393342, 0.00361356, 0.00331231,
+ 0.0030294, 0.00276448, 0.0025171, 0.00228675, 0.00207285, 0.00187477, 0.00169183, 0.00152334,
+ 0.00136858, 0.00122679, 0.00109725, 0.000979191, 0.000871889, 0.000774615, 0.000686658, 0.000607333,
+ 0.000535973, 0.000471944, 0.000414637, 0.000363477, 0.000317919, 0.000277451, 0.000241594, 0.000209902
};
@@ -395,30 +418,25 @@ PS_OUT_BACKBUFFER PS_MAIN_COMBINED(PS_IN In)
//}
float4 vColor = 0.f;
- //int iBlurWeight = g_BlurWeightTexture.Sample(ClampSampler, In.vTexcoord).r * 32.f;
- //int iBlurMin;
- //int iBlurMax;
- //if (iBlurWeight % 2 == 0)
- //{
- // iBlurMin = -1 * iBlurWeight / 2;
- // iBlurMax = iBlurWeight / 2;
- //}
- //else
- //{
- // iBlurMin = -iBlurWeight / 2;
- // iBlurMax = iBlurWeight / 2 + 1;
- //}
+ int iBlurWeight = (int)(round(g_BlurWeightXTexture.Sample(ClampSampler, In.vTexcoord).r) * 128.f);
- //[loop] // 변수로 루프돌리려면 반드시 필요함
+ int iBlurMin;
+ int iBlurMax;
- for (int i = -15; i < 16; ++i)
+ iBlurMin = -1 * (iBlurWeight / 2) + 1;
+ iBlurMax = iBlurWeight / 2;
+
+ // // 변수로 루프돌리려면 반드시 필요함
+
+
+ for (int i = -63; i < 64; ++i)
{
vTexcoord.x = In.vTexcoord.x;
vTexcoord.y = In.vTexcoord.y + (float) i / g_vResolution.y;
- vColor += g_fWeights[i + 15] * g_BlurXTexture.Sample(ClampSampler, vTexcoord);
+ vColor += g_fWeights[i + 63] * g_BlurXTexture.Sample(ClampSampler, vTexcoord);
}
Out.vBackBuffer += vColor;
@@ -429,6 +447,7 @@ PS_OUT_BACKBUFFER PS_MAIN_COMBINED(PS_IN In)
struct PS_OUT_BLUR_X
{
float4 vBlurX : SV_TARGET0;
+ float4 vBlurWeight : SV_TARGET1;
};
@@ -439,35 +458,38 @@ PS_OUT_BLUR_X PS_MAIN_BLUR_X(PS_IN In)
float2 vTexcoord;
float4 vColor = 0.f;
- //TODO 블러 조절 해보려햇는데 실패함..
+ float fBlurWeight = g_BlurWeightTexture.Sample(ClampSampler, In.vTexcoord).r;
+ int iBlurWeight = (int) (round(fBlurWeight) * 128.f);
- //int iBlurWeight = g_BlurWeightTexture.Sample(ClampSampler, In.vTexcoord).r * 32.f;
+
- //int iBlurMin;
- //int iBlurMax;
+ int iBlurMin;
+ int iBlurMax;
- //if (iBlurWeight % 2 == 0)
+ iBlurMin = -1 * (iBlurWeight / 2) + 1;
+ iBlurMax = iBlurWeight / 2;
+
+ //for (int i = -15; i < 16; ++i)
//{
- // iBlurMin = -1 * iBlurWeight / 2;
- // iBlurMax = iBlurWeight / 2;
- //}
- //else
- //{
- // iBlurMin = -iBlurWeight / 2;
- // iBlurMax = iBlurWeight / 2 + 1;
+ // vTexcoord.x = In.vTexcoord.x;
+ // vTexcoord.y = In.vTexcoord.y + (float) i / g_vResolution.y;
+
+ // vColor += g_fWeights[i + 15] * g_BlurXTexture.Sample(ClampSampler, vTexcoord);
//}
- //[loop] // 변수로 루프돌리려면 반드시 필요함
+ //Out.vBackBuffer += vColor;
- for (int i = -15; i < 16; ++i)
+
+ for (int i = -63; i < 64; ++i)
{
vTexcoord.x = In.vTexcoord.x + (float) i / g_vResolution.x;
vTexcoord.y = In.vTexcoord.y;
- vColor += g_fWeights[i + 15] * g_BlurTexture.Sample(ClampSampler, vTexcoord);
+ vColor += g_fWeights[i + 63] * g_BlurTexture.Sample(ClampSampler, vTexcoord);
}
Out.vBlurX = vColor;
+ Out.vBlurWeight = fBlurWeight;
return Out;
}
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
index 117084542..bc18364e1 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
@@ -38,6 +38,7 @@ struct ParticleValue
float fSizeDrag;
float3 vDeltaSize;
+ float2 vDelay;
};
@@ -79,6 +80,17 @@ void CS_MAIN(
ParticleValue particleValue = g_ParticleValueBufferInput[iIndex];
+ particleValue.vDelay.x += fTimeDelta;
+
+ if (particleValue.vDelay.x < particleValue.vDelay.y)
+ {
+
+ g_VBInstanceOutput[iIndex] = particle;
+ g_ParticleValueOutput[iIndex] = particleValue;
+
+ return;
+ }
+
// 라이프타임 움직임
particle.vLifeTime.x += fTimeDelta;
@@ -97,7 +109,7 @@ void CS_MAIN(
particle.vLifeTime.x = 0.f;
particleValue.vAniIndex.x = 0.f;
-
+ particleValue.vDelay.x = 0.f;
g_VBInstanceOutput[iIndex] = particle;
g_ParticleValueOutput[iIndex] = particleValue;
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
index 8a0db6625..8223c063c 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
@@ -28,8 +28,7 @@ struct ParticleValue
float fSizeDrag;
float3 vDeltaSize;
-
-
+ float2 vDelay;
};
@@ -81,7 +80,7 @@ float g_fBlurIntensity; //블러 세기
float g_fNoiseDistortionIntensity; // 디스토션 왜곡 세기
float4 g_vEmissive;
-float g_fEmissiveStrength;
+float g_fEmissiveStrength;
float g_fSoftenExp;
float g_fSoftStrength;
@@ -104,13 +103,17 @@ bool g_isMaskUVMove;
bool g_isNoiseUVMove;
bool g_isReverseDissolve;
+
bool g_isEmissiveDissolve;
+bool g_isEmissiveDissolveReverse;
+
bool g_isMaskClampSample;
bool g_isNoiseColor;
bool g_isNoiseAlpha;
bool g_isNomalDissolve;
+
float g_fFar;
float2 SelectLerpUV(float2 fAmount, float _fRatio, int iSelectOption)
@@ -310,6 +313,12 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
float2 vMaskingTime = g_ParticleValue[In.iGPUIndex].vMaskingUVMoveTime;
float2 vNoiseUVMoveTime = g_ParticleValue[In.iGPUIndex].vNoiseUVMoveTime;
float2 vDistortionUVMoveTime = g_ParticleValue[In.iGPUIndex].vDistortionUVMoveTime;
+ float2 vDelay = g_ParticleValue[In.iGPUIndex].vDelay;
+
+ if (vDelay.x < vDelay.y)
+ {
+ discard;
+ }
if (g_isDiffuse == true)
{
@@ -407,20 +416,23 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
vMtrlMask = g_MaskingTexture.Sample(ClampSampler, vMaskTexcoord);
else
vMtrlMask = g_MaskingTexture.Sample(PointSampler, vMaskTexcoord);
+
+
+ float fSoftMask;
+
+ if (g_fSoftMask > FLT_EPSILON5)
+ fSoftMask = saturate((vMtrlMask.r - g_fSoftMaskEdge) * g_fSoftMask);
+
+ vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * fSoftMask);
+
}
else
{
vMtrlMask.r = 1.f;
}
-
- float fSoftMask;
-
- if (g_fSoftMask > FLT_EPSILON5)
- fSoftMask = saturate((vMtrlMask.r - g_fSoftMaskEdge) * g_fSoftMask);
-
- vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * fSoftMask);
-
+
+
if (vMtrlDiffuse.a <= 0.f)
discard;
@@ -496,6 +508,13 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
fEmissiveStrength *= (1.f - In.vLifeTime.x / In.vLifeTime.y);
}
+ if (g_isEmissiveDissolveReverse == true)
+ {
+ fEmissiveStrength *= (In.vLifeTime.x / In.vLifeTime.y);
+ }
+
+
+
Out.vColorTarget = vEmissiveMtrl * fEmissive * fEmissiveStrength; // 이미시브 스트랭스
return Out;
@@ -544,6 +563,7 @@ struct PS_BLUR_IN
struct PS_BLUR_OUT
{
float4 vDiffuse : SV_TARGET0;
+ float4 vBlurWeight : SV_TARGET1;
};
@@ -551,7 +571,6 @@ PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In)
{
PS_BLUR_OUT Out;
-
vector vMtrlDiffuse;
vector vMtrlMask;
vector vMtrlNoise;
@@ -563,12 +582,18 @@ PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In)
float2 vMaskingTime = g_ParticleValue[In.iGPUIndex].vMaskingUVMoveTime;
float2 vNoiseUVMoveTime = g_ParticleValue[In.iGPUIndex].vNoiseUVMoveTime;
float2 vDistortionUVMoveTime = g_ParticleValue[In.iGPUIndex].vDistortionUVMoveTime;
+ float2 vDelay = g_ParticleValue[In.iGPUIndex].vDelay;
+
+ if (vDelay.x < vDelay.y)
+ {
+ discard;
+ }
if (g_isDiffuse == true)
{
float2 UV; // 이미지의 UV값
- UV = UV_Cutting(In.vTexcoord, g_vUVCutting, int(fAnimIndex.x));
+ UV = UV_Cutting(In.vTexcoord, g_vUVCutting, int(fAnimIndex));
if (g_isDiffuseUVMove)
{
@@ -617,7 +642,7 @@ PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In)
{
float2 vNoiseUV = In.vTexcoord;
- if(g_isNoiseUVMove == true)
+ if (g_isNoiseUVMove == true)
vNoiseUV = In.vTexcoord + SelectLerpUV(g_vNoiseUVGainAmount, (vNoiseUVMoveTime.x / vNoiseUVMoveTime.y), g_iNoiseMoveLerpOption);
vMtrlNoise = g_NoiseTexture.Sample(DefaultSampler, vNoiseUV);
@@ -634,7 +659,7 @@ PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In)
{
float2 vMaskTexcoord = In.vTexcoord;
- vMaskTexcoord = UV_Cutting(In.vTexcoord, g_vUVMaskCutting, int(fAnimIndex.x));
+ vMaskTexcoord = UV_Cutting(In.vTexcoord, g_vUVMaskCutting, int(fAnimIndex));
// 마스크 디스토션
if (g_isDistortion == true)
@@ -660,31 +685,29 @@ PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In)
vMtrlMask = g_MaskingTexture.Sample(ClampSampler, vMaskTexcoord);
else
vMtrlMask = g_MaskingTexture.Sample(PointSampler, vMaskTexcoord);
-
+
+
+ float fSoftMask;
+
+ if (g_fSoftMask > FLT_EPSILON5)
+ fSoftMask = saturate((vMtrlMask.r - g_fSoftMaskEdge) * g_fSoftMask);
+
+ vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * fSoftMask);
+
+ if (vMtrlDiffuse.a <= 0.f)
+ discard;
}
else
{
vMtrlMask.r = 1.f;
}
-
-
-
- float softMask = saturate((vMtrlMask.r - 0.1) * 1.0);
-
- vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * softMask);
-
- if (vMtrlDiffuse.a <= 0.f)
- discard;
-
vMtrlDiffuse.a *= g_fDiffuseAlpha;
if (g_isDissolve == true)
{
- vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord);
-
if (g_isNomalDissolve)
{
vMtrlDiffuse.a *= (0.95f - In.vLifeTime.x / In.vLifeTime.y);
@@ -706,10 +729,12 @@ PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In)
}
}
+
// 색깔 추가할 처리 (이미시브)
+
float4 vEmissiveMtrl = vector(0.f, 0.f, 0.f, 0.f);
@@ -741,10 +766,9 @@ PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In)
fEmissiveStrength *= (1.f - In.vLifeTime.x / In.vLifeTime.y);
}
- vEmissiveMtrl = vEmissiveMtrl * fEmissive * fEmissiveStrength;
-
Out.vDiffuse = vector(vMtrlDiffuse.rgb * g_fBlurIntensity + vEmissiveMtrl.rgb, vMtrlDiffuse.a); /** vector(vEmissiveColor * fSmoothAlpha, vMtrlDiffuse.a);*/
+ Out.vBlurWeight = g_iBlurWeight / 128.f;
return Out;
}
@@ -766,7 +790,7 @@ technique11 DefaultTechnique
{
SetRasterizerState(RS_Nocull);
SetDepthStencilState(DSS_None, 0);
- SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ SetBlendState(BS_WB_Acc, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_NON_NORMALMAP();
@@ -782,8 +806,6 @@ technique11 DefaultTechnique
PixelShader = compile ps_5_0 PS_BLUR();
}
-
-
}
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
index 0b20027ff..80b4073c2 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
@@ -206,6 +206,7 @@
+
@@ -332,6 +333,7 @@
+
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
index a4e8509b6..afe491829 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
@@ -298,6 +298,9 @@
{0db597d8-c4e7-479a-9b7e-9014b79a5e03}
+
+ {7e8b7123-11fb-4946-99fe-3265932d0536}
+
{072a4e85-ba07-4ffd-bdb1-ddac02558242}
@@ -313,6 +316,9 @@
{92110a48-81d0-4e98-be06-05dd078d0488}
+
+ {c81350c7-0edb-4e51-babf-09bf627414f1}
+
{a56502cb-b0b8-4ea7-bc5e-5482b416fef9}
@@ -666,6 +672,9 @@
02.GameObjects\Wand
+
+ 02.GameObjects\Layer_Effect\Effect\06.Bombard
+
80.State
@@ -997,6 +1006,9 @@
02.GameObjects\Player
+
+ 02.GameObjects\Layer_Effect\Effect\06.Bombard
+
02.GameObjects\Env\05.AlphaMap
diff --git a/Jusin154_Team3D/Editor/Private/Bombard.cpp b/Jusin154_Team3D/Editor/Private/Bombard.cpp
new file mode 100644
index 000000000..0e293e18f
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Bombard.cpp
@@ -0,0 +1,193 @@
+#include "pch.h"
+#include "Bombard.h"
+
+#include "GameInstance.h"
+#include "EditEffect.h"
+#include "Dummy_PhysXEffectHitBox.h"
+
+
+CBombard::CBombard(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CBombard::CBombard(const CBombard& rhs)
+ : CEffect_Container(rhs)
+{
+}
+
+HRESULT CBombard::Initialize_Prototype()
+{
+
+ return S_OK;
+
+}
+
+HRESULT CBombard::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Child()))
+ return E_FAIL;
+
+ if (FAILED(Load_Directory("../Bin/Resources/Data/Effect/Bombard/")))
+ return E_FAIL;
+
+
+ m_wstrEffectName = L"Bombard";
+
+ CPartObject* pShootPt = Get_PartObject("Bombard_Shoot_Pt");
+ m_pLight_Projectile = Get_PartObject("Bombard_Projectile");
+ CPartObject* pCircle0 = Get_PartObject("Bombard_Circle0");
+
+ pShootPt->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+ m_pLight_Projectile->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+ pCircle0->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+
+ pCircle0->Set_Visible(true);
+ pShootPt->Set_Visible(true);
+ m_pLight_Projectile->Set_Visible(true);
+
+ SAFE_ADDREF(m_pLight_Projectile);
+ m_fDuration = 2.5f;
+
+ return S_OK;
+}
+
+void CBombard::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CBombard::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+ _vector vOwnerLook = m_pOwner->Get_Component()->Get_State(STATE::LOOK);
+
+ m_pLight_Projectile->Get_Component()->Translation(vOwnerLook * 2.f);
+}
+
+void CBombard::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CBombard::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CBombard::Ready_Child()
+{
+ CDummy_PhysXEffectHitBox::PHYSXDUMMY_DESC Desc{};
+
+ m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+
+ XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f));
+
+ Desc.vRotRPY = { 0.f, 0.f, 0.f };
+ Desc.iSubKind = 70;
+ Desc.vDeltaPos = { 0.f, 0.f, 2.f };
+ Desc.vLifeTime = { 0.f, 2.f };
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, CURRENT_LEVEL, LAYER_HITBOX, &Desc, this , &m_pPhysHitBox))) {
+ assert(false);
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CBombard* CBombard::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CBombard* pInstance = new CBombard(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CBombard");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CBombard::Clone(void* pArg, CGameObject* pOwner)
+{
+ CBombard* pInstance = new CBombard(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CBombard");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CBombard::OnCollision(CGameObject* pOther , void* pDesc)
+{
+ //CTransform* pOtherTransform = p
+ ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
+
+ for (auto& pPair : m_PartObjects)
+ {
+ pPair.second->Set_Visible(true);
+ pPair.second->Get_Component()->Set_State(STATE::POSITION, CollisionDesc->vWorldPos);
+ }
+
+
+ m_pLight_Projectile->Set_Visible(false);
+ Get_PartObject("Bombard_Shoot_Pt")->Set_Visible(false);
+
+ _vector vOwnerLook = m_pOwner->Get_Component()->Get_State(STATE::LOOK);
+ Get_PartObject("Bombard_Smoke")->Get_Component()->Translation(vOwnerLook);
+
+ Get_PartObject("Bombard_Circle0")->Set_Visible(false);
+
+ m_pPhysHitBox->Set_Dead();
+}
+
+void CBombard::Free()
+{
+ __super::Free();
+
+ //if(m_pPhysHitBox != nullptr)
+ // if (m_pPhysHitBox->Get_Depth() == false)
+ // SAFE_RELEASE(m_pPhysHitBox);
+
+ SAFE_RELEASE(m_pLight_Projectile);
+
+}
+
+void CBombard::Describe_Entity()
+{
+
+}
+
+HRESULT CBombard::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp
index 9983ecb9b..a7c386903 100644
--- a/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp
+++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp
@@ -2,7 +2,9 @@
#include "Dummy_PhysXPlayable.h"
#include "Dummy_PhysXEffectHitBox.h"
#include "GameInstance.h"
+
#include "NomalJap.h"
+#include "Bombard.h"
#include "TrailObject.h"
@@ -54,7 +56,7 @@ void CDummy_PhysXPlayable::Update(_float fTimeDelta)
}
if (m_pGameInstance->Key_Up(DIK_O)) {
{
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::EFFECT), CURRENT_LEVEL, LAYER_HITBOX, nullptr, this))) {
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::EFFECT), CURRENT_LEVEL, LAYER_HITBOX, nullptr, this))) {
assert(false);
return;
}
@@ -115,15 +117,6 @@ HRESULT CDummy_PhysXPlayable::Initialize(void* pArg)
m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody);
m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody);
- CPartObject::PARTOBJECT_DESC PartsDesc{};
-
- PartsDesc.pParentTransform = m_pTransformCom;
-
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::EFFECT), CURRENT_LEVEL, LAYER_HITBOX, &PartsDesc, this))) {
- assert(false);
- return E_FAIL;
- }
-
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/EditEffect.cpp b/Jusin154_Team3D/Editor/Private/EditEffect.cpp
index 1cd833c01..21b96d88e 100644
--- a/Jusin154_Team3D/Editor/Private/EditEffect.cpp
+++ b/Jusin154_Team3D/Editor/Private/EditEffect.cpp
@@ -41,8 +41,8 @@ void CEditEffect::Priority_Update(_float fTimeDelta)
void CEditEffect::Update(_float fTimeDelta)
{
- //if (m_bVisible == false)
- // return;
+ if (m_bVisible == false)
+ return;
if (m_pInstance_ModelCom == nullptr)
return;
@@ -70,6 +70,9 @@ void CEditEffect::Late_Update(_float fTimeDelta)
m_pGameInstance->Add_RenderGroup(RENDER::BLUR, this);
}
+ if (m_EffectInfo.isOnlyBlur == true)
+ return;
+
m_pGameInstance->Add_RenderGroup(RENDER::EFFECT, this);
}
@@ -383,14 +386,21 @@ void CEditEffect::Describe_Entity()
const char* pLerp[] = { "Linear" , "EaseInQuad", "EaseOutQuad", "EaseInCubic" , "EaseOutCubic" , "EaseInOutSin" , "EaseInBack" , "Expo" , "Circle" };
const char* pRenderNames[] = { "PRIORITY" , "SHADOW", "NONBLEND", "BLUR" , "NONLIGHT" ,"EFFECT", "BLEND" , "UI" };
+ const char* pEffectType[] = { "EFFECT" , "TRAIL" };
_int iCurrentItem = static_cast<_int>(m_EffectInfo.eRenderOrder);
+ _int iCurrentType = static_cast<_int>(m_EffectInfo.eEffectType);
if (ImGui::Combo("Render Order", &iCurrentItem, pRenderNames, ENUM_CLASS(RENDER::END)))
{
m_EffectInfo.eRenderOrder = static_cast(iCurrentItem);
}
-
+
+ if (ImGui::Combo("Effect Type", &iCurrentType, pEffectType, ENUM_CLASS(EFFECT_TYPE::END)))
+ {
+ m_EffectInfo.eEffectType = static_cast(iCurrentType);
+ }
+
GUI::Checkbox("Visible", &m_bVisible);
m_pTransformCom->Describe_Entity();
@@ -417,10 +427,11 @@ void CEditEffect::Describe_Entity()
if (GUI::TreeNode("BLUR"))
{
GUI::Checkbox("Blur", &m_EffectInfo.isBlur);
+ GUI::Checkbox("OnlyBlur", &m_EffectInfo.isOnlyBlur);
ImGui::PushItemWidth(80);
GUI::DragFloat("BlurIntensity", &m_EffectInfo.fBlurIntensity, 0.005f, 0.f, 1.f);
- GUI::DragInt("BlurWeight", &m_EffectInfo.iBlurWeight, 1.f, 0, 32);
+ GUI::DragInt("BlurWeight", &m_EffectInfo.iBlurWeight, 2.f, 0, 128);
ImGui::PopItemWidth();
@@ -733,19 +744,19 @@ void CEditEffect::Describe_Entity()
GUI::TreePop();
}
- ImGui::Begin("Simple Plot");
+ //ImGui::Begin("Simple Plot");
- ImGui::PlotLines("Value", m_ValueVector.data(), (int)m_ValueVector.size(), 0, nullptr, FLT_MAX, FLT_MAX, ImVec2(0, 100));
+ //ImGui::PlotLines("Value", m_ValueVector.data(), (int)m_ValueVector.size(), 0, nullptr, FLT_MAX, FLT_MAX, ImVec2(0, 100));
- GUI::InputFloat("InputValue", &m_fInputValue);
+ //GUI::InputFloat("InputValue", &m_fInputValue);
- if (GUI::Button("AddValue"))
- {
- m_ValueVector.push_back(m_fInputValue);
- }
+ //if (GUI::Button("AddValue"))
+ //{
+ // m_ValueVector.push_back(m_fInputValue);
+ //}
- ImGui::End();
+ //ImGui::End();
}
diff --git a/Jusin154_Team3D/Editor/Private/EffectObject.cpp b/Jusin154_Team3D/Editor/Private/EffectObject.cpp
index 060dcbd5f..51a97f3be 100644
--- a/Jusin154_Team3D/Editor/Private/EffectObject.cpp
+++ b/Jusin154_Team3D/Editor/Private/EffectObject.cpp
@@ -8,7 +8,8 @@ CEffectObject::CEffectObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContex
}
CEffectObject::CEffectObject(const CEffectObject& rhs)
- :CPartObject(rhs)
+ :CPartObject(rhs),
+ m_strPath(rhs.m_strPath)
{
}
@@ -117,7 +118,9 @@ HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel)
SAFE_RELEASE(m_pLightCom);
_string strPerfectFilePath = pFilePath;
-
+
+ m_strPath = strPerfectFilePath;
+
strPerfectFilePath += ".bin";
HANDLE hFile = CreateFileW(
@@ -137,7 +140,7 @@ HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel)
}
// 나중에 패키징할때 패스를 저장할거임
- m_strPath = strPerfectFilePath;
+
DWORD dwByte(0);
@@ -382,6 +385,17 @@ HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel)
+ return S_OK;
+}
+
+HRESULT CEffectObject::Load()
+{
+
+ if (FAILED(Load(m_strPath.c_str(), static_cast(NEXT_LEVEL))))
+ return E_FAIL;
+
+
+
return S_OK;
}
@@ -695,6 +709,12 @@ HRESULT CEffectObject::Bind_ShaderResources()
return E_FAIL;
}
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_isEmissiveDissolveReverse", &m_EffectInfo.isEmissiveDissolveReverse, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+
+
if (FAILED(m_pShaderCom->Bind_RawValue("g_vColor", &m_EffectInfo.vColor, sizeof(_float4)))) {
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Editor/Private/Effect_Container.cpp b/Jusin154_Team3D/Editor/Private/Effect_Container.cpp
index 1cb0fe226..858163a37 100644
--- a/Jusin154_Team3D/Editor/Private/Effect_Container.cpp
+++ b/Jusin154_Team3D/Editor/Private/Effect_Container.cpp
@@ -198,7 +198,11 @@ HRESULT CEffect_Container::Load_Package(const _char* pPath)
return E_FAIL;
}
- pEditEffect->Load(strPath.c_str(), LEVEL::EFFECT);
+ if (FAILED(pEditEffect->Load(strPath.c_str(), LEVEL::EFFECT)))
+ {
+ CloseHandle(hFile);
+ return E_FAIL;
+ }
SAFE_RELEASE(pEditEffect);
@@ -235,6 +239,66 @@ HRESULT CEffect_Container::Load_Package(const _char* pPath)
return S_OK;
}
+HRESULT CEffect_Container::Load_Directory(const _char* pPath)
+{
+
+ for (const auto& file : filesystem::directory_iterator(pPath))
+ {
+ if (file.is_directory())
+ continue;
+
+ string ext = file.path().extension().string();
+
+ if (strcmp(ext.c_str(), ".bin"))
+ continue;
+
+ _char szFilePath[MAX_PATH] = {};
+
+ strcpy_s(szFilePath, MAX_PATH, file.path().string().c_str());
+
+
+ /////////////////////////////
+
+ CEditEffect* pEditEffect = nullptr;
+
+ CPartObject::PARTOBJECT_DESC PartsDesc{};
+
+ PartsDesc.pParentTransform = m_pTransformCom;
+
+
+
+
+ /*이펙트 껍데기 생성*/
+
+ _wstring wstrFileName = file.path().stem().wstring(); //이름 넣기
+
+ if (FAILED(Add_PartObject(CMyTools::ToString(wstrFileName), NEXT_LEVEL, &pEditEffect, &PartsDesc))) {
+ assert(false);
+ return E_FAIL;
+ }
+
+
+ /*이펙트 로드 로드*/
+ size_t iPos = {};
+ _string strFilePath = szFilePath;
+
+ while ((iPos = strFilePath.find(".bin")) != std::string::npos) {
+ strFilePath.erase(iPos, 4);
+ };
+
+
+ if (FAILED(pEditEffect->Load(strFilePath.c_str(), LEVEL::EFFECT)))
+ {
+ Safe_Release(pEditEffect);
+ continue;
+ }
+
+ Safe_Release(pEditEffect);
+ }
+
+ return S_OK;
+}
+
HRESULT CEffect_Container::Ready_Components(void* pArg)
{
CTransform::TRANSFORM_DESC TransformDesc = {};
diff --git a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp
index 2d06336bb..c46d9ebf3 100644
--- a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp
+++ b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp
@@ -520,7 +520,7 @@ void CEffect_Editor::Describe_Entity()
if( nullptr != dynamic_cast(pPartObject.second))
strName = "TrailObject" + to_string(iIndex);
else
- strName = "EffectObject" + to_string(iIndex);
+ strName = pPartObject.first;
if (GUI::TreeNode(strName.c_str()))
{
@@ -632,12 +632,12 @@ void CEffect_Editor::Describe_Entity()
GUI::SameLine();
- if (GUI::Button("LOAD PACKAGE"))
+ if (GUI::Button("LOAD DIRECTORY"))
{
- if (SUCCEEDED(Load_Package(m_strPackageSavePath.c_str())))
+ if (SUCCEEDED(Load_Directory(m_strPackageSavePath.c_str())))
{
- MessageBox(NULL, L"패키징 로드 성공", L"System Message", MB_OK);
+ MessageBox(NULL, L"파일 로드 성공", L"System Message", MB_OK);
}
}
diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp
index f2852227c..d568fe29c 100644
--- a/Jusin154_Team3D/Editor/Private/Loader.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader.cpp
@@ -85,6 +85,7 @@
#include "Dummy_Plane.h"
#include "TrailObject.h"
#include "NomalJap.h"
+#include "Bombard.h"
#pragma endregion
@@ -736,7 +737,9 @@ HRESULT CLoader::Loading_For_Effect()
if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CDebugCamera::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
-
+ if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CEditEffect::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CTestEffect::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
@@ -745,10 +748,6 @@ HRESULT CLoader::Loading_For_Effect()
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CEditEffect::Create(m_pDevice, m_pContext)))) {
- return E_FAIL;
- }
-
if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CDummy_Plane::Create(m_pDevice, m_pContext))))
return E_FAIL;
@@ -768,7 +767,9 @@ HRESULT CLoader::Loading_For_Effect()
if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CDummy_Cube::Create(m_pDevice, m_pContext))))
return E_FAIL;
-
+ if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CBombard::Create(m_pDevice, m_pContext))))
+ return E_FAIL;
+
m_strMessage = TEXT("Loading Success!");
diff --git a/Jusin154_Team3D/Editor/Public/Bombard.h b/Jusin154_Team3D/Editor/Public/Bombard.h
new file mode 100644
index 000000000..3f5f2e52a
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Bombard.h
@@ -0,0 +1,42 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Editor)
+
+class CBombard final : public CEffect_Container
+{
+private:
+ CBombard(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CBombard(const CBombard& rhs);
+ virtual ~CBombard() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) 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 CDummy_PhysXEffectHitBox* m_pPhysHitBox = {};
+ class CPartObject* m_pLight_Projectile = {};
+public:
+ static CBombard* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/EffectObject.h b/Jusin154_Team3D/Editor/Public/EffectObject.h
index d2f348617..7c6876a1d 100644
--- a/Jusin154_Team3D/Editor/Public/EffectObject.h
+++ b/Jusin154_Team3D/Editor/Public/EffectObject.h
@@ -78,10 +78,11 @@ class CEffectObject abstract : public CPartObject
_float fCoreBoost = {};
_float fRadius = {};
- _float fSoftMaskEdge;
- _float fSoftMask;
-
+ _float fSoftMaskEdge = {};
+ _float fSoftMask = {};
+ _bool isEmissiveDissolveReverse = { false };
+ _bool isOnlyBlur = { false };
}EFFECT_INFO;
typedef struct tagPreEffectInfo
@@ -141,6 +142,9 @@ class CEffectObject abstract : public CPartObject
_float fCoreBoost = {};
_float fRadius = {};
+ _float fSoftMaskEdge = {};
+ _float fSoftMask = {};
+
}PRE_EFFECT_INFO;
protected:
@@ -156,7 +160,7 @@ class CEffectObject abstract : public CPartObject
virtual HRESULT Render_Blur() override;
public:
HRESULT Load(const _char* pFilePath, LEVEL eLevel);
-
+ HRESULT Load();
public:
#ifdef _DEBUG
HRESULT LoadPre(const _char* pFilePath, LEVEL eLevel);
diff --git a/Jusin154_Team3D/Editor/Public/Effect_Container.h b/Jusin154_Team3D/Editor/Public/Effect_Container.h
index 2d635b102..0fe304473 100644
--- a/Jusin154_Team3D/Editor/Public/Effect_Container.h
+++ b/Jusin154_Team3D/Editor/Public/Effect_Container.h
@@ -25,6 +25,7 @@ class CEffect_Container abstract : public CContainerObject
HRESULT Save_Package(const _char* pPath);
#endif
HRESULT Load_Package(const _char* pPath);
+ HRESULT Load_Directory(const _char* pPath);
protected:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
index c9e4f582d..ba1161adb 100644
--- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
+++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
@@ -33,7 +33,9 @@ Texture2D g_ShadowTexture;
Texture2D g_PreShadowTexture;
Texture2D g_BlurTexture;
Texture2D g_BlurXTexture;
+
Texture2D g_BlurWeightTexture;
+Texture2D g_BlurWeightXTexture;
Texture2D g_SurfaceTexture;
@@ -313,12 +315,33 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
return Out;
}
-float g_fWeights[32] =
+//float g_fWeights[32] =
+//{
+// 0.000400, 0.000700, 0.001200, 0.002000, 0.003200, 0.005000, 0.007500, 0.011000,
+// 0.015700, 0.021700, 0.029000, 0.037300, 0.046200, 0.055200, 0.063600, 0.070800,
+// 0.075900, 0.078500, 0.078500, 0.075900, 0.070800, 0.063600, 0.055200, 0.046200,
+// 0.037300, 0.029000, 0.021700, 0.015700, 0.011000, 0.007500, 0.005000, 0.003200
+//};
+
+float g_fWeights[128] =
{
- 0.000400, 0.000700, 0.001200, 0.002000, 0.003200, 0.005000, 0.007500, 0.011000,
- 0.015700, 0.021700, 0.029000, 0.037300, 0.046200, 0.055200, 0.063600, 0.070800,
- 0.075900, 0.078500, 0.078500, 0.075900, 0.070800, 0.063600, 0.055200, 0.046200,
- 0.037300, 0.029000, 0.021700, 0.015700, 0.011000, 0.007500, 0.005000, 0.003200
+ 0.000209902, 0.000241594, 0.000277451, 0.000317919, 0.000363477, 0.000414637, 0.000471944, 0.000535974,
+ 0.000607333, 0.000686659, 0.000774615, 0.000871889, 0.00097919, 0.00109725, 0.00122679, 0.00136858,
+ 0.00152334, 0.00169183, 0.00187477, 0.00207285, 0.00228675, 0.0025171, 0.00276448, 0.0030294,
+ 0.00331231, 0.00361356, 0.00393342, 0.00427205, 0.00462949, 0.00500564, 0.0054003, 0.00581308,
+ 0.00624346, 0.00669075, 0.00715411, 0.0076325, 0.00812472, 0.0086294, 0.009145, 0.0096698,
+ 0.0102019, 0.0107393, 0.0112798, 0.0118211, 0.0123608, 0.0128962, 0.0134249, 0.0139441,
+ 0.0144511, 0.0149431, 0.0154174, 0.0158713, 0.0163021, 0.0167073, 0.0170844, 0.0174311,
+ 0.0177452, 0.0180246, 0.0182676, 0.0184726, 0.0186383, 0.0187635, 0.0188474, 0.0188895,
+
+ 0.0188895, 0.0188474, 0.0187635, 0.0186383, 0.0184726, 0.0182676, 0.0180246, 0.0177452,
+ 0.0174311, 0.0170844, 0.0167073, 0.0163021, 0.0158713, 0.0154174, 0.0149431, 0.0144511,
+ 0.0139441, 0.0134249, 0.0128962, 0.0123608, 0.0118211, 0.0112798, 0.0107393, 0.0102019,
+ 0.0096698, 0.009145, 0.0086294, 0.00812472, 0.0076325, 0.00715411, 0.00669076, 0.00624346,
+ 0.00581308, 0.0054003, 0.00500564, 0.00462948, 0.00427205, 0.00393342, 0.00361356, 0.00331231,
+ 0.0030294, 0.00276448, 0.0025171, 0.00228675, 0.00207285, 0.00187477, 0.00169183, 0.00152334,
+ 0.00136858, 0.00122679, 0.00109725, 0.000979191, 0.000871889, 0.000774615, 0.000686658, 0.000607333,
+ 0.000535973, 0.000471944, 0.000414637, 0.000363477, 0.000317919, 0.000277451, 0.000241594, 0.000209902
};
@@ -395,30 +418,25 @@ PS_OUT_BACKBUFFER PS_MAIN_COMBINED(PS_IN In)
//}
float4 vColor = 0.f;
- //int iBlurWeight = g_BlurWeightTexture.Sample(ClampSampler, In.vTexcoord).r * 32.f;
- //int iBlurMin;
- //int iBlurMax;
- //if (iBlurWeight % 2 == 0)
- //{
- // iBlurMin = -1 * iBlurWeight / 2;
- // iBlurMax = iBlurWeight / 2;
- //}
- //else
- //{
- // iBlurMin = -iBlurWeight / 2;
- // iBlurMax = iBlurWeight / 2 + 1;
- //}
+ int iBlurWeight = (int)(round(g_BlurWeightXTexture.Sample(ClampSampler, In.vTexcoord).r) * 128.f);
- //[loop] // 변수로 루프돌리려면 반드시 필요함
+ int iBlurMin;
+ int iBlurMax;
- for (int i = -15; i < 16; ++i)
+ iBlurMin = -1 * (iBlurWeight / 2) + 1;
+ iBlurMax = iBlurWeight / 2;
+
+ // // 변수로 루프돌리려면 반드시 필요함
+
+
+ for (int i = -63; i < 64; ++i)
{
vTexcoord.x = In.vTexcoord.x;
vTexcoord.y = In.vTexcoord.y + (float) i / g_vResolution.y;
- vColor += g_fWeights[i + 15] * g_BlurXTexture.Sample(ClampSampler, vTexcoord);
+ vColor += g_fWeights[i + 63] * g_BlurXTexture.Sample(ClampSampler, vTexcoord);
}
Out.vBackBuffer += vColor;
@@ -429,6 +447,7 @@ PS_OUT_BACKBUFFER PS_MAIN_COMBINED(PS_IN In)
struct PS_OUT_BLUR_X
{
float4 vBlurX : SV_TARGET0;
+ float4 vBlurWeight : SV_TARGET1;
};
@@ -439,35 +458,38 @@ PS_OUT_BLUR_X PS_MAIN_BLUR_X(PS_IN In)
float2 vTexcoord;
float4 vColor = 0.f;
- //TODO 블러 조절 해보려햇는데 실패함..
+ float fBlurWeight = g_BlurWeightTexture.Sample(ClampSampler, In.vTexcoord).r;
+ int iBlurWeight = (int) (round(fBlurWeight) * 128.f);
- //int iBlurWeight = g_BlurWeightTexture.Sample(ClampSampler, In.vTexcoord).r * 32.f;
+
- //int iBlurMin;
- //int iBlurMax;
+ int iBlurMin;
+ int iBlurMax;
- //if (iBlurWeight % 2 == 0)
+ iBlurMin = -1 * (iBlurWeight / 2) + 1;
+ iBlurMax = iBlurWeight / 2;
+
+ //for (int i = -15; i < 16; ++i)
//{
- // iBlurMin = -1 * iBlurWeight / 2;
- // iBlurMax = iBlurWeight / 2;
- //}
- //else
- //{
- // iBlurMin = -iBlurWeight / 2;
- // iBlurMax = iBlurWeight / 2 + 1;
+ // vTexcoord.x = In.vTexcoord.x;
+ // vTexcoord.y = In.vTexcoord.y + (float) i / g_vResolution.y;
+
+ // vColor += g_fWeights[i + 15] * g_BlurXTexture.Sample(ClampSampler, vTexcoord);
//}
- //[loop] // 변수로 루프돌리려면 반드시 필요함
+ //Out.vBackBuffer += vColor;
- for (int i = -15; i < 16; ++i)
+
+ for (int i = -63; i < 64; ++i)
{
vTexcoord.x = In.vTexcoord.x + (float) i / g_vResolution.x;
vTexcoord.y = In.vTexcoord.y;
- vColor += g_fWeights[i + 15] * g_BlurTexture.Sample(ClampSampler, vTexcoord);
+ vColor += g_fWeights[i + 63] * g_BlurTexture.Sample(ClampSampler, vTexcoord);
}
Out.vBlurX = vColor;
+ Out.vBlurWeight = fBlurWeight;
return Out;
}
diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
index 117084542..bc18364e1 100644
--- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
+++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
@@ -38,6 +38,7 @@ struct ParticleValue
float fSizeDrag;
float3 vDeltaSize;
+ float2 vDelay;
};
@@ -79,6 +80,17 @@ void CS_MAIN(
ParticleValue particleValue = g_ParticleValueBufferInput[iIndex];
+ particleValue.vDelay.x += fTimeDelta;
+
+ if (particleValue.vDelay.x < particleValue.vDelay.y)
+ {
+
+ g_VBInstanceOutput[iIndex] = particle;
+ g_ParticleValueOutput[iIndex] = particleValue;
+
+ return;
+ }
+
// 라이프타임 움직임
particle.vLifeTime.x += fTimeDelta;
@@ -97,7 +109,7 @@ void CS_MAIN(
particle.vLifeTime.x = 0.f;
particleValue.vAniIndex.x = 0.f;
-
+ particleValue.vDelay.x = 0.f;
g_VBInstanceOutput[iIndex] = particle;
g_ParticleValueOutput[iIndex] = particleValue;
diff --git a/Jusin154_Team3D/Engine/Private/ComputeShader.cpp b/Jusin154_Team3D/Engine/Private/ComputeShader.cpp
index eebd01e99..d4e668c26 100644
--- a/Jusin154_Team3D/Engine/Private/ComputeShader.cpp
+++ b/Jusin154_Team3D/Engine/Private/ComputeShader.cpp
@@ -110,14 +110,9 @@ void CComputeShader::Bind_UAV(_uint iIndex)
void CComputeShader::Bind_OutPut_SRV(_uint iIndex, _uint iBufferIndex)
{
- //m_pContext->PSSetShaderResources(iIndex, // 시작슬롯 번호
- // 1, // 버퍼 개수
- // &m_pOutputSRV[iBufferIndex]); // 버퍼 시작 주소
-
- ID3D11ShaderResourceView* pSRV = m_pOutputSRV[iBufferIndex];
-
- // VS에 바인딩
- m_pContext->VSSetShaderResources(iIndex, 1, &pSRV);
+ m_pContext->PSSetShaderResources(iIndex, // 시작슬롯 번호
+ 1, // 버퍼 개수
+ &m_pOutputSRV[iBufferIndex]); // 버퍼 시작 주
}
diff --git a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp
index 3d44b170e..c276489f8 100644
--- a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp
+++ b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp
@@ -451,8 +451,8 @@ void CInstance_Model::Instane_Buffer_ReStruct()
pParticleValues[i].fGravity = m_pGameInstance->Random_Float(m_InstanceDesc.vGravity.x, m_InstanceDesc.vGravity.y);
pParticleValues[i].fDrag = m_pGameInstance->Random_Float(m_InstanceDesc.vDrag.x, m_InstanceDesc.vDrag.y);
pParticleValues[i].fSizeDrag = m_pGameInstance->Random_Float(m_InstanceDesc.vSizeDrag.x, m_InstanceDesc.vSizeDrag.y);
-
-
+ pParticleValues[i].vDelay = _float2(0.0f, m_pGameInstance->Random_Float(m_InstanceDesc.vDelay.x, m_InstanceDesc.vDelay.y));
+
memcpy(&pParticleValues[i].vOriginRight, SRMatrix.m[0], sizeof(_float4));
memcpy(&pParticleValues[i].vOriginUp, SRMatrix.m[1], sizeof(_float4));
memcpy(&pParticleValues[i].vOriginLook, SRMatrix.m[2], sizeof(_float4));
@@ -628,6 +628,11 @@ void CInstance_Model::Describe_Entity()
Instane_Buffer_ReStruct();
}
+ if (ImGui::DragFloat2("Delay", reinterpret_cast<_float*>(&m_InstanceDesc.vDelay)))
+ {
+ Instane_Buffer_ReStruct();
+ }
+
if (ImGui::DragFloat2("DiffuseUVMoveTime", reinterpret_cast<_float*>(&m_InstanceDesc.vDiffuseUVMoveTime)))
{
Instane_Buffer_ReStruct();
diff --git a/Jusin154_Team3D/Engine/Private/Renderer.cpp b/Jusin154_Team3D/Engine/Private/Renderer.cpp
index 07f23ed5d..b6893b462 100644
--- a/Jusin154_Team3D/Engine/Private/Renderer.cpp
+++ b/Jusin154_Team3D/Engine/Private/Renderer.cpp
@@ -264,6 +264,9 @@ void CRenderer::Render_Combined()
if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Blur_X"), m_pShader, "g_BlurXTexture"))) {
return;
}
+ if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Blur_X_Weight"), m_pShader, "g_BlurWeightXTexture"))) {
+ return;
+ }
}
@@ -368,13 +371,18 @@ void CRenderer::Render_Blur()
return;
}
+ if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Blur_Weight"), m_pShader, "g_BlurWeightTexture"))) {
+ return;
+ }
+
m_pShader->Begin(ENUM_CLASS(SHADER_PASS_DEFERRED::BLUR));
m_pVIBuffer->Bind_Resources();
m_pVIBuffer->Render();
- if (FAILED(m_pGameInstance->End_MRT())) {
+ if (FAILED(m_pGameInstance->End_MRT()))
+ {
return;
}
@@ -566,23 +574,30 @@ HRESULT CRenderer::Initialize()
}
/* Target_Blur */
-
- if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Blur_Weight"), (_uint)Viewport.Width, (_uint)Viewport.Height,
- DXGI_FORMAT_R8G8B8A8_UNORM, _float4(0.0f, 0.0f, 0.0f, 1.0f)))) {
- return E_FAIL;
- }
-
if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Blur"), (_uint)Viewport.Width, (_uint)Viewport.Height,
DXGI_FORMAT_R8G8B8A8_UNORM, _float4(0.0f, 0.0f, 0.0f, 0.0f)))) {
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Blur_Weight"), (_uint)Viewport.Width, (_uint)Viewport.Height,
+ DXGI_FORMAT_R16_FLOAT, _float4(0.0f, 0.0f, 0.0f, 1.0f)))) {
+ return E_FAIL;
+ }
+
+
/* Target_Blur_X */
if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Blur_X"), (_uint)Viewport.Width, (_uint)Viewport.Height,
DXGI_FORMAT_R8G8B8A8_UNORM, _float4(0.0f, 0.0f, 0.0f, 0.0f)))) {
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Blur_X_Weight"), (_uint)Viewport.Width, (_uint)Viewport.Height,
+ DXGI_FORMAT_R16_FLOAT, _float4(0.0f, 0.0f, 0.0f, 1.0f)))) {
+ return E_FAIL;
+ }
+
+
+
/* Target_Color*/
if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Color"), (_uint)Viewport.Width, (_uint)Viewport.Height,
DXGI_FORMAT_R32G32B32A32_FLOAT, _float4(0.0f, 0.0f, 0.0f, 0.0f)))) {
@@ -649,11 +664,20 @@ HRESULT CRenderer::Initialize()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Blur"), TEXT("Target_Blur_Weight")))) {
+ return E_FAIL;
+ }
+
/* MRT_Blur_X */
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Blur_X"), TEXT("Target_Blur_X")))) {
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Blur_X"), TEXT("Target_Blur_X_Weight")))) {
+ return E_FAIL;
+ }
+
+
/* MRT_Color */
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Color"), TEXT("Target_Color")))) {
return E_FAIL;
diff --git a/Jusin154_Team3D/Engine/Public/Instance_Model.h b/Jusin154_Team3D/Engine/Public/Instance_Model.h
index 8a9f222d9..cba913440 100644
--- a/Jusin154_Team3D/Engine/Public/Instance_Model.h
+++ b/Jusin154_Team3D/Engine/Public/Instance_Model.h
@@ -33,56 +33,6 @@ class ENGINE_DLL CInstance_Model final : public CComponent
_bool isMoveForward = {};
_float2 vGravity = { 0.f , 9.8f };
- _bool isSinWave = {};
- _float3 vSinMinAmount = { 0.f , 0.f , 0.f};
- _float3 vSinMaxAmount = { 0.f , 0.f , 0.f };
-
- _bool isTurn;
- _float3 vDeltaAngleMin = {};
- _float3 vDeltaAngleMax = {};
-
- _bool isAxisTurn;
- _float3 vDeltaAxisAngleMin = {};
- _float3 vDeltaAxisAngleMax = {};
-
- _bool isPivotMove = {};
- _float2 vDrag = {};
- _float3 vPivotMin = {};
- _float3 vPivotMax = {};
-
- _bool isSizeLerp = {};
- _float3 vDeltaSize = {};
- _float2 vSizeDrag = {};
-
- }INSTANCE_DESC;
-
- typedef struct tagPreInstanceDesc
- {
- _int iNumInstance = { 1 }; // 인스턴스 개수
-
- _bool isLoop = { true };
- _bool isDrop = { false };
-
- _float2 vLifeTime = { 1.f , 1.f }; // 라이프 타임 min , max
- _float3 vSizeMin = { 1.f, 1.f ,1.f }; // 사이즈 min xyz
- _float3 vSizeMax = { 1.f ,1.f ,1.f }; // 사이즈 max xyz
- _float3 vRotationAngleMin = {}; // 로테이션 min x y z for angle
- _float3 vRotationAngleMax = {};// 로테이션 max x y z for angle
- _float2 vRotationSpeed = {}; // 로테이션 스피드 min , max
- _float2 vSpeed = {}; // 스피드 min , max
- _float3 vCenter = {}; // 센터 위치
- _float3 vRange = {}; // 위치 범위
-
- _float2 vMaskingUVMoveTime = { 1.f, 1.f };
- _float2 vDiffuseUVMoveTime = { 1.f, 1.f };
- _float2 vDistortionUVMoveTime = { 1.f , 1.f };
- _float2 vNoiseUVMoveTime = { 1.f ,1.f };
- _float2 vAniTime = { 1.f , 1.f };
- _float2 vAniIndex = {};
-
- _bool isMoveForward = {};
- _float2 vGravity = { 0.f , 9.8f };
-
_bool isSinWave = {};
_float3 vSinMinAmount = { 0.f , 0.f , 0.f };
_float3 vSinMaxAmount = { 0.f , 0.f , 0.f };
@@ -100,6 +50,64 @@ class ENGINE_DLL CInstance_Model final : public CComponent
_float3 vPivotMin = {};
_float3 vPivotMax = {};
+ _bool isSizeLerp = {};
+ _float3 vDeltaSize = {};
+ _float2 vSizeDrag = {};
+
+ _float2 vDelay = {};
+
+ }INSTANCE_DESC;
+
+ typedef struct tagPreInstanceDesc
+ {
+ _int iNumInstance = { 1 }; // 인스턴스 개수
+
+ _bool isLoop = { true };
+ _bool isDrop = { false };
+
+ _float2 vLifeTime = { 1.f , 1.f }; // 라이프 타임 min , max
+ _float3 vSizeMin = { 1.f, 1.f ,1.f }; // 사이즈 min xyz
+ _float3 vSizeMax = { 1.f ,1.f ,1.f }; // 사이즈 max xyz
+ _float3 vRotationAngleMin = {}; // 로테이션 min x y z for angle
+ _float3 vRotationAngleMax = {};// 로테이션 max x y z for angle
+ _float2 vRotationSpeed = {}; // 로테이션 스피드 min , max
+ _float2 vSpeed = {}; // 스피드 min , max
+ _float3 vCenter = {}; // 센터 위치
+ _float3 vRange = {}; // 위치 범위
+
+ _float2 vMaskingUVMoveTime = { 1.f, 1.f };
+ _float2 vDiffuseUVMoveTime = { 1.f, 1.f };
+ _float2 vDistortionUVMoveTime = { 1.f , 1.f };
+ _float2 vNoiseUVMoveTime = { 1.f ,1.f };
+ _float2 vAniTime = { 1.f , 1.f };
+ _float2 vAniIndex = {};
+
+ _bool isMoveForward = {};
+ _float2 vGravity = { 0.f , 9.8f };
+
+ _bool isSinWave = {};
+ _float3 vSinMinAmount = { 0.f , 0.f , 0.f };
+ _float3 vSinMaxAmount = { 0.f , 0.f , 0.f };
+
+ _bool isTurn = {};
+ _float3 vDeltaAngleMin = {};
+ _float3 vDeltaAngleMax = {};
+
+ _bool isAxisTurn = {};
+ _float3 vDeltaAxisAngleMin = {};
+ _float3 vDeltaAxisAngleMax = {};
+
+ _bool isPivotMove = {};
+ _float2 vDrag = {};
+ _float3 vPivotMin = {};
+ _float3 vPivotMax = {};
+
+ _bool isSizeLerp = {};
+ _float3 vDeltaSize = {};
+ _float2 vSizeDrag = {};
+
+ _float2 vDelay = {};
+
}PRE_INSTANCE_DESC;
typedef struct tagCSParticleDesc
@@ -147,12 +155,13 @@ class ENGINE_DLL CInstance_Model final : public CComponent
_float3 vDeltaAngle = {};
_float3 vDeltaAxisAngle = {};
- _float fDrag;
+ _float fDrag = {};
_float3 vPivot = {};
_float fSizeDrag = {};
_float3 vDeltaSize = {};
+ _float2 vDelay = {};
}CS_PARTICLE_VALUE_DESC;
@@ -213,9 +222,9 @@ class ENGINE_DLL CInstance_Model final : public CComponent
ID3D11Buffer* m_pParticleValueBuffer = { nullptr }; // 컴퓨트 쉐이드 두번째 버퍼 (스피드, 로테이션)
public:
-#ifdef EDITOR_PROJECT
+ //인스턴싱으로 바꾸기
static CInstance_Model* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex);
-#endif
+
virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr);
virtual void Free() override;
void Describe_Entity() override;