diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index 75797926c..377b55015 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -164,10 +164,14 @@ call Update_Resources.bat
+
+
+
+
@@ -348,6 +352,7 @@ call Update_Resources.bat
+
@@ -482,10 +487,15 @@ call Update_Resources.bat
+
+
+
+
+
@@ -671,6 +681,7 @@ call Update_Resources.bat
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index 8ec7b45aa..f75ddb26a 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -973,7 +973,21 @@
02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Prop\Ranrok_PropHit
-
+
+ 02.GameObjects\NPC\Hostile\Monster\Ranrok\Ranrok_Ether
+
+
+ 02.GameObjects\Effect\CutSceneEffect\CutScene_Lightning
+
+
+ 02.GameObjects\Effect\CutSceneEffect\CutScene_Fire
+
+
+ 02.GameObjects\Effect\CutSceneEffect\CutScene_Smoke
+
+
+ 02.GameObjects\Effect\CutSceneEffect\CutScene_Shout
+
04.Mechanic\20.TriggerBox
@@ -2010,6 +2024,24 @@
{2561df42-3dfa-4045-a30c-85f44cd65e09}
+
+ {b31f467c-d66f-4da4-bddb-a55ec8f2bcbb}
+
+
+ {9db6926a-d4a6-4ed3-a5d8-67aaf5cbdb5c}
+
+
+ {a3530fbc-6ba9-433d-9d8d-0090bf8b3367}
+
+
+ {79c6e3f5-c4f3-4e81-8444-f3b7a2f9287d}
+
+
+ {6997eb06-b74d-42e1-b68a-5072f677fefd}
+
+
+ {abf505b2-d91f-4ab1-ad69-ff571a74c035}
+
@@ -2907,6 +2939,26 @@
04.Mechanic\20.TriggerBox
+
+ 02.GameObjects\NPC\Hostile\Monster\Ranrok\Ranrok_Ether
+
+
+ 02.GameObjects\NPC\Hostile\Monster\Ranrok\Ranrok_Ether
+
+
+
+
+ 02.GameObjects\Effect\CutSceneEffect\CutScene_Lightning
+
+
+ 02.GameObjects\Effect\CutSceneEffect\CutScene_Fire
+
+
+ 02.GameObjects\Effect\CutSceneEffect\CutScene_Smoke
+
+
+ 02.GameObjects\Effect\CutSceneEffect\CutScene_Shout
+
diff --git a/Jusin154_Team3D/Client/Private/Accio.cpp b/Jusin154_Team3D/Client/Private/Accio.cpp
index 834213de4..f633a9dff 100644
--- a/Jusin154_Team3D/Client/Private/Accio.cpp
+++ b/Jusin154_Team3D/Client/Private/Accio.cpp
@@ -289,6 +289,9 @@ void CAccio::OnCollision(CGameObject* pOther, void* pDesc)
{
if (m_bHit == false)
return;
+ m_pGameInstance->Sound_Stop(SOUND::SD_KIND::SP_ACCIO_15, SD_CHANNEL_GROUP::EFFECT);
+
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_ACCIO_7, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
dynamic_cast(m_pOwner)->Set_SpellHit(true);
diff --git a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp
index f0d558da7..606894aed 100644
--- a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp
+++ b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp
@@ -11,7 +11,7 @@
#include "InfoInstance.h"
#include "InstancedProp.h"
#include "EffectPool.h"
-
+#include "EffectParts.h"
CBroomRaceManager::CBroomRaceManager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject(pDevice, pContext)
{
@@ -49,6 +49,10 @@ void CBroomRaceManager::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
+ for (auto& RaceEnd : m_pRaceEndEffects)
+ {
+ RaceEnd->Priority_Update(fTimeDelta);
+ }
switch (m_eRaceState)
{
case ENUM_CLASS(RACE_STATE::COUNTDOWN):
@@ -89,6 +93,11 @@ void CBroomRaceManager::Update(_float fTimeDelta)
{
__super::Update(fTimeDelta);
+ for (auto& RaceEnd : m_pRaceEndEffects)
+ {
+ RaceEnd->Update(fTimeDelta);
+ }
+
if (m_bRaceReady == true)
{
m_fRedayTime += fTimeDelta;
@@ -114,6 +123,19 @@ void CBroomRaceManager::Update(_float fTimeDelta)
m_fRacingTimer = 0.f;
if (m_bRaceStart == true)
{
+ CTransform* pRingTransform = m_pRaceRings[m_pRaceRings.size() - 1]->Get_Component();
+ for (auto& RaceEnd : m_pRaceEndEffects)
+ {
+ RaceEnd->Set_Visible(true);
+
+ _vector LastRingPos = pRingTransform->Get_State(STATE::POSITION);
+ _vector ringRIght = pRingTransform->Get_State(STATE::RIGHT);
+ ringRIght = XMVector3Normalize(ringRIght);
+
+ _vector spawnPos = LastRingPos - ringRIght * 27.f;
+
+ RaceEnd->Get_Component()->Set_WorldMatrix(XMMatrixTranslationFromVector(spawnPos));
+ }
m_pInfoInstance->Event_CallBack(TEXT("RaceEnd"));
m_iCount = 3;
m_bRaceStart = false;
@@ -138,6 +160,8 @@ void CBroomRaceManager::Update(_float fTimeDelta)
m_bRaceEnd = false;
m_fDelay = 0.f;
m_bCurrentRace = false;
+ m_pGameInstance->Sound_Stop(SOUND::SD_KIND::BROOM_BOOST, SD_CHANNEL_GROUP::EFFECT);
+ m_pGameInstance->Sound_Stop(SOUND::SD_KIND::BROOM_NORMAL, SD_CHANNEL_GROUP::EFFECT);
}
}
}
@@ -152,6 +176,10 @@ void CBroomRaceManager::Update(_float fTimeDelta)
void CBroomRaceManager::Late_Update(_float fTimeDelta)
{
__super::Late_Update(fTimeDelta);
+ for (auto& RaceEnd : m_pRaceEndEffects)
+ {
+ RaceEnd->Late_Update(fTimeDelta);
+ }
}
HRESULT CBroomRaceManager::Render()
@@ -171,6 +199,39 @@ HRESULT CBroomRaceManager::Ready_Components()
return E_FAIL;
}
+
+ CPartObject::PARTOBJECT_DESC PartsDesc{};
+
+ PartsDesc.pParentTransform = m_pTransformCom;
+
+
+ {
+ _string BasePath = "../Bin/Resources/Data/Effect/BroomRace/";
+
+ array<_string, 3> Colors =
+ {
+ "Firewark_Blue",
+ "Firewark_Red",
+ "Firewark_Yellow"
+ };
+
+ for (_uint i = 0; i < m_pRaceEndEffects.size(); ++i)
+ {
+ _string EffectFinal = BasePath + Colors[i];
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(
+ g_iStaticLevel, NEXT_LEVEL, LAYER_EFFECT, &PartsDesc, this, &m_pRaceEndEffects[i])))
+ {
+ return E_FAIL;
+ }
+
+ SAFE_ADDREF(m_pRaceEndEffects[i]);
+ m_pRaceEndEffects[i]->Load(EffectFinal.c_str(), static_cast(g_iStaticLevel));
+ m_pRaceEndEffects[i]->Set_Visible(false);
+ }
+ }
+
+
return S_OK;
}
@@ -218,6 +279,11 @@ void CBroomRaceManager::Free()
SAFE_RELEASE(Ring);
}
m_pRaceRings.clear();
+
+ for (auto& RaceEndEffects : m_pRaceEndEffects)
+ {
+ SAFE_RELEASE(RaceEndEffects);
+ }
}
#ifdef _DEBUG
@@ -313,6 +379,8 @@ void CBroomRaceManager::Check_RingPassed()
{
racer.curRing = (_uint)m_pRaceRings.size();
+
+
if (racer.pAI) {
racer.pAI->Get_Broom()->Set_Hover(true);
racer.pAI->Get_Broom()->Set_Move(false);
@@ -323,11 +391,15 @@ void CBroomRaceManager::Check_RingPassed()
racer.pRacer->Get_Broom()->Set_Move(false);
}
+
+
XMStoreFloat4(&racer.prevPos, currPos);
continue;
}
racer.pAI ? SetTargetRing(racer.pAI) : SetTargetRing(racer.pRacer);
+
+
}
}
@@ -402,15 +474,12 @@ void CBroomRaceManager::RaceReady()
if (racer.pAI)
{
CTransform* pTransform =
- racer.pAI->Get_Broom()->Get_Component();
-
- const _float fSpacing = 3.0f;
- const _float fJitter = 0.5f;
+ racer.pAI->Get_Broom()->Get_Component();
_float lane = (_float)i - (_float)(m_Racers.size() - 1) * 0.5f;
- _float side = lane * fSpacing;
+ _float side = lane * 3.0f;
- side += m_pGameInstance->Real_Random_Float(-fJitter, fJitter);
+ side += m_pGameInstance->Real_Random_Float(-0.5f, 0.5f);
_vector offset = XMVectorSet(0.f, 1.3f, 0.f, 0.f) + pTransform->Get_State(STATE::LOOK) * side;
@@ -423,8 +492,7 @@ void CBroomRaceManager::RaceReady()
}
else if (racer.pRacer)
{
- CTransform* pTransform =
- racer.pRacer->Get_Component();
+ CTransform* pTransform = racer.pRacer->Get_Component();
CCharacter_Controller* pCharacter = racer.pRacer->Get_Component();
XMStoreFloat4(&m_OriginPos, XMVectorSet(-552.794f, -27.676f, -396.840f, 1.f));
pCharacter->Set_Position(spawnPos);
@@ -432,6 +500,7 @@ void CBroomRaceManager::RaceReady()
pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
racer.pRacer->Get_Broom()->Set_Ride(true);
racer.pRacer->Get_Broom()->Set_Move(false);
+ m_pRaceRings[racer.curRing]->Set_Target(true);;
}
}
@@ -457,9 +526,15 @@ void CBroomRaceManager::SetTargetRing(CGameObject* pRacer)
{
if (racer.pRacer == pRacer)
{
+
+ m_pRaceRings[racer.curRing-1]->Set_Target(false);
+
racer.pRacer->Set_RaceRing(m_pRaceRings[racer.curRing]);
m_pInfoInstance->Event_CallBack(TEXT("CurrentRing"));
m_iLastRing++;
+
+ m_pRaceRings[racer.curRing]->Set_Target(true);
+
}
}
diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
index a16c9ed45..6672b9a01 100644
--- a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
+++ b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
@@ -354,23 +354,20 @@ void CCamPosition_Shoulder::Set_CameraAnim(_uint iIndex)
_vector CCamPosition_Shoulder::Get_ShoulderGlobalPos()
{
// Right/Left 숄더를 로컬 X 부호로 결정
- _float shoulderSideSign = (true == m_bRightShoulderActive) ? 1.f : -1.f;
+ _float fShoulderSide = (true == m_bRightShoulderActive) ? 1.f : -1.f;
- _float3 shoulderLocalPosition = m_vShoulderLocalPos;
- shoulderLocalPosition.x *= shoulderSideSign;
+ _float3 vShoulderLocalPos = m_vShoulderLocalPos;
+ vShoulderLocalPos.x *= fShoulderSide;
- _vector shoulderLocalOffset = XMLoadFloat3(&shoulderLocalPosition);
+ _vector vShoulderLocalOffset = XMLoadFloat3(&vShoulderLocalPos);
// 카메라 회전(현재 마우스로 누적된 pitch/yaw)
- _vector cameraRotationQuaternion = XMQuaternionRotationRollPitchYaw(
+ _vector vCameraRotQ = XMQuaternionRotationRollPitchYaw(
XMConvertToRadians(m_vAccRotDegrees.x + m_vAccRealDegrees.x),
XMConvertToRadians(m_vAccRotDegrees.y + m_vAccRealDegrees.y), 0.f
);
- // 카메라 로컬 오프셋을 카메라 회전에 맞춰 월드로 회전
- _vector shoulderWorldOffset = XMVector3Rotate(shoulderLocalOffset, cameraRotationQuaternion);
-
- return shoulderWorldOffset;
+ return XMVector3Rotate(vShoulderLocalOffset, vCameraRotQ);
}
diff --git a/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp b/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp
index c42135acc..830e7590d 100644
--- a/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp
+++ b/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp
@@ -170,7 +170,7 @@ void CCamera_Cinematic::Trigger(CTimeSocket& Socket)
case TIMESOCKET_FUNC::ROTATION_LERP:
{
Clear_Lerp_Rotation();
- Start_Lerp_Rotation(pContents->vParam_11.x, pContents->pxTransform);
+ Start_Lerp_Rotation(pContents->vParam_11.x, pContents->pxTransform, pContents->vFlags.b[0]);
} break;
case TIMESOCKET_FUNC::LOOK_AT:
{
@@ -352,24 +352,34 @@ void CCamera_Cinematic::Lerp_Rotation(_float fTimeDelta)
Rotation(vRotQ);
}
}
-void CCamera_Cinematic::Start_Lerp_Rotation(_float fTimeMaximum, PSX::PxTransform pxTransform)
+void CCamera_Cinematic::Start_Lerp_Rotation(_float fTimeMaximum, PSX::PxTransform pxTransform, _bool bMainTainDistance)
{
_float4 vRotQ = { pxTransform.q.x, pxTransform.q.y, pxTransform.q.z, pxTransform.q.w };
- Start_Lerp_Rotation(fTimeMaximum, vRotQ);
+ Start_Lerp_Rotation(fTimeMaximum, vRotQ, bMainTainDistance);
+
}
-void CCamera_Cinematic::Start_Lerp_Rotation(_float fTimeMaximum, _float4& vRotQ)
+void CCamera_Cinematic::Start_Lerp_Rotation(_float fTimeMaximum, _float4& vRotQ, _bool bMainTainDistance)
{
m_bLerpRotiation = { fTimeMaximum != 0 };
m_vLerpRotiationTimer = { 0.f, fTimeMaximum };
XMStoreFloat4(&m_vLerpRotQStart, m_pTransformCom->Get_QuarternionVector());
m_vLerpRotQEnd = vRotQ;
+ _vector vPos = m_pFollowTargetPart->Get_WorldPostion();
+ _vector vLookPos = m_pLookTargetPart->Get_WorldPostion();
+
+ m_bMainTainDistance = bMainTainDistance;
+ if (m_bMainTainDistance) {
+ m_fMaintainingDistance = XMVectorGetX(XMVector3Length(vLookPos - vPos));
+ }
}
void CCamera_Cinematic::Clear_Lerp_Rotation()
{
m_bLerpRotiation = { false };
+ m_bMainTainDistance = { false };
m_vLerpRotiationTimer = {};
m_vLerpRotQStart = {};
m_vLerpRotQEnd = {};
+ m_fMaintainingDistance = {};
}
void CCamera_Cinematic::Lerp_FovY(_float fTimeDelta)
{
@@ -427,6 +437,9 @@ void CCamera_Cinematic::Rotation(_fvector vRotQ)
_vector vLookDir = XMVector3Rotate(XMVectorSet(0.f, 0.f, 1.f, 0.f), vRotQ);
if (true == m_pLookTargetPart->IsStalking()) { // 스토킹 중이면 팔로우가 움직이고 아니면 룩타겟이 움직임
+ if (true == m_bLerpRotiation && true == m_bMainTainDistance) {
+ fDistance = m_fMaintainingDistance;
+ }
m_pFollowTargetPart->Set_WorldPostion(XMVectorSetW(vLookPos - (fDistance * vLookDir), 1.f));
}
else {
diff --git a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp
index 184c98758..07388152a 100644
--- a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp
+++ b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp
@@ -254,6 +254,10 @@ void CCamera_Gaze::Describe_Entity()
m_iPriority = iPriority;
}
if (GUI::CollapsingHeader("Camera_Gaze_Describe")) {
+ _float fFovYDegree = XMConvertToDegrees(m_fFovy);
+ if (GUI::SliderFloat("FOV", &fFovYDegree, 0.01f, 89.f, "%.2f")) {
+ m_fFovy = XMConvertToRadians(fFovYDegree);
+ }
m_pTransformCom->Describe_Entity();
GUI::Text("LOOK_SRC %.2f, %.2f, %.2f", m_vLookPos_Src.x, m_vLookPos_Src.y, m_vLookPos_Src.z);
GUI::Text("LOOK_DST %.2f, %.2f, %.2f", m_vLookPos_Dest.x, m_vLookPos_Dest.y, m_vLookPos_Dest.z);
diff --git a/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp b/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp
index 1fecb9d22..8e379dd1d 100644
--- a/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp
+++ b/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp
@@ -580,7 +580,7 @@ void CCutSceneInfo::Set_AllActiveEventsExit()
{
map<_string, TimeLine*>::iterator iter = m_funcActiveEvents.begin();
for (; iter != m_funcActiveEvents.end();++iter) {
- iter->second->m_vTimer.x = 1.f - FLT_EPSILON;
+ iter->second->m_vTimer.x = iter->second->m_vTimer.y - FLT_EPSILON;
for (list::iterator socketIter = (*iter).second->m_Sockets.begin();
socketIter != (*iter).second->m_Sockets.end(); ++socketIter) {
(*socketIter)->Trigger(1.f - FLT_EPSILON);
diff --git a/Jusin154_Team3D/Client/Private/CutScene_Fire.cpp b/Jusin154_Team3D/Client/Private/CutScene_Fire.cpp
new file mode 100644
index 000000000..615d3a547
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/CutScene_Fire.cpp
@@ -0,0 +1,158 @@
+#include "pch.h"
+#include "CutScene_Fire.h"
+
+#include "GameInstance.h"
+#include "EffectParts.h"
+#include "Wand.h"
+
+CCutScene_Fire::CCutScene_Fire(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CCutScene_Fire::CCutScene_Fire(const CCutScene_Fire& rhs)
+ : CEffect_Container(rhs)
+{
+}
+
+HRESULT CCutScene_Fire::Initialize_Prototype()
+{
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/CutSceneFire")))
+ return E_FAIL;
+
+ return S_OK;
+
+}
+
+HRESULT CCutScene_Fire::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Create_Effect()))
+ return E_FAIL;
+
+
+ m_wstrEffectName = L"CutSceneFire";
+
+
+ m_fDuration = 999.f;
+ return S_OK;
+}
+
+void CCutScene_Fire::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CCutScene_Fire::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+
+}
+
+void CCutScene_Fire::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CCutScene_Fire::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject)))
+ return E_FAIL;
+
+ CEffectParts* pFire = Get_PartObject("Fire");
+
+ _float4* vPos = static_cast<_float4*>(pArg);
+ _vector vPosVector = XMLoadFloat4(vPos);
+ pFire->Set_Visible(true);
+
+
+ pFire->Get_Component()->Set_State(STATE::POSITION, vPosVector);
+
+ return S_OK;
+}
+
+HRESULT CCutScene_Fire::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CCutScene_Fire::Ready_Child()
+{
+ return S_OK;
+}
+
+CCutScene_Fire* CCutScene_Fire::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CCutScene_Fire* pInstance = new CCutScene_Fire(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CCutScene_Fire");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CCutScene_Fire::Clone(void* pArg, CGameObject* pOwner)
+{
+ CCutScene_Fire* pInstance = new CCutScene_Fire(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CCutScene_Fire");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CCutScene_Fire::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ //CTransform* pOtherTransform = p
+ ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
+
+}
+
+void CCutScene_Fire::Free()
+{
+ __super::Free();
+
+}
+#ifdef _DEBUG
+
+void CCutScene_Fire::Describe_Entity()
+{
+
+}
+
+#endif // _DEBUG
+
+HRESULT CCutScene_Fire::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Client/Private/CutScene_Lightning.cpp b/Jusin154_Team3D/Client/Private/CutScene_Lightning.cpp
new file mode 100644
index 000000000..0873bcc37
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/CutScene_Lightning.cpp
@@ -0,0 +1,161 @@
+#include "pch.h"
+#include "CutScene_Lightning.h"
+
+#include "GameInstance.h"
+#include "EffectParts.h"
+#include "Wand.h"
+
+CCutScene_Lightning::CCutScene_Lightning(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CCutScene_Lightning::CCutScene_Lightning(const CCutScene_Lightning& rhs)
+ : CEffect_Container(rhs)
+{
+}
+
+HRESULT CCutScene_Lightning::Initialize_Prototype()
+{
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/CutSceneLightning")))
+ return E_FAIL;
+
+ return S_OK;
+
+}
+
+HRESULT CCutScene_Lightning::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Create_Effect()))
+ return E_FAIL;
+
+
+ m_wstrEffectName = L"CutScene_Lightning";
+
+
+ m_fDuration = 3.f;
+
+ return S_OK;
+}
+
+void CCutScene_Lightning::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CCutScene_Lightning::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+
+}
+
+void CCutScene_Lightning::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CCutScene_Lightning::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject)))
+ return E_FAIL;
+
+ CEffectParts* pLightning = Get_PartObject("Lightning_1");
+ CEffectParts* pScreenFlash = Get_PartObject("Screen_Flash");
+
+ _float4* vPos = static_cast<_float4*>(pArg);
+ _vector vPosVector = XMLoadFloat4(vPos);
+ pLightning->Set_Visible(true);
+ pScreenFlash->Set_Visible(true);
+
+
+ pLightning->Get_Component()->Set_State(STATE::POSITION, vPosVector);
+
+ return S_OK;
+}
+
+HRESULT CCutScene_Lightning::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CCutScene_Lightning::Ready_Child()
+{
+ return S_OK;
+}
+
+CCutScene_Lightning* CCutScene_Lightning::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CCutScene_Lightning* pInstance = new CCutScene_Lightning(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CCutScene_Lightning");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CCutScene_Lightning::Clone(void* pArg, CGameObject* pOwner)
+{
+ CCutScene_Lightning* pInstance = new CCutScene_Lightning(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CCutScene_Lightning");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CCutScene_Lightning::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ //CTransform* pOtherTransform = p
+ ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
+
+}
+
+void CCutScene_Lightning::Free()
+{
+ __super::Free();
+
+}
+#ifdef _DEBUG
+
+void CCutScene_Lightning::Describe_Entity()
+{
+
+}
+
+#endif // _DEBUG
+
+HRESULT CCutScene_Lightning::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Client/Private/CutScene_Shout.cpp b/Jusin154_Team3D/Client/Private/CutScene_Shout.cpp
new file mode 100644
index 000000000..e2a518baf
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/CutScene_Shout.cpp
@@ -0,0 +1,156 @@
+#include "pch.h"
+#include "CutScene_Shout.h"
+
+#include "GameInstance.h"
+#include "EffectParts.h"
+#include "Wand.h"
+
+CCutScene_Shout::CCutScene_Shout(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CCutScene_Shout::CCutScene_Shout(const CCutScene_Shout& rhs)
+ : CEffect_Container(rhs)
+{
+}
+
+HRESULT CCutScene_Shout::Initialize_Prototype()
+{
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Ranrok_Shout")))
+ return E_FAIL;
+
+ return S_OK;
+
+}
+
+HRESULT CCutScene_Shout::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Create_Effect()))
+ return E_FAIL;
+
+
+ m_wstrEffectName = L"Ranrok_Shout";
+
+
+ return S_OK;
+}
+
+void CCutScene_Shout::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CCutScene_Shout::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+
+}
+
+void CCutScene_Shout::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CCutScene_Shout::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject)))
+ return E_FAIL;
+
+ CEffectParts* pShout = Get_PartObject("Shout");
+
+ _float4* vPos = static_cast<_float4*>(pArg);
+ _vector vPosVector = XMLoadFloat4(vPos);
+ pShout->Set_Visible(true);
+
+ pShout->Get_Component()->Set_State(STATE::POSITION, vPosVector);
+
+ return S_OK;
+}
+
+HRESULT CCutScene_Shout::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CCutScene_Shout::Ready_Child()
+{
+ return S_OK;
+}
+
+CCutScene_Shout* CCutScene_Shout::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CCutScene_Shout* pInstance = new CCutScene_Shout(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CCutScene_Shout");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CCutScene_Shout::Clone(void* pArg, CGameObject* pOwner)
+{
+ CCutScene_Shout* pInstance = new CCutScene_Shout(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CCutScene_Shout");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CCutScene_Shout::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ //CTransform* pOtherTransform = p
+ ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
+
+}
+
+void CCutScene_Shout::Free()
+{
+ __super::Free();
+
+}
+#ifdef _DEBUG
+
+void CCutScene_Shout::Describe_Entity()
+{
+
+}
+
+#endif // _DEBUG
+
+HRESULT CCutScene_Shout::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Client/Private/CutScene_Smoke.cpp b/Jusin154_Team3D/Client/Private/CutScene_Smoke.cpp
new file mode 100644
index 000000000..52dd516cf
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/CutScene_Smoke.cpp
@@ -0,0 +1,158 @@
+#include "pch.h"
+#include "CutScene_Smoke.h"
+
+#include "GameInstance.h"
+#include "EffectParts.h"
+#include "Wand.h"
+
+CCutScene_Smoke::CCutScene_Smoke(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CCutScene_Smoke::CCutScene_Smoke(const CCutScene_Smoke& rhs)
+ : CEffect_Container(rhs)
+{
+}
+
+HRESULT CCutScene_Smoke::Initialize_Prototype()
+{
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/CutSceneSmoke")))
+ return E_FAIL;
+
+ return S_OK;
+
+}
+
+HRESULT CCutScene_Smoke::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Create_Effect()))
+ return E_FAIL;
+
+
+ m_wstrEffectName = L"CutSceneSmoke";
+
+ m_fDuration = 999.f;
+ return S_OK;
+}
+
+void CCutScene_Smoke::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CCutScene_Smoke::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+
+}
+
+void CCutScene_Smoke::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CCutScene_Smoke::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject)))
+ return E_FAIL;
+
+ CEffectParts* pSmoke = Get_PartObject("Smoke");
+
+ _float4* vPos = static_cast<_float4*>(pArg);
+ _vector vPosVector = XMLoadFloat4(vPos);
+
+ pSmoke->Set_Visible(true);
+
+
+ pSmoke->Get_Component()->Set_State(STATE::POSITION, vPosVector);
+
+ return S_OK;
+}
+
+HRESULT CCutScene_Smoke::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CCutScene_Smoke::Ready_Child()
+{
+ return S_OK;
+}
+
+CCutScene_Smoke* CCutScene_Smoke::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CCutScene_Smoke* pInstance = new CCutScene_Smoke(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CCutScene_Smoke");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CCutScene_Smoke::Clone(void* pArg, CGameObject* pOwner)
+{
+ CCutScene_Smoke* pInstance = new CCutScene_Smoke(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CCutScene_Smoke");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CCutScene_Smoke::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ //CTransform* pOtherTransform = p
+ ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
+
+}
+
+void CCutScene_Smoke::Free()
+{
+ __super::Free();
+
+}
+#ifdef _DEBUG
+
+void CCutScene_Smoke::Describe_Entity()
+{
+
+}
+
+#endif // _DEBUG
+
+HRESULT CCutScene_Smoke::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp
index dc6df249b..891429d46 100644
--- a/Jusin154_Team3D/Client/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp
@@ -78,6 +78,12 @@
#include "Ranrok_DeadImpact.h"
#include "Ranrok_Prop.h"
+
+#include "CutScene_Fire.h"
+#include "CutScene_Lightning.h"
+#include "CutScene_Shout.h"
+#include "CutScene_Smoke.h"
+
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject(pDevice, pContext)
{
@@ -121,7 +127,7 @@ HRESULT CEffectPool::Initialize(void* pArg)
#endif //
#ifdef 기무리
m_isActiveEffectCreate = true;
- m_isActiveMonsterEffectCreate = false;
+ m_isActiveMonsterEffectCreate = true;
#endif //
#ifdef 나
m_isActiveEffectCreate = true;
@@ -564,6 +570,45 @@ HRESULT CEffectPool::Ready_Effect()
))) return E_FAIL;
+ if (FAILED(Create_Effect(SKILL_TYPE::CUTSCENE_FIRE, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CCutScene_Fire* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
+
+
+ if (FAILED(Create_Effect(SKILL_TYPE::CUTSCENE_LIGHTNING, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CCutScene_Lightning* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
+
+
+ if (FAILED(Create_Effect(SKILL_TYPE::CUTSCENE_SHOUT, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CCutScene_Shout* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
+
+
+ if (FAILED(Create_Effect(SKILL_TYPE::CUTSCENE_SMOKE, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CCutScene_Smoke* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp
index 9c6cf2014..d4727e9a9 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp
@@ -178,10 +178,10 @@ HRESULT CGoblin_Assassin::Render()
{
RENDER ePass = m_pGameInstance->Get_CurrentRenderPass();
-
- if (m_bMotionTrail)
+ if (ePass == RENDER::BLEND)
{
- if (ePass == RENDER::BLEND)
+ if (m_bMotionTrail)
+
{
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
@@ -192,9 +192,12 @@ HRESULT CGoblin_Assassin::Render()
return E_FAIL;
}
- return S_OK;
}
+
+ return S_OK;
}
+
+
diff --git a/Jusin154_Team3D/Client/Private/InstancedProp.cpp b/Jusin154_Team3D/Client/Private/InstancedProp.cpp
index 1d7d39eb3..ae093962e 100644
--- a/Jusin154_Team3D/Client/Private/InstancedProp.cpp
+++ b/Jusin154_Team3D/Client/Private/InstancedProp.cpp
@@ -27,10 +27,10 @@ void CInstancedProp::Late_Update(_float fTimeDelta)
}
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
-#ifdef Bin
- m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
- m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this);
-#endif // Bin
+//#ifdef Bin
+// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
+// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this);
+//#endif // Bin
}
HRESULT CInstancedProp::Render()
diff --git a/Jusin154_Team3D/Client/Private/Land.cpp b/Jusin154_Team3D/Client/Private/Land.cpp
index 7bbf48841..32b5f7e63 100644
--- a/Jusin154_Team3D/Client/Private/Land.cpp
+++ b/Jusin154_Team3D/Client/Private/Land.cpp
@@ -32,10 +32,10 @@ void CLand::Late_Update(_float fTimeDelta)
if (m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_fRaduis))
{
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
-#ifdef Bin
- m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
- m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this);
-#endif // Bin
+//#ifdef Bin
+// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
+// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this);
+//#endif // Bin
for (auto& pInstanceProp : m_InstanceProps){
pInstanceProp->Late_Update(fTimeDelta);
}
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index 595793bab..04800e13e 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -170,7 +170,7 @@ void CLevel_GamePlay::Update(_float fTimeDelta)
_bool bStartCinematic = { true };
#ifdef _DEBUG
#ifdef 기무리
- bStartCinematic = false;
+ bStartCinematic = true;
#elif 진우
bStartCinematic = true;
#elif Bin
diff --git a/Jusin154_Team3D/Client/Private/Levioso.cpp b/Jusin154_Team3D/Client/Private/Levioso.cpp
index 639653c91..d1a866af9 100644
--- a/Jusin154_Team3D/Client/Private/Levioso.cpp
+++ b/Jusin154_Team3D/Client/Private/Levioso.cpp
@@ -160,7 +160,6 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject, void* pArg)
}
}
- m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_LEVIOSO, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 59e8c346e..09211227f 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -257,6 +257,11 @@
#include "LightningSide.h"
#include "Transformation.h"
+#include "CutScene_Fire.h"
+#include "CutScene_Lightning.h"
+#include "CutScene_Shout.h"
+#include "CutScene_Smoke.h"
+
#pragma endregion
#pragma region MAP
@@ -455,6 +460,12 @@ HRESULT CLoader::Loading_For_Logo()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_RANROK_ETHER,
+ CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxRanrokEther.hlsl"),
+ VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) {
+ return E_FAIL;
+ }
+
#endif // 기무리
#if 진우
@@ -492,6 +503,9 @@ HRESULT CLoader::Loading_For_Logo()
jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
FX_VTXPOS,
TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"), VTXPOS::Elements, VTXPOS::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_RANROK_ETHER,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_VtxRanrokEther.hlsl"), VTXANIMMESH::Elements, VTXANIMMESH::iNumElements));
}
for (auto& JobMapShader : jobMapShaders)
@@ -565,7 +579,7 @@ HRESULT CLoader::Loading_For_GamePlay()
#ifdef 기무리
isLoad_Background = true;
isLoad_Hogwart = true;
- isLoad_UI_SEQUANTIAL = true;
+ isLoad_UI_SEQUANTIAL = false;
isLoad_NPC = true;
isLoad_Monster = true;
#endif //
@@ -1343,7 +1357,7 @@ HRESULT CLoader::Loading_For_GamePlay()
TEXT("Prototype_Component_Troll_Model")
));
jobCharacterModels.emplace_back(Deferred_ModelLoad(
- MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin",XMMatrixScaling(0.01f,0.01f,0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
TEXT("Prototype_Component_Ranrok_Model")
));
}
@@ -1913,6 +1927,7 @@ HRESULT CLoader::Loading_For_GamePlay()
});
+
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Item"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/GadgetWheel/Item%d.png"), 8)))) {
return E_FAIL;
@@ -2344,7 +2359,20 @@ HRESULT CLoader::Loading_For_GamePlay()
});
+ Asset_FileLoad("../Bin/Resources/Textures/Effect/RanrokEther", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
+ _string strFilePath = pFilePath;
+ _wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
+
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
#pragma endregion
m_strMessage = TEXT("모델를(을) 로딩 중 입니다.");
@@ -2971,8 +2999,23 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCutScene_Fire::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCutScene_Lightning::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCutScene_Shout::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCutScene_Smoke::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
-
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CEffectPool::Create(m_pDevice, m_pContext)))) {
diff --git a/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp b/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp
index 3be107150..ec233874a 100644
--- a/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp
+++ b/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp
@@ -72,10 +72,10 @@ void CMapElement_Cave::Late_Update(_float fTimeDelta)
if (m_bVisible)
{
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
-#ifdef Bin
- m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
- m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this);
-#endif // Bin
+//#ifdef Bin
+// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
+// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this);
+//#endif // Bin
#ifdef _DEBUG
m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, m_pTriggerBox);
#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
index 8e9c8d0f3..9bf92e59c 100644
--- a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
+++ b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
@@ -89,10 +89,10 @@ void CMapObject_Render::Late_Update(_float fTimeDelta)
m_iNumMeshe = m_pModelComs[m_iLodIndex]->Get_NumMeshes();
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
-#ifdef Bin
- m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
- m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this);
-#endif // Bin
+//#ifdef Bin
+// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
+// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this);
+//#endif // Bin
}
}
diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp
index 11b9d3c00..01db23be1 100644
--- a/Jusin154_Team3D/Client/Private/Player.cpp
+++ b/Jusin154_Team3D/Client/Private/Player.cpp
@@ -58,6 +58,10 @@ HRESULT CPlayer::Initialize(void* pArg)
#if 진우
m_isDebugMode = false; // 디버그 무적 모드
#endif
+
+#if 기무리
+ m_isDebugMode = false; // 디버그 무적 모드
+#endif
#if 나
m_isDebugMode = true; // 디버그 무적 모드
#endif
@@ -955,6 +959,85 @@ void CPlayer::Update_CameraCoordinateSystem(_float fTimeDelta)
Update_CameraShake(fTimeDelta);
}
+void CPlayer::UpdateFootStepSound()
+{
+ _uint AnimIndex = m_pModelCom->Get_AnimIndex();
+ _float ratio = m_pModelCom->Get_CurrentTrackProgressRatio();
+
+ if (!m_pFSM->IsEnable(FSMSTATE::WALK | FSMSTATE::JOG | FSMSTATE::SPRINT))
+ return;
+
+ auto timings = GetFootStepTiming(AnimIndex);
+ if (timings.empty())
+ return;
+
+ if (m_iPrevAnimIndex != AnimIndex)
+ {
+ m_iFootStepIndex = 0;
+ m_iFootStepIndex++;
+ m_fPrevMoveRatio = ratio;
+ m_iPrevAnimIndex = AnimIndex;
+ return;
+ }
+
+ _bool bWrapped = (ratio < m_fPrevMoveRatio);
+
+ if (bWrapped)
+ m_iFootStepIndex = 0;
+
+ while (m_iFootStepIndex < timings.size() && ratio >= timings[m_iFootStepIndex])
+ {
+ PlayFootStepSound();
+ m_iFootStepIndex++;
+ }
+
+ m_fPrevMoveRatio = ratio;
+ m_iPrevAnimIndex = AnimIndex;
+}
+
+
+
+vector<_float> CPlayer::GetFootStepTiming(_uint AnimIndex)
+{
+ {
+ if (AnimIndex == m_Animation[STATEANIM::WALK_FWD].first)
+ return { 0.15f, 0.65f };
+
+ if (AnimIndex == m_Animation[STATEANIM::JOG_FWD].first)
+ return { 0.01f, 0.17f, 0.33f,0.49f,0.66f,0.84f };
+
+ if (AnimIndex == m_Animation[STATEANIM::SPRINT].first)
+ return { 0.01f, 0.17f, 0.33f,0.49f,0.66f,0.84f };
+
+ return { 0.12f, 0.62f };
+ }
+}
+
+void CPlayer::PlayFootStepSound()
+{
+ if (m_pGameInstance->Get_CurrentLevelID() == ENUM_CLASS(LEVEL::GAMEPLAY))
+ {
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::STEP_TERRAIN, SD_CHANNEL_GROUP::EFFECT, false, 0.3f);
+ }
+ else if (m_pGameInstance->Get_CurrentLevelID() == ENUM_CLASS(LEVEL::FIELD))
+ {
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::STEP_ROCK, SD_CHANNEL_GROUP::EFFECT, false, 0.3f);
+ }
+}
+
+void CPlayer::StopFootStepSound()
+{
+ if (m_pGameInstance->Get_CurrentLevelID() == ENUM_CLASS(LEVEL::GAMEPLAY))
+ {
+ m_pGameInstance->Sound_Stop(SOUND::SD_KIND::STEP_TERRAIN, SD_CHANNEL_GROUP::EFFECT);
+ }
+ else if (m_pGameInstance->Get_CurrentLevelID() == ENUM_CLASS(LEVEL::FIELD))
+ {
+ m_pGameInstance->Sound_Stop(SOUND::SD_KIND::STEP_ROCK, SD_CHANNEL_GROUP::EFFECT);
+ }
+}
+
+
_matrix CPlayer::Get_WandPos()
{
CWand* pWand = Get_PartObject();
diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp
index ff87b6fcf..f71be6f09 100644
--- a/Jusin154_Team3D/Client/Private/Player_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Player_States.cpp
@@ -678,6 +678,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
}
Player_InterpTurn(fTimeDelta);
+ UpdateFootStepSound();
return S_OK;
}
@@ -744,6 +745,9 @@ void CPlayer::Behavior_MoveExit()
m_pFSM->Disable_State(FSMSTATE::MOVE | FSMSTATE::SPRINT | FSMSTATE::JOG | FSMSTATE::WALK | FSMSTATE::STOP);
Reset_Event();
Get_PartObject()->Set_Visible(true);
+ m_iFootStepIndex = 0;
+ m_fPrevMoveRatio = 0.f;
+
}
void CPlayer::Behavior_JumpEnter()
@@ -1717,9 +1721,9 @@ void CPlayer::Behavior_ShieldEnter()
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::PROTEGO, this); },
0.1f);
- Add_Sound_Event(pairAnimInfo.first,
- [this]() {m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_PROTEGO, SD_CHANNEL_GROUP::VOICE, false, 0.7f); },
- 0.01f);
+ //Add_Sound_Event(pairAnimInfo.first,
+ // [this]() {m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_PROTEGO, SD_CHANNEL_GROUP::VOICE, false, 0.7f); },
+ // 0.01f);
Add_Sound_Event(pairAnimInfo.first,
[this]() {
@@ -2747,7 +2751,10 @@ void CPlayer::Behavior_Broom_DismountExit()
{
m_pFSM->Disable_State(FSMSTATE::BROOM_DISMOUNT);
Reset_Event();
+ m_pGameInstance->Sound_Stop(SOUND::SD_KIND::BROOM_BOOST, SD_CHANNEL_GROUP::EFFECT);
+ m_pGameInstance->Sound_Stop(SOUND::SD_KIND::BROOM_NORMAL, SD_CHANNEL_GROUP::EFFECT);
m_bOnce = false;
+
}
@@ -3073,7 +3080,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
Add_Sound_Event(AnimIndex,
[this]() {
m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_ACCIO_15, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); },
- 0.26f);
+ 0.35f);
Info.pText = TEXT("아씨오!");
m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info);
diff --git a/Jusin154_Team3D/Client/Private/RaceRing.cpp b/Jusin154_Team3D/Client/Private/RaceRing.cpp
index 877fd0186..73c8388cd 100644
--- a/Jusin154_Team3D/Client/Private/RaceRing.cpp
+++ b/Jusin154_Team3D/Client/Private/RaceRing.cpp
@@ -3,14 +3,16 @@
#include "BroomRaceManager.h"
#include "GameInstance.h"
+#include "PartObject.h"
+#include "EffectParts.h"
CRaceRing::CRaceRing(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
- : CGameObject(pDevice, pContext)
+ : CContainerObject(pDevice, pContext)
{
}
CRaceRing::CRaceRing(const CRaceRing& Prototype)
- : CGameObject(Prototype)
+ : CContainerObject(Prototype)
{
}
@@ -30,6 +32,10 @@ HRESULT CRaceRing::Initialize(void* pArg)
return E_FAIL;
}
+ if (FAILED(Ready_Parts())) {
+ return E_FAIL;
+ }
+
//m_iIndex = static_cast(pArg)->iIndex;
//_float X = m_pGameInstance->Real_Random_Float(-200.f, 200.f);
@@ -54,6 +60,8 @@ void CRaceRing::Priority_Update(_float fTimeDelta)
Describe_Entity();
#endif // _DEBUG
+
+ __super::Priority_Update(fTimeDelta);
}
void CRaceRing::Update(_float fTimeDelta)
@@ -61,10 +69,22 @@ void CRaceRing::Update(_float fTimeDelta)
m_pModelCom->Combined_BoneMatrix();
World_to_ScreenUI();
+
+ __super::Update(fTimeDelta);
+
+ if (m_bTarget == true)
+ {
+ m_pRingEffect->Set_Visible(true);
+ m_pRingEffect->Get_Component()->Set_WorldMatrix(m_pTransformCom->Get_XMWorldMatrix());
+ }
+ else {
+ m_pRingEffect->Set_Visible(false);
+ }
}
void CRaceRing::Late_Update(_float fTimeDelta)
{
+ __super::Late_Update(fTimeDelta);
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
}
@@ -238,6 +258,24 @@ HRESULT CRaceRing::Bind_ShaderResources()
return S_OK;
}
+HRESULT CRaceRing::Ready_Parts()
+{
+ CPartObject::PARTOBJECT_DESC PartsDesc{};
+
+ PartsDesc.pParentTransform = m_pTransformCom;
+
+
+ if (FAILED(Add_PartObject("Ring_Blur", g_iStaticLevel, &m_pRingEffect, &PartsDesc)))
+ {
+ return E_FAIL;
+ }
+
+ m_pRingEffect->Load("../Bin/Resources/Data/Effect/BroomRace/Ring_Blur", static_cast(g_iStaticLevel));
+ m_pRingEffect->Set_Visible(false);
+
+ return S_OK;
+}
+
CRaceRing* CRaceRing::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -272,6 +310,7 @@ void CRaceRing::Free()
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pModelCom);
+ SAFE_RELEASE(m_pRingEffect);
}
#ifdef _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Ranrok.cpp b/Jusin154_Team3D/Client/Private/Ranrok.cpp
index 646ba28a8..22dc380ba 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok.cpp
@@ -14,6 +14,7 @@
#include "Layer.h"
#include "Ranrok_Prop.h"
+#include "Ranrok_EtherInfo.h"
#pragma region STATE
#include "State_Idle.h"
@@ -88,6 +89,10 @@ HRESULT CRanrok::Initialize(void* pArg)
m_fRimPower = 2.3f;
m_vRimColor = _float4(0.333f, 0.235f, 0.184f, 0.059f);
+ Ether_Create();
+
+ Ready_Sound_Events("../Bin/Resources/Models/Monster/ConjuredDragon/KeyFrame.xml");
+
return S_OK;
}
@@ -179,25 +184,26 @@ void CRanrok::Update(_float fTimeDelta)
Update_Disolve(fTimeDelta, 0.8f);
m_pMotionTrailCom->Update_Capture(fTimeDelta);
+ Ether_Update(fTimeDelta);
#pragma region TRAIL_UPDATE
- _matrix WorldMat = m_pTransformCom->Get_XMWorldMatrix();
+ //_matrix WorldMat = m_pTransformCom->Get_XMWorldMatrix();
- _matrix LeftEyeMatrix = {};
- _matrix RightEyeMatrix = {};
+ //_matrix LeftEyeMatrix = {};
+ //_matrix RightEyeMatrix = {};
- LeftEyeMatrix = XMLoadFloat4x4(m_pLeftEye_BoneMat);
- RightEyeMatrix = XMLoadFloat4x4(m_pRightEye_BoneMat);
+ //LeftEyeMatrix = XMLoadFloat4x4(m_pLeftEye_BoneMat);
+ //RightEyeMatrix = XMLoadFloat4x4(m_pRightEye_BoneMat);
- for (int i = 0; i < 3; ++i) {
- LeftEyeMatrix.r[i] = XMVector3Normalize(LeftEyeMatrix.r[i]);
- RightEyeMatrix.r[i] = XMVector3Normalize(RightEyeMatrix.r[i]);
- }
+ //for (int i = 0; i < 3; ++i) {
+ // LeftEyeMatrix.r[i] = XMVector3Normalize(LeftEyeMatrix.r[i]);
+ // RightEyeMatrix.r[i] = XMVector3Normalize(RightEyeMatrix.r[i]);
+ //}
- m_pLeftEye_Trail->Trail_Update(LeftEyeMatrix * WorldMat, fTimeDelta);
- m_pRightEye_Trail->Trail_Update(RightEyeMatrix * WorldMat, fTimeDelta);
+ //m_pLeftEye_Trail->Trail_Update(LeftEyeMatrix * WorldMat, fTimeDelta);
+ //m_pRightEye_Trail->Trail_Update(RightEyeMatrix * WorldMat, fTimeDelta);
#pragma endregion
@@ -285,6 +291,10 @@ void CRanrok::Late_Update(_float fTimeDelta)
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, this);
+ m_pGameInstance->Add_RenderGroup(RENDER::EFFECT, this);
+ m_pGameInstance->Add_RenderGroup(RENDER::BLUR, this);
+ m_pGameInstance->Add_RenderGroup(RENDER::BLOOM, this);
+
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
}
@@ -298,7 +308,7 @@ HRESULT CRanrok::Render()
if (RENDER::NONBLEND == eCurrentPass) {
hr = Render_Nonblend();
}
- else if (RENDER::BLEND == eCurrentPass) {
+ else if (RENDER::BLEND == eCurrentPass || RENDER::EFFECT == eCurrentPass) {
hr = Render_Blend();
hr = S_OK;
}
@@ -563,6 +573,11 @@ HRESULT CRanrok::Ready_Components()
return E_FAIL;
}
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_RANROK_ETHER,
+ reinterpret_cast(&m_pEther_Shader)))) {
+ return E_FAIL;
+ }
+
{ // CCT
CCharacter_Controller::Character_Controller_DESC Desc{};
@@ -607,6 +622,9 @@ HRESULT CRanrok::Ready_Components()
}
}
+
+
+
return S_OK;
}
@@ -842,36 +860,62 @@ HRESULT CRanrok::Update_CollidersPosition()
HRESULT CRanrok::Render_Blend()
{
- _float fDiffuseUVRatio = (m_vEtherealTimer.x / m_vEtherealTimer.y);
- if (FAILED(m_pShaderCom->Bind_RawValue("g_fEtherealRatio", &fDiffuseUVRatio, sizeof(_float)))) {
- return E_FAIL;
- }
+
for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_HOT_SPINE); i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); ++i)
{
- if (FAILED(m_pShaderCom->Bind_Matrices("g_OffsetMatrix",
+ RENDER eCurrentPass = m_pGameInstance->Get_CurrentRenderPass();
+
+ if (m_pEtherInfo[i]->Get_RenderOrder() != eCurrentPass || m_pEtherInfo[i]->Get_Visible() == false)
+ continue;
+
+ if (FAILED(m_pEther_Shader->Bind_Matrices("g_OffsetMatrix",
m_pModelCom->Get_OffsetMatrix(i).data(),
(_int)m_pModelCom->Get_OffsetMatrix(i).size())))
{
return E_FAIL;
}
- if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
+ m_pEtherInfo[i]->Bind_Ether_ShaderResources(m_pEther_Shader);
+
+ _float4x4 WorldInv = {};
+
+ XMStoreFloat4x4(&WorldInv, m_pTransformCom->Get_WorldMatrixInv());
+
+ if (FAILED(m_pEther_Shader->Bind_Matrix("g_WorldMatrixInv", &WorldInv))) {
return E_FAIL;
}
- if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
+
+ if (FAILED(m_pEther_Shader->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pEther_Shader, "g_WorldMatrix")))
+ return E_FAIL;
+
+
+
+ if (FAILED(m_pEtherInfo[i]->Ether_Begin(m_pEther_Shader))) {
return E_FAIL;
}
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
+
+
+ if (true == m_bDrawOutLine) {
+ m_pGameInstance->Begin_OutLine_Write(2);
+ }
if (FAILED(m_pModelCom->Render(i))) {
return E_FAIL;
}
+
+ if (true == m_bDrawOutLine) {
+ m_pGameInstance->End_OutLine_Write();
+ }
}
if (m_bMotionTrail) {
-
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
}
@@ -949,6 +993,104 @@ HRESULT CRanrok::Render_OutLine()
return S_OK;
}
+HRESULT CRanrok::Render_Blur()
+{
+
+ for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_HOT_SPINE); i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); ++i)
+ {
+
+ if (m_pEtherInfo[i]->isBlur() == false)
+ continue;
+
+ if (FAILED(m_pEther_Shader->Bind_Matrices("g_OffsetMatrix",
+ m_pModelCom->Get_OffsetMatrix(i).data(),
+ (_int)m_pModelCom->Get_OffsetMatrix(i).size())))
+ {
+ return E_FAIL;
+ }
+
+ m_pEtherInfo[i]->Bind_Ether_ShaderResources(m_pEther_Shader);
+
+ _float4x4 WorldInv = {};
+
+ XMStoreFloat4x4(&WorldInv, m_pTransformCom->Get_WorldMatrixInv());
+
+ if (FAILED(m_pEther_Shader->Bind_Matrix("g_WorldMatrixInv", &WorldInv))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pEther_Shader->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pEther_Shader, "g_WorldMatrix")))
+ return E_FAIL;
+
+
+
+ if (FAILED(m_pEther_Shader->Begin(ENUM_CLASS(SHADER_PASS_ETHER::BLUR)))) {
+ return E_FAIL;
+ }
+
+ m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
+ m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
+
+ if (FAILED(m_pModelCom->Render(i))) {
+ return E_FAIL;
+ }
+
+ }
+
+ return S_OK;
+}
+
+HRESULT CRanrok::Render_Bloom()
+{
+ for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_HOT_SPINE); i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); ++i)
+ {
+
+ if (m_pEtherInfo[i]->isBloom() == false)
+ continue;
+
+ if (FAILED(m_pEther_Shader->Bind_Matrices("g_OffsetMatrix",
+ m_pModelCom->Get_OffsetMatrix(i).data(),
+ (_int)m_pModelCom->Get_OffsetMatrix(i).size())))
+ {
+ return E_FAIL;
+ }
+
+ m_pEtherInfo[i]->Bind_Ether_ShaderResources(m_pEther_Shader);
+
+ _float4x4 WorldInv = {};
+
+ XMStoreFloat4x4(&WorldInv, m_pTransformCom->Get_WorldMatrixInv());
+
+ if (FAILED(m_pEther_Shader->Bind_Matrix("g_WorldMatrixInv", &WorldInv))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pEther_Shader->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pEther_Shader, "g_WorldMatrix")))
+ return E_FAIL;
+
+
+ if (FAILED(m_pEther_Shader->Begin(ENUM_CLASS(SHADER_PASS_ETHER::BLOOM)))) {
+ return E_FAIL;
+ }
+
+ m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
+ m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
+
+ if (FAILED(m_pModelCom->Render(i))) {
+ return E_FAIL;
+ }
+
+ }
+ return S_OK;
+}
void CRanrok::MoveTo(_float fTimeDelta)
{
if (!m_pFSM->IsEnable(FSMSTATE::TUCKED))
@@ -1115,9 +1257,16 @@ void CRanrok::Free()
SAFE_RELEASE(m_pRightEye_Trail);
SAFE_RELEASE(m_pRightPt);
SAFE_RELEASE(m_pLeftPt);
+ SAFE_RELEASE(m_pEther_Shader);
Safe_Delete(m_pCallBack_Behavior);
Safe_Delete(m_pCallBack_HitReport);
+
+ for (size_t i = 0; i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); i++)
+ {
+ SAFE_RELEASE(m_pEtherInfo[i]);
+ }
+
}
#ifdef _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Ranrok_Ether.cpp b/Jusin154_Team3D/Client/Private/Ranrok_Ether.cpp
new file mode 100644
index 000000000..76a53760b
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Ranrok_Ether.cpp
@@ -0,0 +1,26 @@
+#include "pch.h"
+#include "Ranrok.h"
+#include "InfoInstance.h"
+#include "GameInstance.h"
+#include "Ranrok_EtherInfo.h"
+
+void CRanrok::Ether_Create()
+{
+ for (size_t i = 0; i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); i++)
+ {
+ m_pEtherInfo[i] = CRanrok_EtherInfo::Create(m_pDevice, m_pContext);
+ m_pEtherInfo[i]->Set_Visible(false);
+ }
+
+ m_pEtherInfo[ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_EYES)]->Load_Info("../Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether/Eye" , static_cast(g_iStaticLevel));
+ m_pEtherInfo[ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_AURA)]->Load_Info("../Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether/Aura", static_cast(g_iStaticLevel));
+ m_pEtherInfo[ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_WINGS)]->Load_Info("../Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether/Wing", static_cast(g_iStaticLevel));
+}
+
+void CRanrok::Ether_Update(_float fTimeDelata)
+{
+ for (size_t i = 0; i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); i++)
+ {
+ m_pEtherInfo[i]->Update(fTimeDelata);
+ }
+}
diff --git a/Jusin154_Team3D/Client/Private/Ranrok_EtherInfo.cpp b/Jusin154_Team3D/Client/Private/Ranrok_EtherInfo.cpp
new file mode 100644
index 000000000..9dfde9cf8
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Ranrok_EtherInfo.cpp
@@ -0,0 +1,883 @@
+#include "pch.h"
+#include "Ranrok_EtherInfo.h"
+
+#include "GameInstance.h"
+
+CRanrok_EtherInfo::CRanrok_EtherInfo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CGameObject(pDevice, pContext)
+{
+}
+
+CRanrok_EtherInfo::CRanrok_EtherInfo(const CRanrok_EtherInfo& Prototype)
+ : CGameObject(Prototype)
+{
+}
+
+HRESULT CRanrok_EtherInfo::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CRanrok_EtherInfo::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(Ready_Components())) {
+ return E_FAIL;
+ }
+
+ m_Ether_Info.eRenderOrder = RENDER::BLEND;
+
+ return S_OK;
+}
+
+void CRanrok_EtherInfo::Priority_Update(_float fTimeDelta)
+{
+
+}
+
+void CRanrok_EtherInfo::Update(_float fTimeDelta)
+{
+ Update_Time(fTimeDelta);
+}
+
+void CRanrok_EtherInfo::Late_Update(_float fTimeDelta)
+{
+
+}
+
+HRESULT CRanrok_EtherInfo::Render()
+{
+ return S_OK;
+}
+
+
+
+void CRanrok_EtherInfo::Update_Time(_float fTimeDelta)
+{
+
+ m_ErherTimeInfo.vAnimTime.x += fTimeDelta;
+
+ if (m_ErherTimeInfo.vAnimTime.x >= m_ErherTimeInfo.vAnimTime.y)
+ {
+ m_ErherTimeInfo.vAnimTime.x = 0.f;
+
+ m_ErherTimeInfo.vAnimIndex.x += 1.f;
+
+ if (m_ErherTimeInfo.vAnimIndex.x > m_ErherTimeInfo.vAnimIndex.y) // 애니메이션에 끝에 다다랐다면
+ {
+ m_ErherTimeInfo.vAnimIndex.x = 0.f; // 인덱스 초기화
+
+ }
+ }
+
+ m_ErherTimeInfo.vLifeTime.x += fTimeDelta;
+
+ if (m_ErherTimeInfo.vLifeTime.x >= m_ErherTimeInfo.vLifeTime.y)
+ {
+ m_ErherTimeInfo.vLifeTime.x = 0.f;
+ }
+
+ m_ErherTimeInfo.vDiffuseUVMoveTime.x += fTimeDelta;
+
+ if (m_ErherTimeInfo.vDiffuseUVMoveTime.x >= m_ErherTimeInfo.vDiffuseUVMoveTime.y)
+ {
+ m_ErherTimeInfo.vDiffuseUVMoveTime.x = 0.f;
+ }
+
+ m_ErherTimeInfo.vMaskingUVMoveTime.x += fTimeDelta;
+
+ if (m_ErherTimeInfo.vMaskingUVMoveTime.x >= m_ErherTimeInfo.vMaskingUVMoveTime.y)
+ {
+ m_ErherTimeInfo.vMaskingUVMoveTime.x = 0.f;
+ }
+
+ m_ErherTimeInfo.vNoiseUVMoveTime.x += fTimeDelta;
+
+ if (m_ErherTimeInfo.vNoiseUVMoveTime.x >= m_ErherTimeInfo.vNoiseUVMoveTime.y)
+ {
+ m_ErherTimeInfo.vNoiseUVMoveTime.x = 0.f;
+ }
+
+ m_ErherTimeInfo.vDistortionUVMoveTime.x += fTimeDelta;
+
+ if (m_ErherTimeInfo.vDistortionUVMoveTime.x >= m_ErherTimeInfo.vDistortionUVMoveTime.y)
+ {
+ m_ErherTimeInfo.vDistortionUVMoveTime.x = 0.f;
+ }
+
+ m_ErherTimeInfo.vDissolveUVMoveTime.x += fTimeDelta;
+
+ if (m_ErherTimeInfo.vDissolveUVMoveTime.x >= m_ErherTimeInfo.vDissolveUVMoveTime.y)
+ {
+ m_ErherTimeInfo.vDissolveUVMoveTime.x = 0.f;
+ }
+
+}
+
+void CRanrok_EtherInfo::Edit_Ether()
+{
+
+}
+
+HRESULT CRanrok_EtherInfo::Bind_Ether_ShaderResources(CShader* pShader)
+{
+
+ if (FAILED(pShader->Bind_RawValue("g_fAnimIndex", &m_ErherTimeInfo.vAnimIndex.x, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vLifeTime", &m_ErherTimeInfo.vLifeTime, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_RawValue("g_vDiffuseUVMoveTime", &m_ErherTimeInfo.vDiffuseUVMoveTime, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_RawValue("g_vMaskingUVMoveTime", &m_ErherTimeInfo.vMaskingUVMoveTime, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_RawValue("g_vNoiseUVMoveTime", &m_ErherTimeInfo.vNoiseUVMoveTime, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_RawValue("g_vDistortionUVMoveTime", &m_ErherTimeInfo.vDistortionUVMoveTime, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_RawValue("g_vDissolveUVMoveTime", &m_ErherTimeInfo.vDissolveUVMoveTime, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+
+
+ if (m_Ether_Info.eRenderOrder != RENDER::BULR_MESH)
+ {
+ if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Depth"), pShader, "g_DepthTexture"))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_NormalCopy"), pShader, "g_NormalMapTexture"))) {
+ return E_FAIL;
+ }
+ }
+
+ _float2 vViewPortSize = m_pGameInstance->Get_ViewPortSize();
+
+ if (FAILED(pShader->Bind_RawValue("g_fWinSizeX", &vViewPortSize.x, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fWinSizeY", &vViewPortSize.y, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+
+
+ if (FAILED(pShader->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float4)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_Matrix("g_ViewMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW_INV)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_Matrix("g_ProjMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ_INV)))) {
+ return E_FAIL;
+ }
+
+ if (m_Ether_Info.isMotionBlur == true || m_Ether_Info.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DEFAULT)
+ {
+
+ if (FAILED(m_pGameInstance->Bind_PrevMatrix(pShader, "g_PrevProjMatrix", D3DTS::PROJ))) {
+ return E_FAIL;
+ }
+
+
+ if (FAILED(m_pGameInstance->Bind_PrevMatrix(pShader, "g_PrevViewMatrix", D3DTS::VIEW))) {
+ return E_FAIL;
+ }
+
+
+
+ }
+
+ if (m_Ether_Info.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DECAL_WB || m_Ether_Info.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DECAL_BLUR)
+ {
+ if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Normal"), pShader, "g_NormalMapTexture"))) {
+ return E_FAIL;
+ }
+
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isDiffuse", &m_Ether_Info.isDiffuse, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isMasking", &m_Ether_Info.isMasking, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isDissolve", &m_Ether_Info.isDissolve, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isNoise", &m_Ether_Info.isNoise, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isEmissive", &m_Ether_Info.isEmissive, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isDistortion", &m_Ether_Info.isDistortion, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isDiffuseUVMove", &m_Ether_Info.isDiffuseUVMove, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isMaskUVMove", &m_Ether_Info.isMaskUVMove, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isNoiseUVMove", &m_Ether_Info.isNoiseUVMove, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isReverseDissolve", &m_Ether_Info.isReverseDissolve, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isEmissiveDissolve", &m_Ether_Info.isEmissiveDissolve, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isMaskClampSample", &m_Ether_Info.isMaskClampSample, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isNoiseColor", &m_Ether_Info.isNoiseColor, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isNoiseAlpha", &m_Ether_Info.isNoiseAlpha, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isNomalDissolve", &m_Ether_Info.isNomalDissolve, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isEmissiveDissolveReverse", &m_Ether_Info.isEmissiveDissolveReverse, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+
+ if (FAILED(pShader->Bind_RawValue("g_isBlurNoEmissive", &m_Ether_Info.isBlurNoEmissive, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vColor", &m_Ether_Info.vColor, sizeof(_float4)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vEmissive", &m_Ether_Info.vEmissive, sizeof(_float4)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fEmissiveStrength", &m_Ether_Info.fEmissiveStrength, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fNoiseDistortionIntensity", &m_Ether_Info.fNoiseDistortionIntensity, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vDiffuseUVGainAmount", &m_Ether_Info.vDiffuseUVGainAmount, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vMaskingUVGainAmount", &m_Ether_Info.vMaskingUVGainAmount, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vNoiseUVGainAmount", &m_Ether_Info.vNoiseUVGainAmount, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vDistortionTime", &m_Ether_Info.vDistortionTime, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vMaskDistortionUVGainAmount", &m_Ether_Info.vMaskDistortionUVGainAmount, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+
+
+ if (FAILED(pShader->Bind_RawValue("g_vUVCutting", &m_Ether_Info.vUVCutting, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vUVMaskCutting", &m_Ether_Info.vUVMaskCutting, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_iMaskMoveLerpOption", &m_Ether_Info.iMaskMoveLerpOption, sizeof(_int)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_iDiffuseMoveLerpOption", &m_Ether_Info.iDiffuseMoveLerpOption, sizeof(_int)))) {
+ return E_FAIL;
+ }
+
+
+ if (FAILED(pShader->Bind_RawValue("g_iMaskDistortionMoveLerpOption", &m_Ether_Info.iMaskDistortionMoveLerpOption, sizeof(_int)))) {
+ return E_FAIL;
+ }
+
+
+ if (FAILED(pShader->Bind_RawValue("g_iDiffuseDistortionMoveLerpOption", &m_Ether_Info.iDiffuseDistortionMoveLerpOption, sizeof(_int)))) {
+ return E_FAIL;
+ }
+
+
+
+ if (FAILED(pShader->Bind_RawValue("g_fDiffuseAlpha", &m_Ether_Info.fDiffuseAlpha, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fSoftenExp", &m_Ether_Info.fSoftenExp, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fSoftStrength", &m_Ether_Info.fSoftStrength, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fCoreBoost", &m_Ether_Info.fCoreBoost, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fRadius", &m_Ether_Info.fRadius, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fSoftMaskEdge", &m_Ether_Info.fSoftMaskEdge, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fSoftMask", &m_Ether_Info.fSoftMask, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fDissolveDelay", &m_Ether_Info.fDissolveDelay, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fReverseDissolveDelay", &m_Ether_Info.fReverseDissolveDelay, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vDissolveUVGainAmount", &m_Ether_Info.vDissolveUVGainAmount, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isDissolveMove", &m_Ether_Info.isDissolveMove, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isNoDissolveSmoothStep", &m_Ether_Info.isNoDissolveSmoothStep, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fDissolveMaskEdge", &m_Ether_Info.vDissolveValue.x, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fDissolveSoftMask", &m_Ether_Info.vDissolveValue.y, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fDissolveCutRatio", &m_Ether_Info.vDissolveValue.z, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isBlurColor", &m_Ether_Info.isBlurColor, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vBlurColor", &m_Ether_Info.vBlurColor, sizeof(_float4)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vNoiseColor", &m_Ether_Info.vNoiseColor, sizeof(_float4)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fEmissiveColorCut", &m_Ether_Info.fEmissiveColorCut, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isRimLight", &m_Ether_Info.isRimLight, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vRimLightColor", &m_Ether_Info.vRimLightColor, sizeof(_float4)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fRimLightPower", &m_Ether_Info.fRimLightPower, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fRimLightStrength", &m_Ether_Info.fRimLightStrength, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fModelDistortIntensity", &m_Ether_Info.fModelDistortIntensity, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+
+ if (FAILED(pShader->Bind_RawValue("g_vMaskOffset", &m_Ether_Info.vMaskOffset, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+
+ if (FAILED(pShader->Bind_RawValue("g_vUVNoiseCutting", &m_Ether_Info.vUVNoiseCutting, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vDissolveSmoothRange", &m_Ether_Info.vDissolveSmoothRange, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fModelBlurIntensity", &m_Ether_Info.fModelBlurIntensity, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+
+
+
+ if (FAILED(pShader->Bind_RawValue("g_isMask_G", &m_Ether_Info.isMask_G, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_RawValue("g_isMask_B", &m_Ether_Info.isMask_B, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isNoise_G", &m_Ether_Info.isNoise_G, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_RawValue("g_isNoise_B", &m_Ether_Info.isNoise_B, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_RawValue("g_isDissolve_G", &m_Ether_Info.isDissolve_G, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_RawValue("g_isDissolve_B", &m_Ether_Info.isDissolve_B, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_RawValue("g_isDiffuse_R", &m_Ether_Info.isDiffuse_R, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_RawValue("g_isDiffuse_G", &m_Ether_Info.isDiffuse_G, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_RawValue("g_isDiffuse_B", &m_Ether_Info.isDiffuse_B, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isBlurDissolve", &m_Ether_Info.isBlurDissolve, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isNonSoftEffect", &m_Ether_Info.isNonSoftEffect, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isScreenFX", &m_Ether_Info.isScreenFX, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fBlurIntensity", &m_Ether_Info.fBlurIntensity, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fBloomStrength", &m_Ether_Info.fBloomStrength, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_iBloomType", &m_Ether_Info.eBloomType, sizeof(_int)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isBloomDissolve", &m_Ether_Info.isBloomDissolve, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isBloomReverseDissolve", &m_Ether_Info.isBloomReverseDissolve, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (m_pDiffuse_TextureCom != nullptr)
+ {
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(pShader, "g_DiffuseTexture", 0))) {
+ return E_FAIL;
+ }
+ }
+
+ if (m_pNoise_TextureCom != nullptr)
+ {
+ if (FAILED(m_pNoise_TextureCom->Bind_ShaderResource(pShader, "g_NoiseTexture", 0))) {
+ return E_FAIL;
+ }
+ }
+
+ if (m_pMasking_TextureCom != nullptr)
+ {
+ if (FAILED(m_pMasking_TextureCom->Bind_ShaderResource(pShader, "g_MaskingTexture", 0))) {
+ return E_FAIL;
+ }
+ }
+
+ if (m_pDissolve_TextureCom != nullptr)
+ {
+ if (FAILED(m_pDissolve_TextureCom->Bind_ShaderResource(pShader, "g_DissolveTexture", 0))) {
+ return E_FAIL;
+ }
+ }
+
+ if (m_pEmissive_TextureCom != nullptr)
+ {
+ if (FAILED(m_pEmissive_TextureCom->Bind_ShaderResource(pShader, "g_EmissiveTexture", 0))) {
+ return E_FAIL;
+ }
+ }
+
+ if (m_pDistortion_TextureCom != nullptr)
+ {
+ if (FAILED(m_pDistortion_TextureCom->Bind_ShaderResource(pShader, "g_DistortionTexture", 0))) {
+ return E_FAIL;
+ }
+ }
+
+
+ return S_OK;
+}
+
+HRESULT CRanrok_EtherInfo::Ether_Begin(CShader* pShader)
+{
+ if(FAILED(pShader->Begin(ENUM_CLASS(m_Ether_Info.eShaderPass))))
+ return E_FAIL;
+
+ return S_OK;
+}
+
+HRESULT CRanrok_EtherInfo::Ready_Components()
+{
+ return S_OK;
+}
+
+HRESULT CRanrok_EtherInfo::Bind_ShaderResources()
+{
+
+ return S_OK;
+}
+
+HRESULT CRanrok_EtherInfo::Load_Info(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);
+
+ _string strPerfectFilePath = pFilePath;
+
+ m_strPath = strPerfectFilePath;
+
+ 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_Ether_Info, sizeof(EFFECT_INFO), &dwByte, nullptr)) {
+ CloseHandle(hFile);
+ return E_FAIL;
+ }
+
+ if (m_Ether_Info.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_Ether_Info.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_Ether_Info.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_Ether_Info.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_Ether_Info.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_Ether_Info.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;
+ }
+ }
+
+
+ }
+
+ if (!ReadFile(hFile, &m_ErherTimeInfo, sizeof(TIME_INFO), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+
+ CloseHandle(hFile);
+
+
+ Set_Visible(true);
+
+ return S_OK;
+}
+
+
+CRanrok_EtherInfo* CRanrok_EtherInfo::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CRanrok_EtherInfo* pInstance = new CRanrok_EtherInfo(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CRanrok_EtherInfo");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CRanrok_EtherInfo::Clone(void* pArg, CGameObject* pOwner)
+{
+ CRanrok_EtherInfo* pInstance = new CRanrok_EtherInfo(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CRanrok_EtherInfo");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CRanrok_EtherInfo::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);
+}
+#ifdef _DEBUG
+
+
+void CRanrok_EtherInfo::Describe_Entity()
+{
+}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp b/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp
index db61fec5d..ca479ddbf 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp
@@ -82,7 +82,7 @@ void CRanrok_Prop::Update(_float fTimeDelta)
__super::Update(fTimeDelta);
- m_pRigidBody->Set_Position(m_pTransformCom->Get_State(STATE::POSITION), true);
+ //m_pRigidBody->Set_Position(m_pTransformCom->Get_State(STATE::POSITION), true);
Update_Event(fTimeDelta);
diff --git a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
index 1e87b6306..61cf65517 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
@@ -963,6 +963,7 @@ void CRanrok::Behavior_TuckedExit()
m_pFSM->Disable_State(FSMSTATE::TUCKED);
m_bTucked = false;
+ m_vCreatePropTime.x = m_vCreatePropTime.y;
}
void CRanrok::Behavior_LandEnter()
diff --git a/Jusin154_Team3D/Client/Private/Terrain.cpp b/Jusin154_Team3D/Client/Private/Terrain.cpp
index cb0a8599d..6a1f29155 100644
--- a/Jusin154_Team3D/Client/Private/Terrain.cpp
+++ b/Jusin154_Team3D/Client/Private/Terrain.cpp
@@ -63,10 +63,10 @@ void CTerrain::Late_Update(_float fTimeDelta)
{
//if (m_pGameInstance->IsIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
-#ifdef Bin
- m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
- m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this);
-#endif // Bin
+//#ifdef Bin
+// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
+// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this);
+//#endif // Bin
//}
}
diff --git a/Jusin154_Team3D/Client/Private/ThestralCarriage.cpp b/Jusin154_Team3D/Client/Private/ThestralCarriage.cpp
index c0f442291..c15f1cf2d 100644
--- a/Jusin154_Team3D/Client/Private/ThestralCarriage.cpp
+++ b/Jusin154_Team3D/Client/Private/ThestralCarriage.cpp
@@ -74,7 +74,9 @@ void CThestralCarriage::Update(_float fTimeDelta)
{
__super::Update(fTimeDelta);
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
-
+
+ m_pTransformCom->Go_Straight(fTimeDelta * m_iStraight);
+
#ifdef _DEBUG
Describe_Entity();
#endif // _DEBUG
@@ -197,25 +199,34 @@ void CThestralCarriage::Trigger(CTimeSocket& Socket)
} break;
case TIMESOCKET_FUNC::SET_ANIMSTATE:
{
-
+ if (pContents->vFlags.b[0]) {
+ m_iStraight = 1;
+ }
+ else if (pContents->vFlags.b[1]) {
+ m_iStraight = 3;
+ }
+ else {
+ m_iStraight = 0;
+ }
+
} break;
case TIMESOCKET_FUNC::SET_FSMSTATE:
{
- // if (pContents->vFlags.b[0]) {
- // m_iAnimationIndex = 0;
- // m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
- // m_pModelCom->IsRootBone(false);
- // }
- // else if (pContents->vFlags.b[1]) {
- // m_iAnimationIndex = 1;
- // m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
- // m_pModelCom->IsRootBone(false);
- // }
- // else if (pContents->vFlags.b[2]) {
- // m_iAnimationIndex = 2;
- // m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
- // m_pModelCom->IsRootBone(false);
- // }
+ if (pContents->vFlags.b[0]) {
+ m_iAnimationIndex = 0;
+ m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
+ m_pModelCom->IsRootBone(false);
+ }
+ else if (pContents->vFlags.b[1]) {
+ m_iAnimationIndex = 1;
+ m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
+ m_pModelCom->IsRootBone(false);
+ }
+ else if (pContents->vFlags.b[2]) {
+ m_iAnimationIndex = 2;
+ m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
+ m_pModelCom->IsRootBone(false);
+ }
} break;
case TIMESOCKET_FUNC::BIND_SOCKET_MATRIX:
{
@@ -298,7 +309,7 @@ void CThestralCarriage::Lerp_Transform(_float fTimeDelta)
CMyTools::MatrixLerp(XMLoadFloat4x4(&m_LerpStartMatrix), XMLoadFloat4x4(&m_LerpEndMatrix), vLerpResult, 1.f);
}
else {
- CMyTools::MatrixLerp(XMLoadFloat4x4(&m_LerpStartMatrix), XMLoadFloat4x4(&m_LerpEndMatrix), vLerpResult, m_vLerpTimer.x/m_vLerpTimer.y);
+ CMyTools::MatrixLerp(XMLoadFloat4x4(&m_LerpStartMatrix), XMLoadFloat4x4(&m_LerpEndMatrix), vLerpResult, m_vLerpTimer.x / m_vLerpTimer.y);
}
m_pTransformCom->Set_WorldMatrix(vLerpResult);
}
@@ -419,7 +430,7 @@ void CThestralCarriage::Describe_Entity()
_float RotR, RotU, RotL;
RotR = XMVectorGetX(m_pTransformCom->Get_State(STATE::RIGHT));
- RotU = XMVectorGetY(m_pTransformCom->Get_State(STATE::UP));
+ RotU = XMVectorGetY(m_pTransformCom->Get_State(STATE::UP));
RotL = XMVectorGetZ(m_pTransformCom->Get_State(STATE::LOOK));
float Rot3[3] = { RotR, RotU,RotL };
diff --git a/Jusin154_Team3D/Client/Private/Troll.cpp b/Jusin154_Team3D/Client/Private/Troll.cpp
index 6cdb56ab1..6b494ba88 100644
--- a/Jusin154_Team3D/Client/Private/Troll.cpp
+++ b/Jusin154_Team3D/Client/Private/Troll.cpp
@@ -75,6 +75,8 @@ HRESULT CTroll::Initialize(void* pArg)
m_pRightHand_BoneMat = m_pModelCom->Get_BoneMatrixPtr("RightHand");
m_pWeapon_BoneMat = Get_PartObject()->Get_Component()->Get_BoneMatrixPtr("Bone");
+ Ready_Sound_Events("../Bin/Resources/Models/Monster/SubTroll/KeyFrame.xml");
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Troll_States.cpp b/Jusin154_Team3D/Client/Private/Troll_States.cpp
index 0d52d46f4..f9e11efa2 100644
--- a/Jusin154_Team3D/Client/Private/Troll_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Troll_States.cpp
@@ -808,8 +808,6 @@ void CTroll::Behavior_DeadEnter()
m_pDead_Smoke->Get_Component()->Set_State(STATE::POSITION, m_pTransformCom->Get_State(STATE::POSITION));
}, 0.55f);
- Get_PartObject()->Set_Disolve(true);
-
}
HRESULT CTroll::Behavior_DeadExitCheck(_float fTimeDelta)
@@ -820,6 +818,7 @@ HRESULT CTroll::Behavior_DeadExitCheck(_float fTimeDelta)
{
m_fDeadRatio += fTimeDelta / 3.f;
m_fDeadRatio = min(1.f, m_fDeadRatio);
+ Get_PartObject()->Set_Disolve(true);
}
return S_OK;
diff --git a/Jusin154_Team3D/Client/Public/BroomRaceManager.h b/Jusin154_Team3D/Client/Public/BroomRaceManager.h
index 811c03d95..52a6aec55 100644
--- a/Jusin154_Team3D/Client/Public/BroomRaceManager.h
+++ b/Jusin154_Team3D/Client/Public/BroomRaceManager.h
@@ -48,7 +48,7 @@ class CBroomRaceManager final : public CGameObject
private:
CInfoInstance* m_pInfoInstance = { nullptr };
-
+ array m_pRaceEndEffects = { nullptr, nullptr, nullptr };
vector m_pRaceRings = {};
vector m_Racers = {};
_float m_fCountTimer = {};
diff --git a/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h b/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h
index b27d1b591..22d88854b 100644
--- a/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h
+++ b/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h
@@ -73,6 +73,10 @@ class CCamPosition_Shoulder final : public CCamPosition
_float2 m_vMoveLerpPositions = { };
_float2 m_vMoveLerpTimer = { 0.f, TIMER_SHORT_LERP };
+
+ //_int m_iSpellFovLerp = { 0 };
+ //_float3 m_vSpellFovLerpTimer = { 0.f, 1.f, 2.f };
+ //_float3 m_vSpellFovLerpDegree = { 60.f, 30.f, 60.f };
#pragma endregion
_float2 m_vCameraShakeTimer = { 0.f, 0.3f };
diff --git a/Jusin154_Team3D/Client/Public/Camera_Cinematic.h b/Jusin154_Team3D/Client/Public/Camera_Cinematic.h
index 102fd0af0..90c94c142 100644
--- a/Jusin154_Team3D/Client/Public/Camera_Cinematic.h
+++ b/Jusin154_Team3D/Client/Public/Camera_Cinematic.h
@@ -49,8 +49,8 @@ class CCamera_Cinematic final : public CCamera
void Start_Lerp_Translation(_float fTimeMaximum, _float3& vTrans);
void Clear_Lerp_Translation();
void Lerp_Rotation(_float fTimeDelta);
- void Start_Lerp_Rotation(_float fTimeMaximum, PSX::PxTransform pxTransform);
- void Start_Lerp_Rotation(_float fTimeMaximum, _float4& vRotQ);
+ void Start_Lerp_Rotation(_float fTimeMaximum, PSX::PxTransform pxTransform, _bool bMainTainDistance);
+ void Start_Lerp_Rotation(_float fTimeMaximum, _float4& vRotQ, _bool bMainTainDistance);
void Clear_Lerp_Rotation();
@@ -82,6 +82,8 @@ class CCamera_Cinematic final : public CCamera
_bool m_bLerpFovY = { false };
_float2 m_vFovYLerp = { 60.f, 60.f };
_float2 m_vLerpFovYTimer = { };
+ _bool m_bMainTainDistance = { false };
+ _float m_fMaintainingDistance = { };
#ifdef _DEBUG
unique_ptr m_pSubShape = { nullptr };
unique_ptr> m_Batch = { nullptr };
diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h
index a31d85afb..2f8bcaa0d 100644
--- a/Jusin154_Team3D/Client/Public/Client_Enum.h
+++ b/Jusin154_Team3D/Client/Public/Client_Enum.h
@@ -24,6 +24,8 @@ namespace Client
BOOSTERHPBAR, DIALOGUECHOICE,
ENEMY_DETECTION, INTERACTION_OBJECT, INTERACTION_NPC, BROOMTARGETGATE, END
};
+ enum class SHADER_PASS_ETHER { NON_NOMALMAP, WEIGHTBLEND, BLEND, BLUR, BLOOM, END };
+
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, SPELL_LOCK, QUEST_SLOT, END };
enum class SHADER_PASS_WORLDMODLE_INSTANCE { DEFAULT, LIGHT, BLOOM, SHADOW, NONCULL };
enum class SHADER_PASS_NPC_PBR_ANIM {
@@ -91,6 +93,9 @@ namespace Client
/*듀얼리스트*/
DUELIST_JAP, DUELIST_JAPSIDE , DUELIST_LEVIOSO, DUELIST_PROTEGO,
+ /* 컷씬 이펙트 */
+ CUTSCENE_FIRE , CUTSCENE_SMOKE , CUTSCENE_SHOUT, CUTSCENE_LIGHTNING,
+
END
};
diff --git a/Jusin154_Team3D/Client/Public/Client_Macro.h b/Jusin154_Team3D/Client/Public/Client_Macro.h
index 67e1f979a..f15b1e7fa 100644
--- a/Jusin154_Team3D/Client/Public/Client_Macro.h
+++ b/Jusin154_Team3D/Client/Public/Client_Macro.h
@@ -20,6 +20,7 @@ namespace Client {
#define FX_UIINSTANCE TEXT("FX_UIINSTANCE")
#define FX_VTXPOS TEXT("FX_VTXPOS")
#define FX_NPC_PBR_ANIM TEXT("FX_NPC_PBR_ANIM")
+#define FX_RANROK_ETHER TEXT("FX_RANROK_ETHER")
#pragma endregion
#pragma region MACRO_PROTOTYPE
diff --git a/Jusin154_Team3D/Client/Public/CutScene_Fire.h b/Jusin154_Team3D/Client/Public/CutScene_Fire.h
new file mode 100644
index 000000000..54284f178
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/CutScene_Fire.h
@@ -0,0 +1,46 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CCutScene_Fire final : public CEffect_Container
+{
+private:
+ CCutScene_Fire(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CCutScene_Fire(const CCutScene_Fire& rhs);
+ virtual ~CCutScene_Fire() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+public:
+ virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Ready_Child();
+ HRESULT Bind_ShaderResources() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+private:
+ _wstring m_wstrEffectName = {};
+
+
+public:
+ static CCutScene_Fire* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/CutScene_Lightning.h b/Jusin154_Team3D/Client/Public/CutScene_Lightning.h
new file mode 100644
index 000000000..124b0e7a9
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/CutScene_Lightning.h
@@ -0,0 +1,46 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CCutScene_Lightning final : public CEffect_Container
+{
+private:
+ CCutScene_Lightning(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CCutScene_Lightning(const CCutScene_Lightning& rhs);
+ virtual ~CCutScene_Lightning() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+public:
+ virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Ready_Child();
+ HRESULT Bind_ShaderResources() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+private:
+ _wstring m_wstrEffectName = {};
+
+
+public:
+ static CCutScene_Lightning* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/CutScene_Shout.h b/Jusin154_Team3D/Client/Public/CutScene_Shout.h
new file mode 100644
index 000000000..39c2ff451
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/CutScene_Shout.h
@@ -0,0 +1,46 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CCutScene_Shout final : public CEffect_Container
+{
+private:
+ CCutScene_Shout(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CCutScene_Shout(const CCutScene_Shout& rhs);
+ virtual ~CCutScene_Shout() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+public:
+ virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Ready_Child();
+ HRESULT Bind_ShaderResources() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+private:
+ _wstring m_wstrEffectName = {};
+
+
+public:
+ static CCutScene_Shout* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/CutScene_Smoke.h b/Jusin154_Team3D/Client/Public/CutScene_Smoke.h
new file mode 100644
index 000000000..2343242fa
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/CutScene_Smoke.h
@@ -0,0 +1,46 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CCutScene_Smoke final : public CEffect_Container
+{
+private:
+ CCutScene_Smoke(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CCutScene_Smoke(const CCutScene_Smoke& rhs);
+ virtual ~CCutScene_Smoke() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+public:
+ virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Ready_Child();
+ HRESULT Bind_ShaderResources() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+private:
+ _wstring m_wstrEffectName = {};
+
+
+public:
+ static CCutScene_Smoke* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h
index ee204f874..48c8681f6 100644
--- a/Jusin154_Team3D/Client/Public/Player.h
+++ b/Jusin154_Team3D/Client/Public/Player.h
@@ -20,12 +20,12 @@ class CPlayer final : public CUnit
, FLOWERS
, END
};
-
typedef struct tagPlayerInitDesc {
_float4 vPos;
_float4 vRotQ;
class CBroomRaceManager* pBroomRaceManager;
}PLAYERDESC;
+
private:
CPlayer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CPlayer(const CPlayer& Prototype);
@@ -126,8 +126,12 @@ class CPlayer final : public CUnit
void Player_PixRot();
void Find_HiddenObjects();
void Check_Reparoobejcts();
-
void Update_CameraCoordinateSystem(_float fTimeDelta);
+ void UpdateFootStepSound();
+ vector<_float> GetFootStepTiming(_uint AnimIndex);
+ void PlayFootStepSound();
+ void StopFootStepSound();
+
#ifdef _DEBUG
unique_ptr m_BasicEffect;
unique_ptr> m_Batch;
@@ -197,7 +201,12 @@ class CPlayer final : public CUnit
_bool m_bStartSpellAnim = {};
_float4 m_OriginPos = {};
_bool m_bSpell_Learning_Success = {};
-
+
+ _bool m_bFootStepL = {};
+ _bool m_bFootStepR = {};
+ _float m_fPrevMoveRatio = {};
+ _uint m_iFootStepIndex = 0;
+ _uint m_iPrevAnimIndex = 0;
/* 무적 불 변수*/
#ifdef _DEBUG
@@ -294,7 +303,7 @@ class CPlayer final : public CUnit
void Behavior_Broom_HoverEnter();
HRESULT Behavior_Broom_HoverExitCheck(_float fTimeDelta);
void Behavior_Broom_HoverExit();
-
+
void Behavior_Broom_FlyEnter();
HRESULT Behavior_Broom_FlyExitCheck(_float fTimeDelta);
void Behavior_Broom_FlyExit();
diff --git a/Jusin154_Team3D/Client/Public/RaceRing.h b/Jusin154_Team3D/Client/Public/RaceRing.h
index 8bc69c598..59e3b054a 100644
--- a/Jusin154_Team3D/Client/Public/RaceRing.h
+++ b/Jusin154_Team3D/Client/Public/RaceRing.h
@@ -1,11 +1,11 @@
#pragma once
#include "Client_Define.h"
-#include "PartObject.h"
+#include "ContainerObject.h"
NS_BEGIN(Client)
-class CRaceRing final : public CGameObject
+class CRaceRing final : public CContainerObject
{
public:
typedef struct RaceRingDesc
@@ -37,6 +37,7 @@ class CRaceRing final : public CGameObject
private:
class CBroomRaceManager* m_pBroomRaceManager = { nullptr };
+ class CEffectParts* m_pRingEffect = { nullptr };
CShader* m_pShaderCom = { nullptr };
CModel* m_pModelCom = { nullptr };
_bool m_bTarget = { false };
@@ -47,6 +48,7 @@ class CRaceRing final : public CGameObject
private:
HRESULT Ready_Components();
HRESULT Bind_ShaderResources();
+ HRESULT Ready_Parts();
public:
static CRaceRing* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Client/Public/Ranrok.h b/Jusin154_Team3D/Client/Public/Ranrok.h
index 9ed016f3e..d2540667e 100644
--- a/Jusin154_Team3D/Client/Public/Ranrok.h
+++ b/Jusin154_Team3D/Client/Public/Ranrok.h
@@ -88,6 +88,8 @@ class CRanrok final : public CMonster
HRESULT Update_CollidersPosition();
HRESULT Render_Nonblend();
HRESULT Render_Blend();
+ virtual HRESULT Render_Blur() override;
+ virtual HRESULT Render_Bloom() override;
void MoveTo(_float fTimeDelta);
HRESULT Load_RanrokPos(const _char* pFilePath);
public:
@@ -258,6 +260,13 @@ class CRanrok final : public CMonster
_bool Update_BehaviorByHPRatio(ON_COLLISION_INFO* CollisionInfo);
+#pragma region Ether
+ class CRanrok_EtherInfo* m_pEtherInfo[ENUM_CLASS(RANROK_MESH_ORDER::WINGS)] = {};
+ class CShader* m_pEther_Shader = { nullptr };
+
+ void Ether_Create();
+ void Ether_Update(_float fTimeDelata);
+#pragma endregion
};
NS_END
diff --git a/Jusin154_Team3D/Client/Public/Ranrok_EtherInfo.h b/Jusin154_Team3D/Client/Public/Ranrok_EtherInfo.h
new file mode 100644
index 000000000..63c92c047
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Ranrok_EtherInfo.h
@@ -0,0 +1,81 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "GameObject.h"
+
+NS_BEGIN(Client)
+
+class CRanrok_EtherInfo final : public CGameObject
+{
+public:
+ typedef struct tagTimeInfo
+ {
+ _float2 vAnimIndex = {};
+ _float2 vAnimTime = { 0.f , 1.f };
+ _float2 vLifeTime = {0.f , 1.f};
+ _float2 vDiffuseUVMoveTime = { 0.f , 1.f };
+ _float2 vMaskingUVMoveTime = { 0.f , 1.f };
+ _float2 vNoiseUVMoveTime = { 0.f , 1.f };
+ _float2 vDistortionUVMoveTime = { 0.f , 1.f };
+ _float2 vDissolveUVMoveTime = { 0.f , 1.f };
+ }TIME_INFO;
+private:
+ CRanrok_EtherInfo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CRanrok_EtherInfo(const CRanrok_EtherInfo& Prototype);
+ virtual ~CRanrok_EtherInfo() = default;
+
+public:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+ virtual HRESULT Render() override;
+ HRESULT Load_Info(const _char* pFilePath, LEVEL eLevel);
+ HRESULT Save_Info(const _char* pPath);
+
+ _bool isBloom() { return m_Ether_Info.isBloom; }
+ _bool isBlur() { return m_Ether_Info.isBlur; }
+ RENDER Get_RenderOrder() { return m_Ether_Info.eRenderOrder; }
+public:
+ void Update_Time(_float fTimeDelta);
+ void Edit_Ether();
+ HRESULT Bind_Ether_ShaderResources(class CShader* pShader);
+ HRESULT Ether_Begin(class CShader* pShader);
+private:
+ HRESULT Ready_Components();
+ HRESULT Bind_ShaderResources();
+
+
+
+
+
+ EFFECT_INFO m_Ether_Info = {};
+ TIME_INFO m_ErherTimeInfo = {};
+
+ 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 };
+
+ _string m_strDiffuseName = {};
+ _string m_strNoiseName = {};
+ _string m_strMaskingName = {};
+ _string m_strDissolveName = {};
+ _string m_strEmissiveName = {};
+ _string m_strDistortionName = {};
+
+ _string m_strPath = {};
+public:
+ static CRanrok_EtherInfo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)override;
+ virtual void Free() override;
+
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/ThestralCarriage.h b/Jusin154_Team3D/Client/Public/ThestralCarriage.h
index c33215415..953288d23 100644
--- a/Jusin154_Team3D/Client/Public/ThestralCarriage.h
+++ b/Jusin154_Team3D/Client/Public/ThestralCarriage.h
@@ -53,8 +53,10 @@ class CThestralCarriage final : public CUnit
_float4x4 m_LerpEndMatrix = { };
_float2 m_vLerpTimer = { };
_bool m_bLerp = { false };
+ _uint m_iBehavior = { 0 };
_uint m_iAnimationIndex = 0;
+ _uint m_iStraight = { 0 };
#ifdef _DEBUG
_bool m_bRender_WireFrame = { false };
ID3D11RasterizerState* m_pRSS = { nullptr };
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml
index 4982d2544..a86dbc248 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml
@@ -110,6 +110,117 @@
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ true
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
@@ -152,8 +263,8 @@
-
-
+
+
@@ -366,7 +477,7 @@
-
+
@@ -374,8 +485,8 @@
-
-
+
+
@@ -400,7 +511,7 @@
-
+
@@ -411,8 +522,8 @@
-
-
+
+
@@ -437,19 +548,19 @@
-
+
-
+
-
-
+
+
@@ -474,19 +585,19 @@
-
+
-
+
-
-
+
+
@@ -511,155 +622,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
+
@@ -696,15 +659,114 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
- -->
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -779,50 +841,13 @@
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -854,13 +879,51 @@
+
+
+
+
+
+
+
+
+
+
+
+ false
+ true
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
@@ -896,8 +959,8 @@
-
-
+
+
@@ -928,122 +991,6 @@
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1193,6 +1140,80 @@
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/TrollIntroCutScene.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/TrollIntroCutScene.xml
index 4b27f5fda..f856d95df 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/TrollIntroCutScene.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/TrollIntroCutScene.xml
@@ -1420,6 +1420,44 @@
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
@@ -1718,7 +1756,7 @@
-
+
@@ -1755,7 +1793,7 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/CutSceneFire/Fire.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/CutSceneFire/Fire.bin
new file mode 100644
index 000000000..ca7d52152
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/CutSceneFire/Fire.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fd3de1b6353ee2810442a6091e3f0efd3a686a79259b7973075275d57f2c885e
+size 1190
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/CutSceneLightning/Lightning_1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/CutSceneLightning/Lightning_1.bin
new file mode 100644
index 000000000..126971fb0
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/CutSceneLightning/Lightning_1.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b1641796b1495bc737fa9c59e942665c207fb974385af7224199906ead285488
+size 1165
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/CutSceneLightning/Screen_Flash.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/CutSceneLightning/Screen_Flash.bin
new file mode 100644
index 000000000..a8b00b581
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/CutSceneLightning/Screen_Flash.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:013ff36bc2fc8d42f2dfb0161418113047b33501f7d12826d0d24bbf88ac540c
+size 1219
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/CutSceneSmoke/Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/CutSceneSmoke/Smoke.bin
new file mode 100644
index 000000000..619455a11
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/CutSceneSmoke/Smoke.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:51696d39658ea9d7058f0cb51594d2db6c463a93e7e722a017233f741462ab9f
+size 1195
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/LightningMesh.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/LightningMesh.bin
new file mode 100644
index 000000000..a8a21f1b4
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/LightningMesh.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:758ac1197fd57cded50d94ed6d96f1de32fe2285c1acad8fd79ec994bd083c93
+size 1165
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/LightningPlane.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/LightningPlane.bin
new file mode 100644
index 000000000..acf27ccda
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/LightningPlane.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:58e89ee00104323cad8a0710aabc6cac927556c0fd5a8636964158866f05e665
+size 1207
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/Ranrok_Shout/Shout.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/Ranrok_Shout/Shout.bin
new file mode 100644
index 000000000..14628bb2e
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/CutSceneEffect/Ranrok_Shout/Shout.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:30911c76ce422119ffc46006c6ad473be35a7352462e2c0f785049c66b14631b
+size 1199
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/CutSceneFire.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/CutSceneFire.bin
new file mode 100644
index 000000000..bce488354
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/CutSceneFire.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3d9346d5a513ae8dc642ca71d361c28d359fc7a87affa5d6d7c3de13d57cdb1e
+size 78
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/CutSceneLightning.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/CutSceneLightning.bin
new file mode 100644
index 000000000..46b88ffed
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/CutSceneLightning.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:04fb82234c45460441da1998acb856f0861bd6e62a4e3f4f54cf9a974592f7ed
+size 177
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/CutSceneSmoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/CutSceneSmoke.bin
new file mode 100644
index 000000000..c0e1547ab
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/CutSceneSmoke.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1674dc6eac73f6a608039f8aca7461779ec8f12fb4d2720c741227a9ecb84b8a
+size 80
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Ranrok_Shout.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Ranrok_Shout.bin
new file mode 100644
index 000000000..396cebc3c
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Ranrok_Shout.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:df63a00b53269e5432c74dd38c97555ab840bcf2d55f4bdcfff27b1044568fd8
+size 79
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Rock_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Rock_PT.bin
index d2c4a8763..731ea73a0 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Rock_PT.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Rock_PT.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:73ec2cfc0fd0f1cb9de0fa57a257ad2f74f7550754dcbcd123d561f3bfd80cf2
+oid sha256:b5f4b603cd1fdc4b713c0614000b50e6f760d5437b94ae585cfcea78abaf2504
size 1186
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/SplatterBottom0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/SplatterBottom0.bin
index d29f71284..76f07f8f8 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/SplatterBottom0.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/SplatterBottom0.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:18ce266881a642bcf12110d78fdf73f1168544a17779a3d1f5f89d013b223bd2
+oid sha256:dc60d48b2814daf283e6e09b6a17891a85e2055b4838f872256313b111f0db56
size 1204
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether/Aura.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether/Aura.bin
new file mode 100644
index 000000000..00e3307db
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether/Aura.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:df1cf149d1684515fe6a356eb4b22f5a89fc6873044086886cdb652c3c76fd1e
+size 732
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether/Eye.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether/Eye.bin
new file mode 100644
index 000000000..25e7b6672
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether/Eye.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8674f2dd9be4a3d8b75c195c0d1683578c07fd56b3169809c8148ad93ffe74d3
+size 690
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether/Wing.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether/Wing.bin
new file mode 100644
index 000000000..fac0f80cf
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether/Wing.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5a23fc9944329b427ae02203f1552ecae277e7400556f264b9469496e0f00321
+size 743
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ScreenFX/PotionScreen/Potion_ScreenFX.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ScreenFX/PotionScreen/Potion_ScreenFX.bin
index 38bd5bfe7..eb601beee 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ScreenFX/PotionScreen/Potion_ScreenFX.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ScreenFX/PotionScreen/Potion_ScreenFX.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:9ec2f3949f22a41dcdcfce5f469e646f9a7b0bf025fb262b859523f34dc91d7b
-size 1219
+oid sha256:6a402bc2342e5a343a569cd3aef5d5dee66a495a35dd2b735f6451c32e67506c
+size 1216
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/KeyFrame.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/KeyFrame.xml
new file mode 100644
index 000000000..9ff90fdc0
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/KeyFrame.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/KeyFrame.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/KeyFrame.xml
new file mode 100644
index 000000000..014c4f25f
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/KeyFrame.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
index d76e4d6de..ea661a3e5 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
@@ -1617,7 +1617,7 @@ technique11 DefaultTechnique
SetDepthStencilState(DSS_Effect, 0);
SetBlendState(BS_WB_Acc, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
-
+
PixelShader = compile ps_5_0 PS_NON_NORMALMAP();
}
//4
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxRanrokEther.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxRanrokEther.hlsl
new file mode 100644
index 000000000..a8c51a021
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxRanrokEther.hlsl
@@ -0,0 +1,858 @@
+#include "Engine_Shader_Defines.hlsli"
+#include "Engine_Shader_Functions.hlsli"
+
+struct BoneOut
+{
+ row_major float4x4 Combined;
+ row_major float4x4 Local;
+ row_major float4x4 LocalCombined;
+};
+
+StructuredBuffer g_BoneBuffer : register(t26);
+StructuredBuffer g_PrevBoneBuffer : register(t27);
+
+matrix g_OffsetMatrix[256];
+
+matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
+matrix g_WorldMatrixInv, g_ProjMatrixInv, g_ViewMatrixInv;
+
+matrix g_PrevWorldMatrix, g_PrevViewMatrix, g_PrevProjMatrix;
+
+Texture2D g_DiffuseTexture : register(t0);
+
+Texture2D g_NormalTexture : register(t1);
+Texture2D g_MaskingTexture : register(t2);
+Texture2D g_DissolveTexture : register(t3);
+Texture2D g_NoiseTexture : register(t4);
+
+Texture2D g_EmissiveTexture : register(t6);
+Texture2D g_DepthStencilTexture : register(t7);
+Texture2D g_DistortionTexture : register(t8);
+Texture2D g_DepthTexture : register(t9);
+Texture2D g_SurfaceParamsTexture : register(t10);
+Texture2D g_NormalMapTexture : register(t11);
+
+
+float4 g_vCamPosition;
+float g_fFar;
+float g_fUsingSurfaceParams;
+float g_fMBIntensity = 1.f;
+
+float g_fWinSizeX;
+float g_fWinSizeY;
+
+/* 소프트 이펙트 */
+bool g_isNonSoftEffect;
+bool g_isScreenFX;
+/* 디퓨즈 */
+float4 g_vColor;
+float g_fDiffuseAlpha;
+
+float2 g_vDiffuseUVGainAmount;
+float2 g_vUVCutting;
+
+int g_iDiffuseMoveLerpOption;
+
+bool g_isDiffuseUVMove;
+
+bool g_isDiffuse_R;
+bool g_isDiffuse_G;
+bool g_isDiffuse_B;
+
+/* 노이즈 */
+bool g_isNoiseColor;
+bool g_isNoiseAlpha;
+bool g_isNoiseUVMove;
+
+bool g_isNoise_B;
+bool g_isNoise_G;
+
+float4 g_vNoiseColor;
+float2 g_vNoiseUVGainAmount;
+float2 g_vUVNoiseCutting;
+
+int g_iNoiseMoveLerpOption;
+/* 마스크 */
+
+bool g_isMask_G;
+bool g_isMask_B;
+
+bool g_isMaskClampSample;
+bool g_isMaskUVMove;
+
+float2 g_vMaskingUVGainAmount;
+float2 g_vMaskDistortionUVGainAmount;
+float2 g_vUVMaskCutting;
+
+int g_iMaskMoveLerpOption;
+float2 g_vMaskOffset;
+/* 디졸브 */
+
+
+float g_fDissolveDelay;
+float g_fReverseDissolveDelay;
+float2 g_vDissolveUVGainAmount;
+
+bool g_isDissolve;
+bool g_isDissolveMove;
+bool g_isReverseDissolve;
+bool g_isNomalDissolve;
+
+bool g_isNoDissolveSmoothStep;
+
+bool g_isDissolve_B;
+bool g_isDissolve_G;
+
+float g_fDissolveMaskEdge;
+float g_fDissolveSoftMask;
+float g_fDissolveCutRatio;
+float2 g_vDissolveSmoothRange;
+
+/* 디스토션 */
+
+int g_iMaskDistortionMoveLerpOption;
+int g_iDiffuseDistortionMoveLerpOption;
+
+float2 g_vDistortionTime;
+
+/* 블러 */
+float g_fBlurIntensity; //블러 세기
+float g_fNoiseDistortionIntensity; // 디스토션 왜곡 세기
+
+bool g_isBlurNoEmissive;
+bool g_isBlurColor;
+bool g_isBlurDissolve;
+
+float4 g_vBlurColor;
+
+/* 이미시브 */
+float4 g_vEmissive;
+float g_fEmissiveStrength;
+
+float g_fSoftenExp;
+float g_fSoftStrength;
+float g_fCoreBoost;
+float g_fRadius;
+float g_fEmissiveColorCut;
+
+bool g_isEmissiveDissolve;
+bool g_isEmissiveDissolveReverse;
+
+/* 소프트 마스크*/
+float g_fSoftMaskEdge;
+float g_fSoftMask;
+
+/* Flag */
+bool g_isDiffuse;
+bool g_isMasking;
+
+bool g_isNoise;
+bool g_isEmissive;
+bool g_isDistortion;
+
+/* 블룸 */
+float g_fBloomStrength;
+int g_iBloomType;
+
+bool g_isBloomDissolve;
+bool g_isBloomReverseDissolve;
+
+
+/* 림라이트 */
+bool g_isRimLight;
+
+float g_fRimLightPower;
+float g_fRimLightStrength;
+float4 g_vRimLightColor;
+
+/* 모델 디스토션 */
+
+float g_fModelDistortIntensity;
+
+/* 모델 블러 */
+
+float g_fModelBlurIntensity;
+
+
+/* 시간 값들 */
+float g_fAnimIndex;
+float2 g_vLifeTime;
+float2 g_vDiffuseUVMoveTime;
+float2 g_vMaskingUVMoveTime;
+float2 g_vNoiseUVMoveTime;
+float2 g_vDistortionUVMoveTime;
+float2 g_vDissolveUVMoveTime;
+
+struct VS_IN
+{
+ float3 vPosition : POSITION;
+ float3 vNormal : NORMAL;
+ float3 vTangent : TANGENT;
+ float3 vBinormal : BINORMAL;
+ float2 vTexcoord : TEXCOORD0;
+ uint4 vBlendIndex : BLENDINDEX;
+ float4 vBlendWeight : BLENDWEIGHT;
+};
+
+struct VS_OUT
+{
+ float4 vPosition : SV_Position;
+ float3 vNormal : NORMAL;
+ float3 vTangent : TANGENT;
+ float3 vBinormal : BINORMAL;
+ float2 vTexcoord : TEXCOORD0;
+ float4 vWorldPos : TEXCOORD1;
+ float4 vProjPos : TEXCOORD2;
+ float4 vPrevProjPos : TEXCOORD3;
+};
+
+struct PS_IN
+{
+ float4 vPosition : SV_Position;
+ float3 vNormal : NORMAL;
+ float3 vTangent : TANGENT;
+ float3 vBinormal : BINORMAL;
+ float2 vTexcoord : TEXCOORD0;
+ float4 vWorldPos : TEXCOORD1;
+ float4 vProjPos : TEXCOORD2;
+ float4 vPrevProjPos : TEXCOORD3;
+};
+
+struct PS_OUT
+{
+ float4 vDiffuse : SV_TARGET0;
+ float4 vRevealage : SV_TARGET1;
+};
+
+struct PS_BLNED_OUT
+{
+ float4 vDiffuse : SV_TARGET0;
+};
+
+
+VS_OUT VS_MAIN(VS_IN In)
+{
+ VS_OUT Out = (VS_OUT) 0;
+
+ float4 w = In.vBlendWeight;
+ float sumW = max(dot(w, 1.0f), 1e-6f);
+ w /= sumW;
+
+ matrix BoneMatrix =
+ mul(g_OffsetMatrix[In.vBlendIndex.x],
+ mul(g_BoneBuffer[In.vBlendIndex.x].LocalCombined, w.x))
+ + mul(g_OffsetMatrix[In.vBlendIndex.y],
+ mul(g_BoneBuffer[In.vBlendIndex.y].LocalCombined, w.y))
+ + mul(g_OffsetMatrix[In.vBlendIndex.z],
+ mul(g_BoneBuffer[In.vBlendIndex.z].LocalCombined, w.z))
+ + mul(g_OffsetMatrix[In.vBlendIndex.w],
+ mul(g_BoneBuffer[In.vBlendIndex.w].LocalCombined, w.w));
+
+ matrix PrevBoneMatrix =
+ mul(g_OffsetMatrix[In.vBlendIndex.x],
+ mul(g_PrevBoneBuffer[In.vBlendIndex.x].LocalCombined, w.x))
+ + mul(g_OffsetMatrix[In.vBlendIndex.y],
+ mul(g_PrevBoneBuffer[In.vBlendIndex.y].LocalCombined, w.y))
+ + mul(g_OffsetMatrix[In.vBlendIndex.z],
+ mul(g_PrevBoneBuffer[In.vBlendIndex.z].LocalCombined, w.z))
+ + mul(g_OffsetMatrix[In.vBlendIndex.w],
+ mul(g_PrevBoneBuffer[In.vBlendIndex.w].LocalCombined, w.w));
+
+ vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
+ vector vPrevPosition = mul(vector(In.vPosition, 1.f), PrevBoneMatrix);
+ vector vNormal = mul(vector(In.vNormal, 0.f), BoneMatrix);
+ vector vBinormal = mul(vector(In.vBinormal, 0.f), BoneMatrix);
+ vector vTangent = mul(vector(In.vTangent, 0.f), BoneMatrix);
+
+
+ matrix matWV, matWVP;
+ matWV = mul(g_WorldMatrix, g_ViewMatrix);
+ matWVP = mul(matWV, g_ProjMatrix);
+
+ matrix matPrevWV, matPrevWVP;
+ matPrevWV = mul(g_PrevWorldMatrix, g_PrevViewMatrix);
+ matPrevWVP = mul(matPrevWV, g_PrevProjMatrix);
+
+ Out.vPosition = mul(vPosition, matWVP);
+ Out.vNormal = normalize(mul(vNormal, g_WorldMatrix)).xyz;
+ Out.vBinormal = normalize(mul(vBinormal, g_WorldMatrix)).xyz;
+ Out.vTangent = normalize(mul(vTangent, g_WorldMatrix)).xyz;
+ Out.vTexcoord = In.vTexcoord;
+ Out.vWorldPos = mul(vPosition, g_WorldMatrix);
+ Out.vProjPos = Out.vPosition;
+ Out.vPrevProjPos = mul(vPrevPosition, matPrevWVP);
+ return Out;
+}
+
+
+
+float4 DrawEffect(PS_IN In)
+{
+ float4 vMtrlDiffuse = float4(0.f ,0.f ,0.f ,0.f);
+ float4 vMtrlMask;
+ float4 vMtrlNoise;
+ float4 vMtrlDissolve;
+ float4 vMtrlDistortion;
+
+ float fAnimIndex = g_fAnimIndex;
+ float2 vDiffuseTime = g_vDiffuseUVMoveTime;
+ float2 vMaskingTime = g_vMaskingUVMoveTime;
+ float2 vNoiseUVMoveTime = g_vNoiseUVMoveTime;
+ float2 vDistortionUVMoveTime = g_vDistortionUVMoveTime;
+ float2 vDissolveUVMoveTime = g_vDissolveUVMoveTime;
+ float2 vLifeTime = g_vLifeTime;
+
+ clip(vLifeTime.y - vLifeTime.x);
+
+
+ if (g_isDiffuse == true)
+ {
+ float2 UV; // 이미지의 UV값
+
+ UV = UV_Cutting(In.vTexcoord, g_vUVCutting, uint(fAnimIndex));
+
+ if (g_isDiffuseUVMove)
+ {
+ UV += SelectLerpUV((g_vDiffuseUVGainAmount / g_vUVCutting), (vDiffuseTime.x / vDiffuseTime.y), g_iDiffuseMoveLerpOption);
+ }
+
+ if (g_isDistortion == true)
+ {
+
+ float2 vDistortionUV = In.vTexcoord + SelectLerpUV(g_vMaskDistortionUVGainAmount, (vDistortionUVMoveTime.x / vDistortionUVMoveTime.y), g_iMaskDistortionMoveLerpOption);
+
+ vMtrlDistortion = g_DistortionTexture.Sample(DefaultSampler, vDistortionUV);
+
+
+ float fDistortionIntensity = g_fNoiseDistortionIntensity;
+
+ if (g_vDistortionTime.y != 0)
+ {
+ fDistortionIntensity = g_fNoiseDistortionIntensity * ((vLifeTime.x / vLifeTime.y));
+ }
+
+ //디스토션(노이즈) 텍스쳐로 uv를 왜곡함
+ UV = UV + (vMtrlDistortion - 0.5f).r * fDistortionIntensity;
+
+
+ }
+
+ float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, UV);
+
+ if (g_isDiffuse_R)
+ vMtrlDiffuse.r = vDiffuse.r;
+
+ if (g_isDiffuse_G)
+ vMtrlDiffuse.g = vDiffuse.g;
+
+ if (g_isDiffuse_B)
+ vMtrlDiffuse.b = vDiffuse.b;
+
+ if ((g_isDiffuse_R || g_isDiffuse_G || g_isDiffuse_B) == false) // RGB중 하나도 켜지지 않았더라면
+ vMtrlDiffuse = vDiffuse;
+
+ if (g_vColor.a > 0)
+ vMtrlDiffuse = saturate(g_vColor + vMtrlDiffuse);
+
+ }
+ else
+ {
+ vMtrlDiffuse = g_vColor;
+ }
+
+
+ /* 노이즈 */
+
+ if (g_isNoise)
+ {
+ float2 vNoiseCut = g_vUVNoiseCutting;
+
+ if (length(vNoiseCut) < FLT_EPSILON3)
+ vNoiseCut = float2(1.f, 1.f);
+
+ float2 vNoiseUV = UV_Cutting(In.vTexcoord, vNoiseCut, uint(fAnimIndex));
+
+ if (g_isNoiseUVMove == true)
+ vNoiseUV = In.vTexcoord + SelectLerpUV(g_vNoiseUVGainAmount, (vNoiseUVMoveTime.x / vNoiseUVMoveTime.y), g_iNoiseMoveLerpOption);
+
+ vMtrlNoise = g_NoiseTexture.Sample(DefaultSampler, vNoiseUV);
+
+ if (g_isNoiseAlpha)
+ {
+
+ float fNoiseValue = vMtrlNoise.r;
+
+ if (g_isNoise_G == true)
+ fNoiseValue = vMtrlNoise.g;
+
+ if (g_isNoise_B == true)
+ fNoiseValue = vMtrlNoise.b;
+
+ vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * fNoiseValue.r);
+ }
+
+ if (g_isNoiseColor)
+ {
+ float fNoiseValue = vMtrlNoise.r;
+
+ if (g_isNoise_G == true)
+ fNoiseValue = vMtrlNoise.g;
+
+ if (g_isNoise_B == true)
+ fNoiseValue = vMtrlNoise.b;
+
+ vMtrlDiffuse.rgb *= fNoiseValue;
+ }
+
+ if (length(g_vNoiseColor) > FLT_EPSILON5)
+ vMtrlDiffuse.rgb *= g_vNoiseColor.rgb;
+
+
+ }
+
+ /* 마스크 */
+ if (g_isMasking == true)
+ {
+ float2 vMaskTexcoord = In.vTexcoord;
+
+ vMaskTexcoord = UV_Cutting(In.vTexcoord, g_vUVMaskCutting, uint(fAnimIndex));
+
+ vMaskTexcoord += g_vMaskOffset;
+ // 마스크 디스토션
+ if (g_isDistortion == true)
+ {
+
+ float2 vDistortionUV = In.vTexcoord + SelectLerpUV(g_vMaskDistortionUVGainAmount, (vDistortionUVMoveTime.x / vDistortionUVMoveTime.y), g_iMaskDistortionMoveLerpOption);
+
+ vMtrlDistortion = g_DistortionTexture.Sample(DefaultSampler, vDistortionUV);
+
+
+
+ float fDistortionIntensity = g_fNoiseDistortionIntensity;
+
+ if (g_vDistortionTime.y != 0)
+ {
+ fDistortionIntensity = g_fNoiseDistortionIntensity * ((vLifeTime.x / vLifeTime.y));
+ }
+
+ //디스토션(노이즈) 텍스쳐로 uv를 왜곡함
+ vMaskTexcoord = vMaskTexcoord + (vMtrlDistortion - 0.5f).r * fDistortionIntensity;
+
+ }
+
+ if (g_isMaskUVMove)
+ {
+ if (vMaskingTime.y > 0)
+ vMaskTexcoord += SelectLerpUV(g_vMaskingUVGainAmount / g_vUVMaskCutting, (vMaskingTime.x / vMaskingTime.y), g_iMaskMoveLerpOption);
+ }
+
+ if (g_isMaskClampSample == true)
+ vMtrlMask = g_MaskingTexture.Sample(ClampLinearSampler, vMaskTexcoord);
+ else
+ vMtrlMask = g_MaskingTexture.Sample(DefaultSampler, vMaskTexcoord);
+
+ float fMaskValue = vMtrlMask.r;
+
+ if (g_isMask_G == true)
+ fMaskValue = vMtrlMask.g;
+
+ if (g_isMask_B == true)
+ fMaskValue = vMtrlMask.b;
+
+ float fSoftMask;
+
+ if (g_fSoftMask > FLT_EPSILON5)
+ fSoftMask = saturate((fMaskValue - g_fSoftMaskEdge) * g_fSoftMask);
+ else
+ fSoftMask = fMaskValue;
+
+ vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * fSoftMask);
+
+
+ }
+ else
+ {
+ vMtrlMask.r = 1.f;
+ }
+
+
+ vMtrlDiffuse.a *= g_fDiffuseAlpha;
+
+
+ clip(vMtrlDiffuse.a - FLT_EPSILON7);
+
+ if (g_isDissolve == true)
+ {
+ float fTimeX = (vLifeTime.x - g_fDissolveDelay);
+ float fTimeY = (vLifeTime.y - g_fDissolveDelay);
+ float fTimeRatio = 0;
+
+ if (g_fDissolveDelay <= FLT_EPSILON5)
+ {
+ fTimeRatio = vLifeTime.x / vLifeTime.y;
+ }
+ else if (fTimeX > 0 && fTimeY != 0)
+ {
+ fTimeRatio = saturate(fTimeX / fTimeY);
+ }
+
+
+ if (g_isNomalDissolve)
+ {
+ if (g_isReverseDissolve == false)
+ {
+ vMtrlDiffuse.a *= saturate((0.96f - fTimeRatio));
+ }
+ else
+ {
+ vMtrlDiffuse.a *= vLifeTime.x / vLifeTime.y;
+
+ }
+
+ }
+
+ float2 vDissolveUV = In.vTexcoord + SelectLerpUV(g_vDissolveUVGainAmount, (vDissolveUVMoveTime.x / vDissolveUVMoveTime.y), 0);
+
+
+ if (g_fDissolveCutRatio > FLT_EPSILON5)
+ {
+ if (g_isDissolveMove)
+ vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, vDissolveUV);
+ else
+ vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord);
+
+ float fDissolveValue = vMtrlDissolve.r;
+
+ if (g_isDissolve_G == true)
+ fDissolveValue = vMtrlDissolve.g;
+
+ if (g_isDissolve_B == true)
+ fDissolveValue = vMtrlDissolve.b;
+
+ float fSoftDissolve;
+
+ if (g_fDissolveSoftMask > FLT_EPSILON5)
+ fSoftDissolve = saturate((fDissolveValue - g_fDissolveMaskEdge) * g_fDissolveSoftMask);
+ else
+ fSoftDissolve = fDissolveValue;
+
+ vMtrlDissolve.r = fSoftDissolve;
+
+ if (g_isReverseDissolve == true)
+ {
+
+ clip((vLifeTime.x / vLifeTime.y) - vMtrlDissolve.r);
+ }
+ else
+ {
+
+
+ if (g_fDissolveCutRatio <= fTimeRatio) // 일정 수준 이상 넘어가지 못하도록 막기
+ {
+ fTimeRatio = g_fDissolveCutRatio;
+
+ }
+
+ float fFade = smoothstep(fTimeRatio - g_vDissolveSmoothRange.x, fTimeRatio + g_vDissolveSmoothRange.y, vMtrlDissolve.r);
+
+
+
+ if (g_isNoDissolveSmoothStep == true)
+ {
+ fFade = smoothstep(fTimeRatio, fTimeRatio + FLT_EPSILON5, vMtrlDissolve.r);
+
+ }
+
+ vMtrlDiffuse.a *= fFade;
+
+ }
+ }
+
+
+ /* */
+
+
+
+ clip(vMtrlDiffuse.a - FLT_EPSILON7);
+ }
+
+
+ return vMtrlDiffuse;
+}
+
+float4 EmissiveDraw(PS_IN In, float4 Diffuse)
+{
+ float2 vLifeTime = g_vLifeTime;
+
+ float4 vEmissiveMtrl = float4(0.f, 0.f, 0.f, 0.f);
+ float2 CenteredUV = In.vTexcoord - 0.5f;
+ float fEmissive = 0.f;
+ float fEmissiveStrength = g_fEmissiveStrength;
+
+ if (g_fEmissiveColorCut >= FLT_EPSILON5)
+ {
+ if (g_fEmissiveColorCut > length(Diffuse.rgb))
+ {
+ return vEmissiveMtrl;
+ }
+
+ }
+
+ if (g_fRadius >= FLT_EPSILON5)
+ {
+ float fDistance = saturate(length(CenteredUV) / g_fRadius); // 마스크의 크기를 어느정도할지
+
+ float fSoftEdge = pow(saturate(1.0f - fDistance), g_fSoftenExp) * g_fSoftStrength; //SoftenExp 엣지감쇠지수 , Strength
+
+ float fCore = pow(saturate(1.0 - fDistance * 2.f), max(0.001, g_fCoreBoost)) * g_fCoreBoost; // CoreBust 중심강조
+
+ fEmissive = fSoftEdge + fCore;
+
+ if (g_isEmissive == true)
+ {
+ vEmissiveMtrl = g_EmissiveTexture.Sample(DefaultSampler, In.vTexcoord);
+ }
+ else
+ {
+ vEmissiveMtrl = g_vEmissive;
+ }
+
+ if (g_isEmissiveDissolve == true)
+ {
+ fEmissiveStrength *= (1.f - vLifeTime.x / vLifeTime.y);
+
+ if (fEmissiveStrength <= 0.05f)
+ fEmissiveStrength = 0;
+
+ }
+
+ if (g_isEmissiveDissolveReverse == true)
+ {
+ fEmissiveStrength *= (vLifeTime.x / vLifeTime.y);
+
+ }
+ }
+
+ return saturate(vEmissiveMtrl * fEmissive * fEmissiveStrength);
+
+}
+
+
+
+PS_OUT BlendedWeight(float4 fDiffuse, float fLinearZ)
+{
+ PS_OUT Out = (PS_OUT)0;
+
+ float3 vColor = fDiffuse.rgb;
+ float fAlpha = fDiffuse.a;
+
+
+ // float fWeight =
+ //max(
+ // min(1.0, max(max(vColor.r, vColor.g), vColor.b) * fAlpha), fAlpha)
+ // *
+ // clamp(0.01 / (1e-4 + pow(fLinearZ / 200, 4.0)), 0.01f, 1000);
+
+
+
+ //float fWeight = clamp(0.03f / (1e-5 + pow(fLinearZ, 4.0f)), 0.01, 3e3);
+ //fWeight = max(fWeight, 1.0);
+
+ //이게 오리지널 웨이트 함수
+
+ //float fWeight = pow(fLinearZ, -2.5);
+
+ // float fWeight = clamp(pow(fLinearZ, -2.5f), 1.0f, 1000.0f);
+
+
+ float linearZPositive = max(fLinearZ, 1e-6f);
+ float fWeight = clamp(pow(linearZPositive, -2.5f), 1.0f, 10.0f);
+
+
+ Out.vDiffuse = float4(vColor.rgb * fAlpha, fAlpha) * fWeight;
+
+ Out.vRevealage.r = fAlpha;
+
+
+ return Out;
+}
+
+float4 RimLight(PS_IN In)
+{
+ float4 vRimLight = float4(0.f, 0.f, 0.f, 0.f);
+
+ if (g_isRimLight == true)
+ {
+ float4 vDir = normalize(g_vCamPosition - In.vWorldPos);
+ vDir.w = 0.f;
+
+ vRimLight = saturate(dot(float4(In.vNormal.rgb, 0.f), vDir));
+
+ vRimLight = pow(1.f - vRimLight, g_fRimLightPower);
+ vRimLight = vRimLight * g_vRimLightColor * g_fRimLightStrength;
+ }
+
+ return vRimLight;
+}
+
+
+PS_OUT PS_NON_NORMALMAP(PS_IN In)
+{
+ PS_OUT Out = (PS_OUT) 0;
+
+
+ float4 vMtrlDiffuse;
+
+ vMtrlDiffuse = DrawEffect(In);
+
+ vMtrlDiffuse.rgb += EmissiveDraw(In, vMtrlDiffuse).rgb;
+
+ vMtrlDiffuse += RimLight(In);
+
+
+ Out = BlendedWeight(vMtrlDiffuse, In.vProjPos.w);
+
+ return Out;
+}
+
+
+PS_BLNED_OUT PS_BLEND(PS_IN In)
+{
+ PS_BLNED_OUT Out;
+
+ float4 vMtrlDiffuse;
+
+ vMtrlDiffuse = DrawEffect(In);
+
+ vMtrlDiffuse.rgb += EmissiveDraw(In, vMtrlDiffuse).rgb;
+
+ vMtrlDiffuse += RimLight(In);
+
+ Out.vDiffuse = vMtrlDiffuse;
+ return Out;
+}
+
+PS_BLNED_OUT PS_BLUR(PS_IN In)
+{
+ PS_BLNED_OUT Out;
+
+ float4 vMtrlDiffuse;
+ float2 vLifeTime = g_vLifeTime;
+
+ vMtrlDiffuse = DrawEffect(In);
+
+ if (g_isBlurColor == true)
+ {
+ clip(length(vMtrlDiffuse.rgb) - FLT_EPSILON5);
+
+ vMtrlDiffuse = float4(g_vBlurColor.rgb, vMtrlDiffuse.a);
+ }
+
+
+ vMtrlDiffuse.rgb += EmissiveDraw(In, vMtrlDiffuse).rgb;
+
+ vMtrlDiffuse.a *= 5.f;
+
+ vMtrlDiffuse.a = saturate(vMtrlDiffuse.a);
+
+ float fBulrIntensity = g_fBlurIntensity;
+
+ if (g_isBlurDissolve == true)
+ {
+ fBulrIntensity *= 1.f - (vLifeTime.x / vLifeTime.y);
+
+ fBulrIntensity = saturate(fBulrIntensity);
+ }
+
+ Out.vDiffuse = float4(vMtrlDiffuse.rgb * fBulrIntensity, vMtrlDiffuse.a);
+
+ return Out;
+}
+
+PS_BLNED_OUT PS_BLOOM(PS_IN In)
+{
+ PS_BLNED_OUT Out;
+
+ float2 vLifeTime = g_vLifeTime;
+
+ float4 vMtrlDiffuse = float4(0.f, 0.f, 0.f, 0.f);
+
+ vMtrlDiffuse = DrawEffect(In);
+
+
+ vMtrlDiffuse.rgb += EmissiveDraw(In, vMtrlDiffuse).rgb;
+
+ vMtrlDiffuse += RimLight(In);
+
+ float fBloomStrength = g_fBloomStrength;
+
+ if (g_isBloomDissolve == true)
+ {
+ fBloomStrength = g_fBloomStrength * (1.f - (vLifeTime.x / vLifeTime.y));
+ }
+
+
+ if (g_isBloomReverseDissolve == true)
+ {
+ fBloomStrength = g_fBloomStrength * ((vLifeTime.x / vLifeTime.y));
+ }
+
+ Out.vDiffuse = vMtrlDiffuse * fBloomStrength;
+
+ return Out;
+}
+
+technique11 DefaultTechnique
+{
+//0
+ pass NON_NOMALMAP
+ {
+ SetRasterizerState(RS_Nocull);
+ SetDepthStencilState(DSS_Effect, 0);
+ SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ PixelShader = compile ps_5_0 PS_NON_NORMALMAP();
+ }
+//1
+ pass WEIGHTBLEND
+ {
+ SetRasterizerState(RS_Nocull);
+ SetDepthStencilState(DSS_Effect, 0);
+ SetBlendState(BS_WB_Acc, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ PixelShader = compile ps_5_0 PS_NON_NORMALMAP();
+ }
+//2
+ pass BLEND
+ {
+ SetRasterizerState(RS_Nocull);
+ SetDepthStencilState(DSS_Effect, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ PixelShader = compile ps_5_0 PS_BLEND();
+ }
+
+//3
+ pass Blur
+ {
+ SetRasterizerState(RS_Nocull);
+ SetDepthStencilState(DSS_Effect, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ PixelShader = compile ps_5_0 PS_BLUR();
+ }
+
+//4
+ pass BLOOM
+ {
+ SetRasterizerState(RS_Nocull);
+ SetDepthStencilState(DSS_Effect, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ PixelShader = compile ps_5_0 PS_BLOOM();
+ }
+}
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/Good64x64TilingNoiseHighFreq.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/Good64x64TilingNoiseHighFreq.png
new file mode 100644
index 000000000..dd63cc9d7
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/Good64x64TilingNoiseHighFreq.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_Base011_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_Base011_MRO.dds
new file mode 100644
index 000000000..0d400fefe
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_Base011_MRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_Blank_A.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_Blank_A.dds
new file mode 100644
index 000000000..d02c5d8e2
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_Blank_A.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_Cav_Spid_ThickWeb_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_Cav_Spid_ThickWeb_N.dds
new file mode 100644
index 000000000..4a77ba948
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_Cav_Spid_ThickWeb_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ColorNoise512_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ColorNoise512_D.png
new file mode 100644
index 000000000..c20422c41
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ColorNoise512_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Body_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Body_D.dds
new file mode 100644
index 000000000..fe2a81196
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Body_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Body_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Body_MRO.dds
new file mode 100644
index 000000000..0039d9606
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Body_MRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Body_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Body_MSK.dds
new file mode 100644
index 000000000..cabad19bb
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Body_MSK.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Body_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Body_N.dds
new file mode 100644
index 000000000..19ff15405
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Body_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Wings_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Wings_D.dds
new file mode 100644
index 000000000..b9d4dfb8f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Wings_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Wings_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Wings_MRO.dds
new file mode 100644
index 000000000..8bd817f14
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Wings_MRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Wings_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Wings_MSK.dds
new file mode 100644
index 000000000..6a1a899c3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Wings_MSK.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Wings_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Wings_N.dds
new file mode 100644
index 000000000..1911e3bf3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_ConjuredDragon_Wings_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_CorruptedSpider_Eye_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_CorruptedSpider_Eye_D.dds
new file mode 100644
index 000000000..85e252a4f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_CorruptedSpider_Eye_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_DragonEye_Iris_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_DragonEye_Iris_D.png
new file mode 100644
index 000000000..059dcf656
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_DragonEye_Iris_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_Forageable_Horklump_Gradient_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_Forageable_Horklump_Gradient_D.png
new file mode 100644
index 000000000..dc7dc8c70
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_Forageable_Horklump_Gradient_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_GlassNoise_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_GlassNoise_D.dds
new file mode 100644
index 000000000..077312fd4
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_GlassNoise_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_WaterCaustics_Disorder_A.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_WaterCaustics_Disorder_A.dds
new file mode 100644
index 000000000..f5f05435a
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/T_WaterCaustics_Disorder_A.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_CausticNoise_C_Seamless_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_CausticNoise_C_Seamless_D.png
new file mode 100644
index 000000000..2c3d57910
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_CausticNoise_C_Seamless_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_ConjuredDragonWing_M.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_ConjuredDragonWing_M.dds
new file mode 100644
index 000000000..a0efacb20
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_ConjuredDragonWing_M.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_GooBlob_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_GooBlob_E.png
new file mode 100644
index 000000000..fb634dc66
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_GooBlob_E.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_GooBlob_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_GooBlob_N.dds
new file mode 100644
index 000000000..a245fa9fb
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_GooBlob_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_MarbleSkin_01_BPF_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_MarbleSkin_01_BPF_D.dds
new file mode 100644
index 000000000..1ff91f3a4
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_MarbleSkin_01_BPF_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_Noise05_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_Noise05_D.dds
new file mode 100644
index 000000000..f3ebdd976
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_Noise05_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_RanrakDragon_UpperAlpha_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_RanrakDragon_UpperAlpha_E.dds
new file mode 100644
index 000000000..81e618163
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_RanrakDragon_UpperAlpha_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_RanrakDragon_Upper_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_RanrakDragon_Upper_E.dds
new file mode 100644
index 000000000..4b8533472
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_RanrakDragon_Upper_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_RibbonOffset_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_RibbonOffset_N.dds
new file mode 100644
index 000000000..64b67efe3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_RibbonOffset_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_VerticalBeam_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_VerticalBeam_D.dds
new file mode 100644
index 000000000..c90844d1c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/VFX_T_VerticalBeam_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/base_flat_n.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/base_flat_n.dds
new file mode 100644
index 000000000..f80bb9b11
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/base_flat_n.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/drp_fire_Pink.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/drp_fire_Pink.png
new file mode 100644
index 000000000..1e1e56a54
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/drp_fire_Pink.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/drp_fire_Red.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/drp_fire_Red.png
new file mode 100644
index 000000000..8b6954504
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/drp_fire_Red.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/drp_fire_Yellow.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/drp_fire_Yellow.png
new file mode 100644
index 000000000..453e872d3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/RanrokEther/drp_fire_Yellow.png differ
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
index 8c53839c9..d1d7e4e00 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
@@ -188,6 +188,7 @@ call Update_Shaders.bat
+
@@ -484,6 +485,7 @@ call Update_Shaders.bat
+
@@ -507,6 +509,7 @@ call Update_Shaders.bat
+
@@ -802,6 +805,7 @@ call Update_Shaders.bat
Effect
5.0
+
5.0
Effect
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
index e30df2598..50472fa2d 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
@@ -1656,6 +1656,9 @@
02.GameObjects\Layer_Effect\Effect_Editor\Effect\12.BroomBoost
+
+ 02.GameObjects\Monster\Ranrok
+
@@ -2509,6 +2512,12 @@
02.GameObjects\Layer_Effect\Effect_Editor\Effect\12.BroomBoost
+
+ 02.GameObjects\Monster\Ranrok
+
+
+ 02.GameObjects\Monster\Ranrok
+
@@ -2546,5 +2555,8 @@
99.Define\SHADER
+
+ 99.Define\SHADER
+
\ No newline at end of file
diff --git a/Jusin154_Team3D/Editor/Private/EditEffect.cpp b/Jusin154_Team3D/Editor/Private/EditEffect.cpp
index 717c10efb..26b2660ba 100644
--- a/Jusin154_Team3D/Editor/Private/EditEffect.cpp
+++ b/Jusin154_Team3D/Editor/Private/EditEffect.cpp
@@ -486,6 +486,7 @@ void CEditEffect::Describe_Entity()
}
+
if (GUI::Combo("Render Order", &iCurrentItem, pRenderNames, ENUM_CLASS(RENDER::END)))
{
m_EffectInfo.eRenderOrder = static_cast(iCurrentItem);
diff --git a/Jusin154_Team3D/Editor/Private/EffectPool.cpp b/Jusin154_Team3D/Editor/Private/EffectPool.cpp
index cb4b76aa2..f3d1ccb3d 100644
--- a/Jusin154_Team3D/Editor/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Editor/Private/EffectPool.cpp
@@ -76,7 +76,7 @@ HRESULT CEffectPool::Initialize(void* pArg)
#endif //
#ifdef 진우
m_isActiveEffectCreate = false;
- m_isActiveMonsterEffectCreate = true;
+ m_isActiveMonsterEffectCreate = false;
#endif //
#ifdef 기무리
m_isActiveEffectCreate = false;
diff --git a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp
index 87f3a181b..3d283f0d0 100644
--- a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp
+++ b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp
@@ -267,7 +267,7 @@ HRESULT CLevel_EffectViewer::Ready_Layer_BackGround(const _wstring& strLayerTag)
m_pGameInstance->Set_Fog(10.f, 5.f);
m_pInfoInstance->Load_MapObjects("Dungeon_Map_Data");
- CInfoInstance::GetInstance()->Load_PointLights("Duengon_PointLight_Data");
+ //CInfoInstance::GetInstance()->Load_PointLights("Duengon_PointLight_Data");
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/Level_Logo.cpp b/Jusin154_Team3D/Editor/Private/Level_Logo.cpp
index cf0dea8d1..2b7e782da 100644
--- a/Jusin154_Team3D/Editor/Private/Level_Logo.cpp
+++ b/Jusin154_Team3D/Editor/Private/Level_Logo.cpp
@@ -60,7 +60,7 @@ void CLevel_Logo::Update(_float fTimeDelta)
return;
#endif // gimch
#ifdef 기무리
- if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::EFFECT))))
+ if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::OBJECT))))
return;
#endif // 기무리
#ifdef 진우
diff --git a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp
index f58aaf9c9..dbc760779 100644
--- a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp
+++ b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp
@@ -63,6 +63,8 @@ void CLevel_ObjectViewer::Update(_float fTimeDelta)
Find_Anim();
+ Sound_List();
+
if(m_isUpdateEvent)
{
for (auto& pObject : m_Objects)
@@ -747,6 +749,28 @@ void CLevel_ObjectViewer::Find_Anim()
}
+void CLevel_ObjectViewer::Sound_List()
+{
+ GUI::Begin("Sound_List");
+ if (GUI::CollapsingHeader("Sound list"))
+ {
+ for (_uint i = 0; i < ENUM_CLASS(SOUND::SD_KIND::END); ++i)
+ {
+ _wstring Name = SOUND::SD_PATH::SD_KIND_PATHS[i];
+
+ if (GUI::Button(("S_" + CMyTools::ToString(Name)).c_str()))
+ {
+ m_pGameInstance->Sound_Play(static_cast(i), SD_CHANNEL_GROUP::EFFECT, false, m_fVolume);
+ }
+ GUI::SameLine();
+ if (GUI::SmallButton(("Stop Sound##" + to_string(i)).c_str()))
+ m_pGameInstance->Sound_Stop(static_cast(i), SD_CHANNEL_GROUP::EFFECT);
+
+ }
+ }
+ GUI::End();
+}
+
void CLevel_ObjectViewer::Save_KeyFrame()
{
diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp
index b37ad9c3f..0a98f1add 100644
--- a/Jusin154_Team3D/Editor/Private/Loader.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader.cpp
@@ -390,6 +390,9 @@ HRESULT CLoader::Loading_For_Logo()
jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
FX_VTXPOS,
TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"), VTXPOS::Elements, VTXPOS::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_RANROK_ETHER,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_VtxRanrokEther.hlsl"), VTXANIMMESH::Elements, VTXANIMMESH::iNumElements));
}
m_strMessage = TEXT("Texture Loading..");
@@ -1569,6 +1572,23 @@ HRESULT CLoader::Loading_For_Effect()
});
+ Asset_FileLoad("../Bin/Resources/Textures/Effect/RanrokEther", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
+
+ _string strFilePath = pFilePath;
+ _wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
+
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::EFFECT), wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0, L"RANROK")))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
+
+
+
m_strMessage = TEXT("Model Loading..");
diff --git a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp
index 5a2bbca19..a4e9d67db 100644
--- a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp
@@ -102,10 +102,15 @@ HRESULT CLoader::Loading_For_ObjectViewer()
futures.emplace_back(Deferred_ModelLoad(
- MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin",XMMatrixScaling(0.01f,0.01f,0.01f)* XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
TEXT("Prototype_Component_ConjuredDragon_Model")
));
+ //futures.emplace_back(Deferred_ModelLoad(
+ // MODEL::ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon_Anim.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ // TEXT("Prototype_Component_ConjuredDragon_Model")
+ //));
+
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll_TrollIntro.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_trsoll_Model")
diff --git a/Jusin154_Team3D/Editor/Private/Ranrok.cpp b/Jusin154_Team3D/Editor/Private/Ranrok.cpp
index 1b81b818b..23e72bc64 100644
--- a/Jusin154_Team3D/Editor/Private/Ranrok.cpp
+++ b/Jusin154_Team3D/Editor/Private/Ranrok.cpp
@@ -13,6 +13,7 @@
#include "Ranrok_Point.h"
#include "EditEffect.h"
#include "TrailObject.h"
+#include "Ranrok_EtherInfo.h"
#pragma region STATE
#include "State_Idle.h"
@@ -88,6 +89,12 @@ HRESULT CRanrok::Initialize(void* pArg)
m_fRimPower = 2.3f;
m_vRimColor = _float4(0.333f, 0.235f, 0.184f, 0.059f);
+ Ether_Create();
+
+#if 진우
+ m_pLeftEye_Trail->Set_Visible(false);
+ m_pRightEye_Trail->Set_Visible(false);
+#endif
return S_OK;
}
@@ -122,6 +129,8 @@ void CRanrok::Update(_float fTimeDelta)
Play_Event();
+ Ether_Update(fTimeDelta);
+
if (true == m_pCharacter_Controller->IsActive()) {
{ // 세트
m_pCallBack_HitReport->BeginFrame();
@@ -145,6 +154,7 @@ void CRanrok::Update(_float fTimeDelta)
}
#ifdef _DEBUG
Describe_Entity();
+ Ether_GUI();
#endif // _DEBUG
@@ -227,12 +237,16 @@ void CRanrok::Late_Update(_float fTimeDelta)
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
+ m_pGameInstance->Add_RenderGroup(RENDER::EFFECT, this);
+ m_pGameInstance->Add_RenderGroup(RENDER::BLUR, this);
+ m_pGameInstance->Add_RenderGroup(RENDER::BLOOM, this);
+
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
}
HRESULT CRanrok::Render()
{
- if (!m_bVisible){
+ if (!m_bVisible) {
return S_OK;
}
if (FAILED(Bind_ShaderResources())) {
@@ -243,7 +257,7 @@ HRESULT CRanrok::Render()
if (RENDER::NONBLEND == eCurrentPass) {
hr = Render_Nonblend();
}
- else if (RENDER::BLEND == eCurrentPass) {
+ else if (RENDER::BLEND == eCurrentPass || RENDER::EFFECT == eCurrentPass) {
hr = Render_Blend();
hr = S_OK;
}
@@ -432,6 +446,12 @@ HRESULT CRanrok::Ready_Components()
return E_FAIL;
}
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_RANROK_ETHER,
+ reinterpret_cast(&m_pEther_Shader)))) {
+ return E_FAIL;
+ }
+
+
m_strModelPrototypeTag = TEXT("Prototype_Component_Ranrok_Model");
/* Com_Model */
@@ -665,29 +685,48 @@ HRESULT CRanrok::Render_Nonblend()
}
HRESULT CRanrok::Render_Blend()
{
- _float fDiffuseUVRatio = (m_vEtherealTimer.x / m_vEtherealTimer.y);
- if (FAILED(m_pShaderCom->Bind_RawValue("g_fEtherealRatio", &fDiffuseUVRatio, sizeof(_float)))) {
- return E_FAIL;
- }
for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_HOT_SPINE); i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); ++i)
{
- if (FAILED(m_pShaderCom->Bind_Matrices("g_OffsetMatrix",
+ RENDER eCurrentPass = m_pGameInstance->Get_CurrentRenderPass();
+
+ if (m_pEtherInfo[i]->Get_RenderOrder() != eCurrentPass)
+ continue;
+
+ if (FAILED(m_pEther_Shader->Bind_Matrices("g_OffsetMatrix",
m_pModelCom->Get_OffsetMatrix(i).data(),
(_int)m_pModelCom->Get_OffsetMatrix(i).size())))
{
return E_FAIL;
}
- if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
+ m_pEtherInfo[i]->Bind_Ether_ShaderResources(m_pEther_Shader);
+
+ _float4x4 WorldInv = {};
+
+ XMStoreFloat4x4(&WorldInv, m_pTransformCom->Get_WorldMatrixInv());
+
+ if (FAILED(m_pEther_Shader->Bind_Matrix("g_WorldMatrixInv", &WorldInv))) {
return E_FAIL;
}
- if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
+
+ if (FAILED(m_pEther_Shader->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pEther_Shader, "g_WorldMatrix")))
+ return E_FAIL;
+
+
+
+ if (FAILED(m_pEtherInfo[i]->Ether_Begin(m_pEther_Shader))) {
return E_FAIL;
}
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
+
+
if (true == m_bDrawOutLine) {
m_pGameInstance->Begin_OutLine_Write(2);
}
@@ -713,6 +752,105 @@ HRESULT CRanrok::Render_Blend()
return S_OK;
}
+HRESULT CRanrok::Render_Blur()
+{
+
+ for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_HOT_SPINE); i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); ++i)
+ {
+
+ if (m_pEtherInfo[i]->isBlur() == false)
+ continue;
+
+ if (FAILED(m_pEther_Shader->Bind_Matrices("g_OffsetMatrix",
+ m_pModelCom->Get_OffsetMatrix(i).data(),
+ (_int)m_pModelCom->Get_OffsetMatrix(i).size())))
+ {
+ return E_FAIL;
+ }
+
+ m_pEtherInfo[i]->Bind_Ether_ShaderResources(m_pEther_Shader);
+
+ _float4x4 WorldInv = {};
+
+ XMStoreFloat4x4(&WorldInv, m_pTransformCom->Get_WorldMatrixInv());
+
+ if (FAILED(m_pEther_Shader->Bind_Matrix("g_WorldMatrixInv", &WorldInv))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pEther_Shader->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pEther_Shader, "g_WorldMatrix")))
+ return E_FAIL;
+
+
+
+ if (FAILED(m_pEther_Shader->Begin(ENUM_CLASS(SHADER_PASS_ETHER::BLUR)))) {
+ return E_FAIL;
+ }
+
+ m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
+ m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
+
+ if (FAILED(m_pModelCom->Render(i))) {
+ return E_FAIL;
+ }
+
+ }
+
+ return S_OK;
+}
+
+HRESULT CRanrok::Render_Bloom()
+{
+ for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_HOT_SPINE); i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); ++i)
+ {
+
+ if (m_pEtherInfo[i]->isBloom() == false)
+ continue;
+
+ if (FAILED(m_pEther_Shader->Bind_Matrices("g_OffsetMatrix",
+ m_pModelCom->Get_OffsetMatrix(i).data(),
+ (_int)m_pModelCom->Get_OffsetMatrix(i).size())))
+ {
+ return E_FAIL;
+ }
+
+ m_pEtherInfo[i]->Bind_Ether_ShaderResources(m_pEther_Shader);
+
+ _float4x4 WorldInv = {};
+
+ XMStoreFloat4x4(&WorldInv, m_pTransformCom->Get_WorldMatrixInv());
+
+ if (FAILED(m_pEther_Shader->Bind_Matrix("g_WorldMatrixInv", &WorldInv))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pEther_Shader->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pEther_Shader, "g_WorldMatrix")))
+ return E_FAIL;
+
+
+ if (FAILED(m_pEther_Shader->Begin(ENUM_CLASS(SHADER_PASS_ETHER::BLOOM)))) {
+ return E_FAIL;
+ }
+
+ m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
+ m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
+
+ if (FAILED(m_pModelCom->Render(i))) {
+ return E_FAIL;
+ }
+
+ }
+ return S_OK;
+}
+
HRESULT CRanrok::Render_MotionTrail(ID3D11ShaderResourceView* pSRV)
{
@@ -898,9 +1036,17 @@ void CRanrok::Free()
SAFE_RELEASE(m_pRightEye_Trail);
SAFE_RELEASE(m_pRightPt);
SAFE_RELEASE(m_pLeftPt);
+ SAFE_RELEASE(m_pEther_Shader);
+ SAFE_RELEASE(m_pMotionTrailCom);
Safe_Delete(m_pCallBack_Behavior);
Safe_Delete(m_pCallBack_HitReport);
+
+ for (size_t i = 0; i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); i++)
+ {
+ SAFE_RELEASE(m_pEtherInfo[i]);
+ }
+
}
#ifdef _DEBUG
@@ -920,6 +1066,7 @@ void CRanrok::Describe_Entity()
SAFE_RELEASE(m_pLeftPt);
SAFE_RELEASE(m_pMotionTrailCom);
+
for (auto& pParts : m_PartObjects)
{
SAFE_RELEASE(pParts.second);
diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_Ether.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_Ether.cpp
new file mode 100644
index 000000000..42b0bd9ff
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Ranrok_Ether.cpp
@@ -0,0 +1,60 @@
+#include "pch.h"
+#include "Ranrok.h"
+#include "InfoInstance.h"
+#include "GameInstance.h"
+#include "Ranrok_EtherInfo.h"
+
+void CRanrok::Ether_Create()
+{
+ for (size_t i = 0; i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); i++)
+ {
+ m_pEtherInfo[i] = CRanrok_EtherInfo::Create(m_pDevice, m_pContext);
+ }
+}
+
+void CRanrok::Ether_Update(_float fTimeDelata)
+{
+ for (size_t i = 0; i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); i++)
+ {
+ m_pEtherInfo[i]->Update(fTimeDelata);
+ }
+}
+
+void CRanrok::Ether_GUI()
+{
+ GUI::Begin("Ether");
+
+ const char* pRanrokParts[] = { "ETHEREAL_HOT_SPINE" , "ETHEREAL_HOT_WINGS" , "ETHEREAL_HOT_ARMS" , "ETHEREAL_HOT_SHELL" , "ETHEREAL_AURA" , "ETHEREAL_EYES" , "ETHEREAL_WINGS"};
+ _int iCurrentItem = m_iCurrentItem;
+
+
+ if (GUI::Combo("RanrokParts", &iCurrentItem, pRanrokParts, ENUM_CLASS(RANROK_MESH_ORDER::WINGS)))
+ {
+ m_iCurrentItem = iCurrentItem;
+ }
+
+ if (GUI::TreeNode(pRanrokParts[m_iCurrentItem]))
+ {
+ m_pEtherInfo[m_iCurrentItem]->Describe_Entity();
+
+ GUI::TreePop();
+ }
+
+
+ GUI::InputTextMultiline("FILE PATH", m_szBuffer, sizeof(m_szBuffer), ImVec2(250, 25));
+
+ m_strSavePath = m_szBuffer;
+
+ if (GUI::Button("SAVE"))
+ {
+ m_pEtherInfo[m_iCurrentItem]->Save_Info(m_strSavePath.c_str());
+ }
+
+ if (GUI::Button("LOAD"))
+ {
+ m_pEtherInfo[m_iCurrentItem]->Load_Info(m_strSavePath.c_str() , LEVEL::EFFECT);
+ }
+
+ GUI::End();
+
+}
diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_EtherInfo.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_EtherInfo.cpp
new file mode 100644
index 000000000..72aebffef
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Ranrok_EtherInfo.cpp
@@ -0,0 +1,1560 @@
+#include "pch.h"
+#include "Ranrok_EtherInfo.h"
+
+#include "GameInstance.h"
+
+CRanrok_EtherInfo::CRanrok_EtherInfo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CGameObject(pDevice, pContext)
+{
+}
+
+CRanrok_EtherInfo::CRanrok_EtherInfo(const CRanrok_EtherInfo& Prototype)
+ : CGameObject(Prototype)
+{
+}
+
+HRESULT CRanrok_EtherInfo::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CRanrok_EtherInfo::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(Ready_Components())) {
+ return E_FAIL;
+ }
+
+ m_Ether_Info.eRenderOrder = RENDER::BLEND;
+
+ return S_OK;
+}
+
+void CRanrok_EtherInfo::Priority_Update(_float fTimeDelta)
+{
+
+}
+
+void CRanrok_EtherInfo::Update(_float fTimeDelta)
+{
+ Update_Time(fTimeDelta);
+}
+
+void CRanrok_EtherInfo::Late_Update(_float fTimeDelta)
+{
+
+}
+
+HRESULT CRanrok_EtherInfo::Render()
+{
+ return S_OK;
+}
+
+
+
+void CRanrok_EtherInfo::Update_Time(_float fTimeDelta)
+{
+
+ m_ErherTimeInfo.vAnimTime.x += fTimeDelta;
+
+ if (m_ErherTimeInfo.vAnimTime.x >= m_ErherTimeInfo.vAnimTime.y)
+ {
+ m_ErherTimeInfo.vAnimTime.x = 0.f;
+
+ m_ErherTimeInfo.vAnimIndex.x += 1.f;
+
+ if (m_ErherTimeInfo.vAnimIndex.x > m_ErherTimeInfo.vAnimIndex.y) // 애니메이션에 끝에 다다랐다면
+ {
+ m_ErherTimeInfo.vAnimIndex.x = 0.f; // 인덱스 초기화
+
+ }
+ }
+
+ m_ErherTimeInfo.vLifeTime.x += fTimeDelta;
+
+ if (m_ErherTimeInfo.vLifeTime.x >= m_ErherTimeInfo.vLifeTime.y)
+ {
+ m_ErherTimeInfo.vLifeTime.x = 0.f;
+ }
+
+ m_ErherTimeInfo.vDiffuseUVMoveTime.x += fTimeDelta;
+
+ if (m_ErherTimeInfo.vDiffuseUVMoveTime.x >= m_ErherTimeInfo.vDiffuseUVMoveTime.y)
+ {
+ m_ErherTimeInfo.vDiffuseUVMoveTime.x = 0.f;
+ }
+
+ m_ErherTimeInfo.vMaskingUVMoveTime.x += fTimeDelta;
+
+ if (m_ErherTimeInfo.vMaskingUVMoveTime.x >= m_ErherTimeInfo.vMaskingUVMoveTime.y)
+ {
+ m_ErherTimeInfo.vMaskingUVMoveTime.x = 0.f;
+ }
+
+ m_ErherTimeInfo.vNoiseUVMoveTime.x += fTimeDelta;
+
+ if (m_ErherTimeInfo.vNoiseUVMoveTime.x >= m_ErherTimeInfo.vNoiseUVMoveTime.y)
+ {
+ m_ErherTimeInfo.vNoiseUVMoveTime.x = 0.f;
+ }
+
+ m_ErherTimeInfo.vDistortionUVMoveTime.x += fTimeDelta;
+
+ if (m_ErherTimeInfo.vDistortionUVMoveTime.x >= m_ErherTimeInfo.vDistortionUVMoveTime.y)
+ {
+ m_ErherTimeInfo.vDistortionUVMoveTime.x = 0.f;
+ }
+
+ m_ErherTimeInfo.vDissolveUVMoveTime.x += fTimeDelta;
+
+ if (m_ErherTimeInfo.vDissolveUVMoveTime.x >= m_ErherTimeInfo.vDissolveUVMoveTime.y)
+ {
+ m_ErherTimeInfo.vDissolveUVMoveTime.x = 0.f;
+ }
+
+}
+
+void CRanrok_EtherInfo::Edit_Ether()
+{
+
+}
+
+HRESULT CRanrok_EtherInfo::Bind_Ether_ShaderResources(CShader* pShader)
+{
+
+ if (FAILED(pShader->Bind_RawValue("g_fAnimIndex", &m_ErherTimeInfo.vAnimIndex.x, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vLifeTime", &m_ErherTimeInfo.vLifeTime, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_RawValue("g_vDiffuseUVMoveTime", &m_ErherTimeInfo.vDiffuseUVMoveTime, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_RawValue("g_vMaskingUVMoveTime", &m_ErherTimeInfo.vMaskingUVMoveTime, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_RawValue("g_vNoiseUVMoveTime", &m_ErherTimeInfo.vNoiseUVMoveTime, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_RawValue("g_vDistortionUVMoveTime", &m_ErherTimeInfo.vDistortionUVMoveTime, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_RawValue("g_vDissolveUVMoveTime", &m_ErherTimeInfo.vDissolveUVMoveTime, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+
+
+ if (m_Ether_Info.eRenderOrder != RENDER::BULR_MESH)
+ {
+ if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Depth"), pShader, "g_DepthTexture"))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_NormalCopy"), pShader, "g_NormalMapTexture"))) {
+ return E_FAIL;
+ }
+ }
+
+ _float2 vViewPortSize = m_pGameInstance->Get_ViewPortSize();
+
+ if (FAILED(pShader->Bind_RawValue("g_fWinSizeX", &vViewPortSize.x, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fWinSizeY", &vViewPortSize.y, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+
+
+ if (FAILED(pShader->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float4)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_Matrix("g_ViewMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW_INV)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_Matrix("g_ProjMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ_INV)))) {
+ return E_FAIL;
+ }
+
+ if (m_Ether_Info.isMotionBlur == true || m_Ether_Info.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DEFAULT)
+ {
+
+ if (FAILED(m_pGameInstance->Bind_PrevMatrix(pShader, "g_PrevProjMatrix", D3DTS::PROJ))) {
+ return E_FAIL;
+ }
+
+
+ if (FAILED(m_pGameInstance->Bind_PrevMatrix(pShader, "g_PrevViewMatrix", D3DTS::VIEW))) {
+ return E_FAIL;
+ }
+
+
+
+ }
+
+ if (m_Ether_Info.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DECAL_WB || m_Ether_Info.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DECAL_BLUR)
+ {
+ if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Normal"), pShader, "g_NormalMapTexture"))) {
+ return E_FAIL;
+ }
+
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isDiffuse", &m_Ether_Info.isDiffuse, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isMasking", &m_Ether_Info.isMasking, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isDissolve", &m_Ether_Info.isDissolve, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isNoise", &m_Ether_Info.isNoise, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isEmissive", &m_Ether_Info.isEmissive, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isDistortion", &m_Ether_Info.isDistortion, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isDiffuseUVMove", &m_Ether_Info.isDiffuseUVMove, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isMaskUVMove", &m_Ether_Info.isMaskUVMove, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isNoiseUVMove", &m_Ether_Info.isNoiseUVMove, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isReverseDissolve", &m_Ether_Info.isReverseDissolve, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isEmissiveDissolve", &m_Ether_Info.isEmissiveDissolve, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isMaskClampSample", &m_Ether_Info.isMaskClampSample, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isNoiseColor", &m_Ether_Info.isNoiseColor, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isNoiseAlpha", &m_Ether_Info.isNoiseAlpha, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isNomalDissolve", &m_Ether_Info.isNomalDissolve, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isEmissiveDissolveReverse", &m_Ether_Info.isEmissiveDissolveReverse, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+
+ if (FAILED(pShader->Bind_RawValue("g_isBlurNoEmissive", &m_Ether_Info.isBlurNoEmissive, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vColor", &m_Ether_Info.vColor, sizeof(_float4)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vEmissive", &m_Ether_Info.vEmissive, sizeof(_float4)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fEmissiveStrength", &m_Ether_Info.fEmissiveStrength, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fNoiseDistortionIntensity", &m_Ether_Info.fNoiseDistortionIntensity, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vDiffuseUVGainAmount", &m_Ether_Info.vDiffuseUVGainAmount, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vMaskingUVGainAmount", &m_Ether_Info.vMaskingUVGainAmount, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vNoiseUVGainAmount", &m_Ether_Info.vNoiseUVGainAmount, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vDistortionTime", &m_Ether_Info.vDistortionTime, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vMaskDistortionUVGainAmount", &m_Ether_Info.vMaskDistortionUVGainAmount, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+
+
+ if (FAILED(pShader->Bind_RawValue("g_vUVCutting", &m_Ether_Info.vUVCutting, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vUVMaskCutting", &m_Ether_Info.vUVMaskCutting, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_iMaskMoveLerpOption", &m_Ether_Info.iMaskMoveLerpOption, sizeof(_int)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_iDiffuseMoveLerpOption", &m_Ether_Info.iDiffuseMoveLerpOption, sizeof(_int)))) {
+ return E_FAIL;
+ }
+
+
+ if (FAILED(pShader->Bind_RawValue("g_iMaskDistortionMoveLerpOption", &m_Ether_Info.iMaskDistortionMoveLerpOption, sizeof(_int)))) {
+ return E_FAIL;
+ }
+
+
+ if (FAILED(pShader->Bind_RawValue("g_iDiffuseDistortionMoveLerpOption", &m_Ether_Info.iDiffuseDistortionMoveLerpOption, sizeof(_int)))) {
+ return E_FAIL;
+ }
+
+
+
+ if (FAILED(pShader->Bind_RawValue("g_fDiffuseAlpha", &m_Ether_Info.fDiffuseAlpha, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fSoftenExp", &m_Ether_Info.fSoftenExp, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fSoftStrength", &m_Ether_Info.fSoftStrength, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fCoreBoost", &m_Ether_Info.fCoreBoost, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fRadius", &m_Ether_Info.fRadius, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fSoftMaskEdge", &m_Ether_Info.fSoftMaskEdge, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fSoftMask", &m_Ether_Info.fSoftMask, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fDissolveDelay", &m_Ether_Info.fDissolveDelay, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fReverseDissolveDelay", &m_Ether_Info.fReverseDissolveDelay, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vDissolveUVGainAmount", &m_Ether_Info.vDissolveUVGainAmount, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isDissolveMove", &m_Ether_Info.isDissolveMove, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isNoDissolveSmoothStep", &m_Ether_Info.isNoDissolveSmoothStep, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fDissolveMaskEdge", &m_Ether_Info.vDissolveValue.x, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fDissolveSoftMask", &m_Ether_Info.vDissolveValue.y, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fDissolveCutRatio", &m_Ether_Info.vDissolveValue.z, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isBlurColor", &m_Ether_Info.isBlurColor, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vBlurColor", &m_Ether_Info.vBlurColor, sizeof(_float4)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vNoiseColor", &m_Ether_Info.vNoiseColor, sizeof(_float4)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fEmissiveColorCut", &m_Ether_Info.fEmissiveColorCut, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isRimLight", &m_Ether_Info.isRimLight, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vRimLightColor", &m_Ether_Info.vRimLightColor, sizeof(_float4)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fRimLightPower", &m_Ether_Info.fRimLightPower, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fRimLightStrength", &m_Ether_Info.fRimLightStrength, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fModelDistortIntensity", &m_Ether_Info.fModelDistortIntensity, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+
+ if (FAILED(pShader->Bind_RawValue("g_vMaskOffset", &m_Ether_Info.vMaskOffset, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+
+ if (FAILED(pShader->Bind_RawValue("g_vUVNoiseCutting", &m_Ether_Info.vUVNoiseCutting, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_vDissolveSmoothRange", &m_Ether_Info.vDissolveSmoothRange, sizeof(_float2)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fModelBlurIntensity", &m_Ether_Info.fModelBlurIntensity, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+
+
+
+ if (FAILED(pShader->Bind_RawValue("g_isMask_G", &m_Ether_Info.isMask_G, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_RawValue("g_isMask_B", &m_Ether_Info.isMask_B, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isNoise_G", &m_Ether_Info.isNoise_G, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_RawValue("g_isNoise_B", &m_Ether_Info.isNoise_B, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_RawValue("g_isDissolve_G", &m_Ether_Info.isDissolve_G, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_RawValue("g_isDissolve_B", &m_Ether_Info.isDissolve_B, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_RawValue("g_isDiffuse_R", &m_Ether_Info.isDiffuse_R, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_RawValue("g_isDiffuse_G", &m_Ether_Info.isDiffuse_G, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+ if (FAILED(pShader->Bind_RawValue("g_isDiffuse_B", &m_Ether_Info.isDiffuse_B, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isBlurDissolve", &m_Ether_Info.isBlurDissolve, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isNonSoftEffect", &m_Ether_Info.isNonSoftEffect, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isScreenFX", &m_Ether_Info.isScreenFX, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fBlurIntensity", &m_Ether_Info.fBlurIntensity, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_fBloomStrength", &m_Ether_Info.fBloomStrength, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_iBloomType", &m_Ether_Info.eBloomType, sizeof(_int)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isBloomDissolve", &m_Ether_Info.isBloomDissolve, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(pShader->Bind_RawValue("g_isBloomReverseDissolve", &m_Ether_Info.isBloomReverseDissolve, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+
+ if (m_pDiffuse_TextureCom != nullptr)
+ {
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(pShader, "g_DiffuseTexture", 0))) {
+ return E_FAIL;
+ }
+ }
+
+ if (m_pNoise_TextureCom != nullptr)
+ {
+ if (FAILED(m_pNoise_TextureCom->Bind_ShaderResource(pShader, "g_NoiseTexture", 0))) {
+ return E_FAIL;
+ }
+ }
+
+ if (m_pMasking_TextureCom != nullptr)
+ {
+ if (FAILED(m_pMasking_TextureCom->Bind_ShaderResource(pShader, "g_MaskingTexture", 0))) {
+ return E_FAIL;
+ }
+ }
+
+ if (m_pDissolve_TextureCom != nullptr)
+ {
+ if (FAILED(m_pDissolve_TextureCom->Bind_ShaderResource(pShader, "g_DissolveTexture", 0))) {
+ return E_FAIL;
+ }
+ }
+
+ if (m_pEmissive_TextureCom != nullptr)
+ {
+ if (FAILED(m_pEmissive_TextureCom->Bind_ShaderResource(pShader, "g_EmissiveTexture", 0))) {
+ return E_FAIL;
+ }
+ }
+
+ if (m_pDistortion_TextureCom != nullptr)
+ {
+ if (FAILED(m_pDistortion_TextureCom->Bind_ShaderResource(pShader, "g_DistortionTexture", 0))) {
+ return E_FAIL;
+ }
+ }
+
+
+ return S_OK;
+}
+
+HRESULT CRanrok_EtherInfo::Ether_Begin(CShader* pShader)
+{
+ if(FAILED(pShader->Begin(ENUM_CLASS(m_Ether_Info.eShaderPass))))
+ return E_FAIL;
+
+ return S_OK;
+}
+
+HRESULT CRanrok_EtherInfo::Ready_Components()
+{
+ return S_OK;
+}
+
+HRESULT CRanrok_EtherInfo::Bind_ShaderResources()
+{
+
+ return S_OK;
+}
+
+HRESULT CRanrok_EtherInfo::Load_Info(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);
+
+ _string strPerfectFilePath = pFilePath;
+
+ m_strPath = strPerfectFilePath;
+
+ 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_Ether_Info, sizeof(EFFECT_INFO), &dwByte, nullptr)) {
+ CloseHandle(hFile);
+ return E_FAIL;
+ }
+
+ if (m_Ether_Info.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_Ether_Info.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_Ether_Info.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_Ether_Info.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_Ether_Info.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_Ether_Info.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;
+ }
+ }
+
+
+ }
+
+ if (!ReadFile(hFile, &m_ErherTimeInfo, sizeof(TIME_INFO), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+
+ CloseHandle(hFile);
+
+
+
+ return S_OK;
+}
+
+HRESULT CRanrok_EtherInfo::Save_Info(const _char* pPath)
+{
+ _string strPerfectFilePath = pPath;
+ strPerfectFilePath += ".bin";
+
+ HANDLE hFile = CreateFile(CMyTools::ToWstring(strPerfectFilePath).c_str(),
+ GENERIC_WRITE,
+ FILE_SHARE_READ | FILE_SHARE_WRITE,
+ NULL, CREATE_ALWAYS,
+ FILE_ATTRIBUTE_NORMAL, NULL
+ );
+
+
+ if (hFile == INVALID_HANDLE_VALUE) {
+ MessageBox(NULL, L"에테르 오브젝트 저장 실패", L"System Message", MB_OK);
+ return E_FAIL;
+ }
+
+ m_strPath = strPerfectFilePath;
+
+ DWORD dwByte(0);
+
+
+ if (!WriteFile(hFile, &m_Ether_Info, sizeof(EFFECT_INFO), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+
+
+
+
+ if (m_Ether_Info.isDiffuse)
+ {
+ size_t iComponentLength = m_strDiffuseName.length();
+ const _char* pFileComponentPath = m_strDiffuseName.c_str();
+
+ if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+
+ if (iComponentLength != 0)
+ {
+ if (!WriteFile(hFile, pFileComponentPath, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+ }
+ }
+
+ if (m_Ether_Info.isNoise)
+ {
+ size_t iComponentLength = m_strNoiseName.length();
+ const _char* pFileComponentPath = m_strNoiseName.c_str();
+
+ if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+
+ if (iComponentLength != 0)
+ {
+ if (!WriteFile(hFile, pFileComponentPath, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+ }
+ }
+
+ if (m_Ether_Info.isMasking)
+ {
+ size_t iComponentLength = m_strMaskingName.length();
+ const _char* pFileComponentPath = m_strMaskingName.c_str();
+
+ if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+
+ if (iComponentLength != 0)
+ {
+ if (!WriteFile(hFile, pFileComponentPath, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+ }
+ }
+
+ if (m_Ether_Info.isDissolve)
+ {
+ size_t iComponentLength = m_strDissolveName.length();
+ const _char* pFileComponentPath = m_strDissolveName.c_str();
+
+ if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+
+ if (iComponentLength != 0)
+ {
+ if (!WriteFile(hFile, pFileComponentPath, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+ }
+ }
+
+ if (m_Ether_Info.isEmissive)
+ {
+ size_t iComponentLength = m_strEmissiveName.length();
+ const _char* pFileComponentPath = m_strEmissiveName.c_str();
+
+ if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+
+ if (iComponentLength != 0)
+ {
+ if (!WriteFile(hFile, pFileComponentPath, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+ }
+ }
+
+ if (m_Ether_Info.isDistortion)
+ {
+ size_t iComponentLength = m_strDistortionName.length();
+ const _char* pFileComponentPath = m_strDistortionName.c_str();
+
+ if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+
+ if (iComponentLength != 0)
+ {
+ if (!WriteFile(hFile, pFileComponentPath, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+ }
+ }
+
+ if (!WriteFile(hFile, &m_ErherTimeInfo, sizeof(TIME_INFO), &dwByte, nullptr)) {
+ return E_FAIL;
+ }
+
+ MessageBox(NULL, L"에테르 저장 성공", L"System Message", MB_OK);
+
+ CloseHandle(hFile);
+
+ return S_OK;
+}
+
+CRanrok_EtherInfo* CRanrok_EtherInfo::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CRanrok_EtherInfo* pInstance = new CRanrok_EtherInfo(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CRanrok_EtherInfo");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CRanrok_EtherInfo::Clone(void* pArg, CGameObject* pOwner)
+{
+ CRanrok_EtherInfo* pInstance = new CRanrok_EtherInfo(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CRanrok_EtherInfo");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CRanrok_EtherInfo::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);
+}
+#ifdef _DEBUG
+
+
+void CRanrok_EtherInfo::Describe_Entity()
+{
+
+ const char* pLerp[] = { "Linear" , "EaseInQuad", "EaseOutQuad", "EaseInCubic" , "EaseOutCubic" , "EaseInOutSin" , "EaseInBack" , "Expo" , "Circle" };
+ const char* pRenderNames[] = { "PRIORITY" , "SHADOW_NEAR", "NONBLEND", "DECAL", "BLUR" , "NONLIGHT" ,"EFFECT", "BLEND" ,"BLOOM", "DISTORTION", "BULR_MESH", "UI", "OCCLUSION" , "SHADOW_MIDDLE" , "PRESHADOW" , "UI_OVERLAY", "EFFECT_NONBLEND" };
+
+ const char* pShaderPass[] = { "NON_NOMALMAP" , "WEIGHTBLEND" , "BLEND" , "BLUR" , "BLOOM" };
+
+ const char* pBloomType[] = { "NONE" , "BASIC" , "MUILTY" };
+ _int iCurrentItem = static_cast<_int>(m_Ether_Info.eRenderOrder);
+ _int iCurrentType = static_cast<_int>(m_Ether_Info.eEffectType);
+ _int iCurrentBloomType = static_cast<_int>(m_Ether_Info.eBloomType);
+ _int iCurrentPass = static_cast<_int>(m_Ether_Info.eShaderPass);
+
+
+ if (GUI::Combo("Render Order", &iCurrentItem, pRenderNames, ENUM_CLASS(RENDER::END)))
+ {
+ m_Ether_Info.eRenderOrder = static_cast(iCurrentItem);
+ }
+
+
+ if (GUI::Combo("Shader Pass", &iCurrentPass, pShaderPass, ENUM_CLASS(SHADER_PASS_ETHER::END)))
+ {
+ m_Ether_Info.eShaderPass = static_cast(iCurrentPass);
+ }
+
+
+ GUI::Checkbox("Visible", &m_bVisible);
+
+ GUI::Checkbox("Diffuse", &m_Ether_Info.isDiffuse);
+ GUI::Checkbox("Masking", &m_Ether_Info.isMasking);
+ GUI::Checkbox("Dissolve", &m_Ether_Info.isDissolve);
+ GUI::Checkbox("Distortion", &m_Ether_Info.isDistortion);
+ GUI::Checkbox("Noise", &m_Ether_Info.isNoise);
+ GUI::Checkbox("Bloom", &m_Ether_Info.isBloom);
+ GUI::Checkbox("Blur", &m_Ether_Info.isBlur);
+ GUI::Checkbox("RimLight", &m_Ether_Info.isRimLight);
+ GUI::Checkbox("Nomal", &m_Ether_Info.isNomalMap);
+
+ if (GUI::Checkbox("Billboard", &m_Ether_Info.isBillboard))
+ {
+ }
+
+ GUI::ColorEdit4("MixColor", (_float*)&m_Ether_Info.vColor);
+
+
+ GUI::Checkbox("NonSoftEffect", &m_Ether_Info.isNonSoftEffect);
+ GUI::Checkbox("ScreenFX", &m_Ether_Info.isScreenFX);
+
+ GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
+
+
+ GUI::PopItemWidth();
+
+ if (GUI::TreeNode("Time"))
+ {
+ _float2 fAnimIndex = {};
+ _float2 fAnimTime = { 0.f , 1.f };
+ _float2 vLifeTime = { 0.f , 1.f };
+ _float2 vDiffuseUVMoveTime = { 0.f , 1.f };
+ _float2 vMaskingUVMoveTime = { 0.f , 1.f };
+ _float2 vNoiseUVMoveTime = { 0.f , 1.f };
+ _float2 vDistortionUVMoveTime = { 0.f , 1.f };
+ _float2 vDissolveUVMoveTime = { 0.f , 1.f };
+
+ GUI::DragFloat2("Anim Index", (_float*)&m_ErherTimeInfo.vAnimIndex);
+ GUI::DragFloat2("Anim Time", (_float*)&m_ErherTimeInfo.vAnimTime);
+
+ GUI::DragFloat2("LifeTime ", (_float*)&m_ErherTimeInfo.vLifeTime);
+ GUI::DragFloat2("DiffuseUVMoveTime ", (_float*)&m_ErherTimeInfo.vDiffuseUVMoveTime);
+ GUI::DragFloat2("MaskingUVMoveTime ", (_float*)&m_ErherTimeInfo.vMaskingUVMoveTime);
+ GUI::DragFloat2("NoiseUVMoveTime", (_float*)&m_ErherTimeInfo.vNoiseUVMoveTime);
+ GUI::DragFloat2("DistortionUVMoveTime", (_float*)&m_ErherTimeInfo.vDistortionUVMoveTime);
+ GUI::DragFloat2("DissolveUVMoveTime", (_float*)&m_ErherTimeInfo.vDissolveUVMoveTime);
+
+ GUI::TreePop();
+ }
+
+ if (m_Ether_Info.isBlur)
+ {
+ if (GUI::TreeNode("BLUR"))
+ {
+
+ GUI::Checkbox("OnlyBlur", &m_Ether_Info.isOnlyBlur);
+ GUI::Checkbox("BlurNoEmissive", &m_Ether_Info.isBlurNoEmissive);
+ GUI::Checkbox("BlurDissolve", &m_Ether_Info.isBlurDissolve);
+
+ GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
+ GUI::DragFloat("BlurIntensity", &m_Ether_Info.fBlurIntensity, 0.005f, 0.f, 1.f);
+ GUI::DragInt("BlurWeight", &m_Ether_Info.iBlurWeight, 2.f, 0, 128);
+
+
+ GUI::Checkbox("BlurColor", &m_Ether_Info.isBlurColor);
+ GUI::PopItemWidth();
+ GUI::ColorEdit4("BlurColor", (_float*)&m_Ether_Info.vBlurColor);
+
+ GUI::TreePop();
+ }
+ }
+
+
+ if (GUI::TreeNode("MOTION BLUR"))
+ {
+ GUI::Checkbox("MotionBlur", &m_Ether_Info.isMotionBlur);
+ GUI::DragFloat("MotionBlurIntensity", &m_Ether_Info.fModelBlurIntensity, 0.005f, 0.f);
+ GUI::TreePop();
+ }
+
+ if (m_Ether_Info.isBloom)
+ {
+ if (GUI::TreeNode("BLOOM"))
+ {
+ if (GUI::Combo("Bloom Type", &iCurrentBloomType, pBloomType, ENUM_CLASS(BLOOM_TYPE::END)))
+ {
+ m_Ether_Info.eBloomType = static_cast(iCurrentBloomType);
+ }
+
+ GUI::Checkbox("BloomDissolve", &m_Ether_Info.isBloomDissolve);
+ GUI::Checkbox("BloomReverseDissolve", &m_Ether_Info.isBloomReverseDissolve);
+
+ GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
+ GUI::DragFloat("fBloomStrength", &m_Ether_Info.fBloomStrength, 0.001f, 0.f);
+ GUI::PopItemWidth();
+
+ GUI::TreePop();
+ }
+ }
+
+ if (GUI::TreeNode("MODEL DISTORTION"))
+ {
+ GUI::DragFloat("Distortion Intensity", &m_Ether_Info.fModelDistortIntensity, 0.005f, 0.f, 1.f);
+ GUI::TreePop();
+ }
+
+ if (GUI::TreeNode("EMISSIVE"))
+ {
+
+ GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
+ GUI::DragFloat("EmissiveStrength", &m_Ether_Info.fEmissiveStrength, 0.005f, 0.f, 1.f);
+ GUI::DragFloat("Radius", &m_Ether_Info.fRadius, 0.005f, 0.f);
+ GUI::DragFloat("CoreBoost", &m_Ether_Info.fCoreBoost, 0.005f, 0.f);
+ GUI::DragFloat("SoftStrength", &m_Ether_Info.fSoftStrength, 0.005f, 0.f);
+ GUI::DragFloat("SoftenExp", &m_Ether_Info.fSoftenExp, 0.005f, 0.f);
+ GUI::DragFloat("EmissiveColorCut", &m_Ether_Info.fEmissiveColorCut, 0.005f, 0.f);
+
+ GUI::PopItemWidth();
+
+ GUI::ColorEdit4("Emissive", (_float*)&m_Ether_Info.vEmissive);
+
+
+
+ GUI::Checkbox("EmissiveTex", &m_Ether_Info.isEmissive);
+ GUI::Checkbox("EmissiveDissolve", &m_Ether_Info.isEmissiveDissolve);
+ GUI::Checkbox("EmissiveDissolveReverse", &m_Ether_Info.isEmissiveDissolveReverse);
+
+
+ if (m_Ether_Info.isEmissive)
+ {
+ if (GUI::TreeNode("EMISSIVE_TEX"))
+ {
+ _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "EMISSIVE_TEXTURE", (CComponent**)&m_pEmissive_TextureCom, nullptr, this);
+
+ if (strName != "") {
+ m_strEmissiveName = strName;
+ }
+
+
+ GUI::TreePop();
+ }
+ }
+
+
+ GUI::TreePop();
+ }
+
+ if (m_Ether_Info.isRimLight)
+ {
+ if (GUI::TreeNode("RIM LIGHT"))
+ {
+ GUI::ColorEdit4("Emissive", (_float*)&m_Ether_Info.vRimLightColor);
+ GUI::DragFloat("RimLightPower", &m_Ether_Info.fRimLightPower, 0.005f, 0.f);
+ GUI::DragFloat("RimLightStrength", &m_Ether_Info.fRimLightStrength, 0.005f, 0.f);
+
+ GUI::TreePop();
+ }
+ }
+
+ if (m_Ether_Info.isDiffuse == true)
+ {
+ if (GUI::TreeNode("DIFFUSE"))
+ {
+
+ GUI::Checkbox("Diffuse_R", &m_Ether_Info.isDiffuse_R);
+ GUI::Checkbox("Diffuse_G", &m_Ether_Info.isDiffuse_G);
+ GUI::Checkbox("Diffuse_B", &m_Ether_Info.isDiffuse_B);
+
+ GUI::DragFloat("Diffuse Alpha", &m_Ether_Info.fDiffuseAlpha, 0.01f, 0.f, 1.f);
+
+ GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
+ GUI::Checkbox("DiffuseUVMove", &m_Ether_Info.isDiffuseUVMove);
+ GUI::InputFloat2("DiffuseUVCutting", (_float*)&m_Ether_Info.vUVCutting);
+
+ GUI::Spacing();
+
+ GUI::DragFloat2("DiffuseUVGainAmount", (_float*)&m_Ether_Info.vDiffuseUVGainAmount, 0.01f);
+
+
+
+ _int iDiffuseMoveLerpOption = (_int)m_Ether_Info.iDiffuseMoveLerpOption;
+
+ if (GUI::Combo("Lerp DiffuseMove Option", &iDiffuseMoveLerpOption, pLerp, 9))
+ {
+ m_Ether_Info.iDiffuseMoveLerpOption = iDiffuseMoveLerpOption;
+ }
+
+ GUI::Spacing();
+
+ GUI::PopItemWidth();
+
+ if (GUI::TreeNode("DIFFUSE_TEX"))
+ {
+ if (m_pDiffuse_TextureCom != nullptr)
+ {
+ if (GUI::ImageButton("Current Texture", m_pDiffuse_TextureCom->Get_SRV(0), ImVec2(48, 48)))
+ {
+ }
+
+ GUI::Spacing(); GUI::Spacing();
+ }
+
+ if (GUI::TreeNode("ETHER TEX"))
+ {
+ _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "NORMAL_TEXTURE", (CComponent**)&m_pDiffuse_TextureCom, nullptr, this, L"RANROK");
+
+ if (strName != "") {
+ m_strDiffuseName = strName;
+ }
+
+ GUI::TreePop();
+ }
+
+
+ _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DIFFUSE_TEXTURE", (CComponent**)&m_pDiffuse_TextureCom, nullptr, this);
+
+ if (strName != "") {
+ m_strDiffuseName = strName;
+ }
+
+
+ GUI::TreePop();
+ }
+
+ GUI::Separator(); GUI::Spacing();
+
+ GUI::TreePop();
+ }
+ }
+
+
+ if (m_Ether_Info.isMasking == true)
+ {
+ if (GUI::TreeNode("MASKING"))
+ {
+ GUI::Checkbox("Mask G", &m_Ether_Info.isMask_G);
+ GUI::SameLine();
+ GUI::Checkbox("Mask B", &m_Ether_Info.isMask_B);
+
+
+ GUI::InputFloat2("MaskUVCutting", (_float*)&m_Ether_Info.vUVMaskCutting);
+ GUI::Checkbox("MaskUVMove", &m_Ether_Info.isMaskUVMove);
+ GUI::Checkbox("MaskClampSample", &m_Ether_Info.isMaskClampSample);
+
+ GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
+ GUI::DragFloat2("MaskOffset", (_float*)&m_Ether_Info.vMaskOffset, 0.01f);
+ GUI::DragFloat2("MaskingUVGainAmount", (_float*)&m_Ether_Info.vMaskingUVGainAmount, 0.01f);
+ GUI::Spacing();
+ GUI::DragFloat("SoftMask", &m_Ether_Info.fSoftMask, 0.01f, 0.f);
+ GUI::DragFloat("fSoftMaskEdge", &m_Ether_Info.fSoftMaskEdge, 0.01f, 0.f);
+
+ GUI::PopItemWidth();
+
+
+ GUI::Spacing();
+
+
+ _int iMaskMoveLerpOption = (_int)m_Ether_Info.iMaskMoveLerpOption;
+
+ if (GUI::Combo("Lerp MaskMove Option", &iMaskMoveLerpOption, pLerp, 9))
+ {
+ m_Ether_Info.iMaskMoveLerpOption = iMaskMoveLerpOption;
+ }
+
+
+ GUI::Spacing();
+
+ if (GUI::TreeNode("MASKING_TEX"))
+ {
+ if (m_pMasking_TextureCom != nullptr)
+ {
+ if (GUI::ImageButton("Current Texture", m_pMasking_TextureCom->Get_SRV(0), ImVec2(48, 48)))
+ {
+ }
+
+ GUI::Spacing(); GUI::Spacing();
+ }
+
+ if (GUI::TreeNode("ETHER TEX"))
+ {
+ _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "NORMAL_TEXTURE", (CComponent**)&m_pMasking_TextureCom, nullptr, this, L"RANROK");
+
+ if (strName != "") {
+ m_strMaskingName = strName;
+ }
+
+ GUI::TreePop();
+ }
+
+
+ string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "MASKING_TEXTURE", (CComponent**)&m_pMasking_TextureCom, nullptr, this);
+
+ if (strName != "") {
+ m_strMaskingName = strName;
+ }
+
+ GUI::TreePop();
+ }
+
+ GUI::Separator(); GUI::Spacing();
+
+ GUI::TreePop();
+ }
+ }
+
+ if (m_Ether_Info.isDissolve == true)
+ {
+ if (GUI::TreeNode("DISSOLVE"))
+ {
+ GUI::Checkbox("Dissolve G", &m_Ether_Info.isDissolve_G);
+ GUI::SameLine();
+ GUI::Checkbox("Dissolve B", &m_Ether_Info.isDissolve_B);
+
+ GUI::Checkbox("Nomal Dissolve", &m_Ether_Info.isNomalDissolve);
+ GUI::Checkbox("Reverse Dissolve", &m_Ether_Info.isReverseDissolve);
+ GUI::Checkbox("StopDissolveSmoothStep", &m_Ether_Info.isNoDissolveSmoothStep);
+
+ GUI::DragFloat2("DissolveSmoothRange", (_float*)&m_Ether_Info.vDissolveSmoothRange, 0.01f);
+
+ GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
+ GUI::Spacing();
+ GUI::Checkbox("DissolveMove", &m_Ether_Info.isDissolveMove);
+ GUI::DragFloat2("DissolveUVGainAmount", (_float*)&m_Ether_Info.vDissolveUVGainAmount, 0.01f);
+
+ GUI::Spacing();
+ GUI::DragFloat("DissolveDelay", &m_Ether_Info.fDissolveDelay, 0.005f);
+ GUI::DragFloat("ReverseDissolveDelay", &m_Ether_Info.fReverseDissolveDelay, 0.005f);
+
+ GUI::Spacing();
+
+ GUI::DragFloat("DissolveMaskEdge", &m_Ether_Info.vDissolveValue.x, 0.005f);
+ GUI::DragFloat("DissolveSoftMask", &m_Ether_Info.vDissolveValue.y, 0.005f);
+ GUI::DragFloat("DissolveCutRatio", &m_Ether_Info.vDissolveValue.z, 0.005f);
+
+ GUI::Spacing();
+
+ GUI::PopItemWidth();
+
+ if (GUI::TreeNode("DISSOLV_TEX"))
+ {
+ if (m_pDissolve_TextureCom != nullptr)
+ {
+ if (GUI::ImageButton("Current Texture", m_pDissolve_TextureCom->Get_SRV(0), ImVec2(48, 48)))
+ {
+ }
+
+ GUI::Spacing(); GUI::Spacing();
+ }
+
+ if (GUI::TreeNode("ETHER TEX"))
+ {
+ _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DECAL_TEXTURE", (CComponent**)&m_pDissolve_TextureCom, nullptr, this, L"RANROK");
+
+ if (strName != "") {
+ m_strDissolveName = strName;
+ }
+
+ GUI::TreePop();
+ }
+
+ _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DISSOLVE_TEXTURE", (CComponent**)&m_pDissolve_TextureCom, nullptr, this);
+
+ if (strName != "") {
+ m_strDissolveName = strName;
+ }
+
+ GUI::TreePop();
+ }
+ GUI::Separator(); GUI::Spacing();
+
+ GUI::TreePop();
+ }
+
+ }
+ if (m_Ether_Info.isDistortion == true)
+ {
+ if (GUI::TreeNode("DISTORTION"))
+ {
+ GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
+
+ GUI::DragFloat("DistortionIntensity", &m_Ether_Info.fNoiseDistortionIntensity, 0.005f, 0.f, 1.f);
+
+ GUI::Spacing();
+
+ GUI::DragFloat2("vDistortionTime", (_float*)&m_Ether_Info.vDistortionTime, 0.01f);
+
+ _int iDiffuseNoiseMoveLerpOption = (_int)m_Ether_Info.iDiffuseDistortionMoveLerpOption;
+
+ if (GUI::Combo("LerpDiffuseDistortionMove Option", &iDiffuseNoiseMoveLerpOption, pLerp, 9))
+ {
+ m_Ether_Info.iDiffuseDistortionMoveLerpOption = iDiffuseNoiseMoveLerpOption;
+ }
+
+ GUI::Spacing();
+
+ GUI::DragFloat2("MaskDistortionUVGainAmount", (_float*)&m_Ether_Info.vMaskDistortionUVGainAmount, 0.01f);
+
+ _int iMaskNoiseMoveLerpOption = (_int)m_Ether_Info.iMaskDistortionMoveLerpOption;
+
+ if (GUI::Combo("Lerp MaskDistortionMove Option", &iMaskNoiseMoveLerpOption, pLerp, 9))
+ {
+ m_Ether_Info.iMaskDistortionMoveLerpOption = iMaskNoiseMoveLerpOption;
+ }
+
+ GUI::Spacing();
+
+ GUI::PopItemWidth();
+
+ if (GUI::TreeNode("DISTORTION_TEX"))
+ {
+ if (m_pDistortion_TextureCom != nullptr)
+ {
+ if (GUI::ImageButton("Current Texture", m_pDistortion_TextureCom->Get_SRV(0), ImVec2(48, 48)))
+ {
+ }
+
+ GUI::Spacing(); GUI::Spacing();
+ }
+
+ _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DISTORTION_TEXTURE", (CComponent**)&m_pDistortion_TextureCom, nullptr, this);
+
+ if (strName != "") {
+ m_strDistortionName = strName;
+ }
+
+ GUI::TreePop();
+ }
+
+ GUI::TreePop();
+ }
+
+ }
+
+
+
+
+
+ if (m_Ether_Info.isNoise == true)
+ {
+ if (GUI::TreeNode("NOISE"))
+ {
+ GUI::Checkbox("Noise G", &m_Ether_Info.isNoise_G);
+ GUI::SameLine();
+ GUI::Checkbox("Noise B", &m_Ether_Info.isNoise_B);
+
+ GUI::Checkbox("NoiseColor", &m_Ether_Info.isNoiseColor);
+ GUI::Checkbox("NoiseAlpha", &m_Ether_Info.isNoiseAlpha);
+ GUI::Checkbox("NoiseMove", &m_Ether_Info.isNoiseUVMove);
+
+
+ GUI::ColorEdit4("NoiseColor", (_float*)&m_Ether_Info.vNoiseColor);
+ GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
+ GUI::DragFloat2("NoiseUVGainAmount", (_float*)&m_Ether_Info.vNoiseUVGainAmount, 0.01f);
+ GUI::DragFloat2("UVNoiseCutting", (_float*)&m_Ether_Info.vUVNoiseCutting, 0.01f);
+
+ GUI::PopItemWidth();
+
+
+ GUI::Spacing();
+
+
+ _int iNoiseMoveLerpOption = (_int)m_Ether_Info.iNoiseMoveLerpOption;
+
+ if (GUI::Combo("Lerp NoiseMove Option", &iNoiseMoveLerpOption, pLerp, 9))
+ {
+ m_Ether_Info.iNoiseMoveLerpOption = iNoiseMoveLerpOption;
+ }
+
+ if (GUI::TreeNode("NOISE_TEX"))
+ {
+ if (m_pNoise_TextureCom != nullptr)
+ {
+ if (GUI::ImageButton("Current Texture", m_pNoise_TextureCom->Get_SRV(0), ImVec2(48, 48)))
+ {
+ }
+
+ GUI::Spacing(); GUI::Spacing();
+ }
+
+ if (GUI::TreeNode("ETHER TEX"))
+ {
+ _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "NORMAL_TEXTURE", (CComponent**)&m_pNoise_TextureCom, nullptr, this, L"RANROK");
+
+ if (strName != "") {
+ m_strNoiseName = strName;
+ }
+
+ GUI::TreePop();
+ }
+
+ _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "NOISE_TEXTURE", (CComponent**)&m_pNoise_TextureCom, nullptr, this);
+
+ if (strName != "") {
+ m_strNoiseName = strName;
+ }
+
+
+
+ GUI::TreePop();
+ }
+
+ GUI::TreePop();
+ }
+ }
+
+ GUI::Separator(); GUI::Spacing();
+
+
+
+
+}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp
index 15f7b6009..562697f29 100644
--- a/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp
+++ b/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp
@@ -1024,6 +1024,8 @@ void CRanrok::Behavior_DeadExit()
}
+
+
void CRanrok::Add_FSM()
{
#pragma region Behavior_Movement_NotFocus
diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h
index 26eba3cbd..6429928f7 100644
--- a/Jusin154_Team3D/Editor/Public/Editor_Define.h
+++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h
@@ -5,8 +5,9 @@
#include "wincrypt.h"
#include "Engine_Define.h"
+
#include "Editor_Macro.h"
-#include "Editor_Struct.h"
+
namespace Editor
{
@@ -18,6 +19,8 @@ namespace Editor
enum class MAPOBJECT_TYPE { CONTAINER, ELEMENT_STATIC, ELEMENT_INTERACT, ELEMENT_LIGHT, ELEMENT_LAKE };
enum class MAPOBJECT_RENDER_TYPE { NORMAL, DECAL, GLASS };
+ enum class SHADER_PASS_ETHER { NON_NOMALMAP, WEIGHTBLEND, BLEND, BLUR, BLOOM, END };
+
enum class SHADER_PASS_ANIM { DEFAULT, SHADOW, CAPTURE, BLUR, HAIR, EYELASH, OUTLINE_WRITE, OUTLINE_READ, SPECTOR, END };
enum class SHADER_PASS_NPC_PBR_ANIM {
EYELASH_DAOTHV_ToSRO, TEETH_SRXO_ToSRO, EYE_DN_ToSRO, EYE_OCC,
@@ -79,6 +82,8 @@ namespace Editor
enum class ELEMENT_INTERACTABLE_ID { BARREL, BOX, END };
}
+#include "Editor_Struct.h"
+
using namespace Editor;
extern HINSTANCE g_hInstance;
diff --git a/Jusin154_Team3D/Editor/Public/Editor_Macro.h b/Jusin154_Team3D/Editor/Public/Editor_Macro.h
index 0478ea88c..6427e29de 100644
--- a/Jusin154_Team3D/Editor/Public/Editor_Macro.h
+++ b/Jusin154_Team3D/Editor/Public/Editor_Macro.h
@@ -20,6 +20,7 @@ namespace Editor {
#define FX_UIINSTANCE TEXT("FX_UIINSTANCE")
#define FX_VTXPOS TEXT("FX_VTXPOS")
#define FX_NPC_PBR_ANIM TEXT("FX_NPC_PBR_ANIM")
+#define FX_RANROK_ETHER TEXT("FX_RANROK_ETHER")
#pragma endregion
#pragma region MACRO_PROTOTYPE
diff --git a/Jusin154_Team3D/Editor/Public/Editor_Struct.h b/Jusin154_Team3D/Editor/Public/Editor_Struct.h
index 8ed205bb2..4f99569be 100644
--- a/Jusin154_Team3D/Editor/Public/Editor_Struct.h
+++ b/Jusin154_Team3D/Editor/Public/Editor_Struct.h
@@ -1,4 +1,5 @@
#pragma once
+
NS_BEGIN(Engine)
class CModel;
class CRigidBody_Static;
@@ -67,4 +68,152 @@ typedef struct tagLockOnInfo {
class CMapElement_Interactable* pInteractive = { nullptr };
}LOCKON_INFO;
+typedef struct tagEffectInfo
+{
+ _float4 vColor = { 0.f ,0.f ,0.f ,1.f };
+
+ _float2 vDiffuseUVGainAmount = {};
+ _float2 vMaskingUVGainAmount = {};
+ _float2 vNoiseUVGainAmount = {};
+
+ _float2 vDistortionTime = {};
+ _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 = {};
+
+ _bool isEmissiveDissolveReverse = { false };
+ _bool isOnlyBlur = { false };
+
+ SHADER_PASS_INSTANCE_MODEL eShaderPass = { SHADER_PASS_INSTANCE_MODEL::NON_NOMALMAP };
+
+ _bool isBlurNoEmissive = {};
+
+
+ _bool isMotionBlur = {};
+
+ _bool isNoise_G = {};
+ _bool isNoise_B = {};
+
+ _float fModelBlurIntensity = { 0.f };
+
+ _bool isBloom = {};
+ _bool isBloomDissolve = {};
+ _bool isBloomReverseDissolve = {};
+ _float fBloomStrength = {};
+ BLOOM_TYPE eBloomType = {};
+
+
+ _float fDissolveDelay = {};
+ _float fReverseDissolveDelay = {};
+ _float2 vDissolveUVGainAmount = {};
+ _bool isDissolveMove = {};
+
+ _float3 vDissolveValue = {}; /* Soft Mask , Cut Ratio*/
+
+ _float fModelDistortIntensity = {};
+ _float fPadding0 = {};
+
+ _float fLightDeley = {};
+ _float fLightIntensity = {};
+ _float isLightTime = { 0.f };
+ _bool isLightDissolve = {};
+
+ _bool isDissolve_G = {};
+
+ _float4 vBlurColor = {};
+ _float2 vUVNoiseCutting = { 1.f ,1.f };
+
+ _float fEmissiveColorCut = {};
+
+ _float fRimLightPower = {};
+ _float fRimLightStrength = {};
+
+ _float4 vNoiseColor = {};
+ _float4 vRimLightColor = {};
+
+ _float2 vMaskOffset = {};
+
+ _bool isDiffuse_R = {};
+ _bool isDiffuse_G = {};
+ _bool isDiffuse_B = {};
+ _bool isBlurColor = {};
+
+ _bool isBlurDissolve = {};
+ _bool isNomalMap = {};
+ _bool isNoDissolveSmoothStep = {};
+ _bool isNonSoftEffect = {};
+
+ _float2 vDissolveSmoothRange = { 0.1f , 0.1f };
+
+ _float fPadding1 = {};
+
+ _bool isScreenFX = {};
+ _bool isPadding0 = {};
+ _bool isPadding1 = {};
+ _bool isPadding2 = {};
+
+ _bool isRimLight = {};
+ _bool isMask_G = {};
+ _bool isMask_B = {};
+ _bool isDissolve_B = {};
+
+ _float4 vPadding1 = {};
+ _float4 vPadding2 = {};
+ _float4 vPadding3 = {};
+ _float4 vPadding4 = {};
+ _float4 vPadding5 = {};
+ _float4 vPadding6 = {};
+}EFFECT_INFO;
+
NS_END
diff --git a/Jusin154_Team3D/Editor/Public/EffectObject.h b/Jusin154_Team3D/Editor/Public/EffectObject.h
index 25bb4d1d8..cca36e876 100644
--- a/Jusin154_Team3D/Editor/Public/EffectObject.h
+++ b/Jusin154_Team3D/Editor/Public/EffectObject.h
@@ -16,154 +16,6 @@ NS_BEGIN(Editor)
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 vDistortionTime = {};
- _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 = {};
-
- _bool isEmissiveDissolveReverse = { false };
- _bool isOnlyBlur = { false };
-
- SHADER_PASS_INSTANCE_MODEL eShaderPass = { SHADER_PASS_INSTANCE_MODEL::NON_NOMALMAP };
-
- _bool isBlurNoEmissive = {};
-
-
- _bool isMotionBlur = {};
-
- _bool isNoise_G = {};
- _bool isNoise_B= {};
-
- _float fModelBlurIntensity = {0.f};
-
- _bool isBloom = {};
- _bool isBloomDissolve = {};
- _bool isBloomReverseDissolve = {};
- _float fBloomStrength = {};
- BLOOM_TYPE eBloomType = {};
-
-
- _float fDissolveDelay = {};
- _float fReverseDissolveDelay = {};
- _float2 vDissolveUVGainAmount = {};
- _bool isDissolveMove = {};
-
- _float3 vDissolveValue = {}; /* Soft Mask , Cut Ratio*/
-
- _float fModelDistortIntensity = {};
- _float fPadding0 = {};
-
- _float fLightDeley = {};
- _float fLightIntensity = {};
- _float isLightTime = { 0.f };
- _bool isLightDissolve = {};
-
- _bool isDissolve_G = {};
-
- _float4 vBlurColor = {};
- _float2 vUVNoiseCutting = { 1.f ,1.f };
-
- _float fEmissiveColorCut = {};
-
- _float fRimLightPower = {};
- _float fRimLightStrength = {};
-
- _float4 vNoiseColor = {};
- _float4 vRimLightColor = {};
-
- _float2 vMaskOffset = {};
-
- _bool isDiffuse_R = {};
- _bool isDiffuse_G = {};
- _bool isDiffuse_B = {};
- _bool isBlurColor = {};
-
- _bool isBlurDissolve = {};
- _bool isNomalMap = {};
- _bool isNoDissolveSmoothStep = {};
- _bool isNonSoftEffect = {};
-
- _float2 vDissolveSmoothRange = {0.1f , 0.1f};
-
- _float fPadding1 = {};
-
- _bool isScreenFX = {};
- _bool isPadding0 = {};
- _bool isPadding1 = {};
- _bool isPadding2 = {};
-
- _bool isRimLight = {};
- _bool isMask_G = {};
- _bool isMask_B = {};
- _bool isDissolve_B = {};
-
- _float4 vPadding1 = {};
- _float4 vPadding2 = {};
- _float4 vPadding3 = {};
- _float4 vPadding4 = {};
- _float4 vPadding5 = {};
- _float4 vPadding6 = {};
- }EFFECT_INFO;
-
typedef struct tagPreEffectInfo
{
_float4 vColor = { 0.f ,0.f ,0.f ,1.f };
diff --git a/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h b/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h
index 9ddd7d970..f0424e2bc 100644
--- a/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h
+++ b/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h
@@ -40,6 +40,7 @@ class CLevel_ObjectViewer final : public CLevel
_wchar* Save_ModelName(const _char* Category);
void Load_KeyFrame(const _char* Name);
void Find_Anim();
+ void Sound_List();
void Save_KeyFrame();
void ResetLevel_Environment() {};
diff --git a/Jusin154_Team3D/Editor/Public/Ranrok.h b/Jusin154_Team3D/Editor/Public/Ranrok.h
index 03ec67bf8..dba967efb 100644
--- a/Jusin154_Team3D/Editor/Public/Ranrok.h
+++ b/Jusin154_Team3D/Editor/Public/Ranrok.h
@@ -76,6 +76,8 @@ class CRanrok final : public CMonster
HRESULT Bind_ShaderResources();
HRESULT Render_Nonblend();
HRESULT Render_Blend();
+ virtual HRESULT Render_Blur() override;
+ virtual HRESULT Render_Bloom() override;
void MoveTo(_float fTimeDelta);
HRESULT Load_RanrokPos(const _char* pFilePath);
public:
@@ -209,6 +211,23 @@ class CRanrok final : public CMonster
void Behavior_DeadEnter();
HRESULT Behavior_DeadExitCheck(_float fTimeDelta);
void Behavior_DeadExit();
+
+#pragma region Ether
+
+ class CRanrok_EtherInfo* m_pEtherInfo[ENUM_CLASS(RANROK_MESH_ORDER::WINGS)] = {};
+ class CShader* m_pEther_Shader = { nullptr };
+
+
+#ifdef _DEBUG
+ _int m_iCurrentItem = {};
+ _char m_szBuffer[MAX_PATH] = { "../Bin/Resources/Data/Effect/Ranrok/Ranrok_Ether" };
+ _string m_strSavePath = {};
+#endif
+
+ void Ether_Create();
+ void Ether_Update(_float fTimeDelata);
+ void Ether_GUI();
+#pragma endregion
};
NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Ranrok_EtherInfo.h b/Jusin154_Team3D/Editor/Public/Ranrok_EtherInfo.h
new file mode 100644
index 000000000..b6ac40863
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Ranrok_EtherInfo.h
@@ -0,0 +1,81 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "PartObject.h"
+
+NS_BEGIN(Editor)
+
+class CRanrok_EtherInfo final : public CGameObject
+{
+public:
+ typedef struct tagTimeInfo
+ {
+ _float2 vAnimIndex = {};
+ _float2 vAnimTime = { 0.f , 1.f };
+ _float2 vLifeTime = {0.f , 1.f};
+ _float2 vDiffuseUVMoveTime = { 0.f , 1.f };
+ _float2 vMaskingUVMoveTime = { 0.f , 1.f };
+ _float2 vNoiseUVMoveTime = { 0.f , 1.f };
+ _float2 vDistortionUVMoveTime = { 0.f , 1.f };
+ _float2 vDissolveUVMoveTime = { 0.f , 1.f };
+ }TIME_INFO;
+private:
+ CRanrok_EtherInfo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CRanrok_EtherInfo(const CRanrok_EtherInfo& Prototype);
+ virtual ~CRanrok_EtherInfo() = default;
+
+public:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+ virtual HRESULT Render() override;
+ HRESULT Load_Info(const _char* pFilePath, LEVEL eLevel);
+ HRESULT Save_Info(const _char* pPath);
+
+ _bool isBloom() { return m_Ether_Info.isBloom; }
+ _bool isBlur() { return m_Ether_Info.isBlur; }
+ RENDER Get_RenderOrder() { return m_Ether_Info.eRenderOrder; }
+public:
+ void Update_Time(_float fTimeDelta);
+ void Edit_Ether();
+ HRESULT Bind_Ether_ShaderResources(class CShader* pShader);
+ HRESULT Ether_Begin(class CShader* pShader);
+private:
+ HRESULT Ready_Components();
+ HRESULT Bind_ShaderResources();
+
+
+
+
+
+ EFFECT_INFO m_Ether_Info = {};
+ TIME_INFO m_ErherTimeInfo = {};
+
+ 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 };
+
+ _string m_strDiffuseName = {};
+ _string m_strNoiseName = {};
+ _string m_strMaskingName = {};
+ _string m_strDissolveName = {};
+ _string m_strEmissiveName = {};
+ _string m_strDistortionName = {};
+
+ _string m_strPath = {};
+public:
+ static CRanrok_EtherInfo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)override;
+ virtual void Free() override;
+
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Engine/Private/Renderer.cpp b/Jusin154_Team3D/Engine/Private/Renderer.cpp
index b3b63508e..6604f3181 100644
--- a/Jusin154_Team3D/Engine/Private/Renderer.cpp
+++ b/Jusin154_Team3D/Engine/Private/Renderer.cpp
@@ -353,7 +353,7 @@ void CRenderer::Render_Decal()
if (FAILED(m_pGameInstance->Begin_MRT_NonClear(TEXT("MRT_Decal")))) {
return;
}
-
+ m_eType = RENDER::DECAL;
for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::DECAL)])
{
if (nullptr != pRenderObject) {
@@ -451,6 +451,7 @@ void CRenderer::Render_Combined()
COMPUTE_TIMEDELTA("Timer_Render_Combined");
EVENTSCOPE_("Render_Combined");
+
if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_Combined")))) {
return;
}
@@ -541,7 +542,7 @@ void CRenderer::Render_EnvironmentPostProcess()
if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_ENV_Blur_X")))) { // Target_ENV_Blur_X
return;
}
-
+
m_pShader->Bind_Matrix("g_WorldMatrix", &m_ScreenWorldMatrix);
m_pShader->Bind_Matrix("g_ViewMatrix", &m_ScreenViewMatrix);
m_pShader->Bind_Matrix("g_ProjMatrix", &m_ScreenProjMatrix);
@@ -661,6 +662,8 @@ void CRenderer::Render_Effect()
return;
}
+ m_eType = RENDER::EFFECT;
+
for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::EFFECT)])
{
if (nullptr != pRenderObject)
@@ -682,7 +685,7 @@ void CRenderer::Render_WeightBlend()
COMPUTE_TIMEDELTA("Timer_Render_WeightBlend");
EVENTSCOPE_("Render_WeightBlend");
// Bind_Resorces
-
+
m_pWeightBlendShader->Bind_Matrix("g_WorldMatrix", &m_ScreenWorldMatrix);
m_pWeightBlendShader->Bind_Matrix("g_ViewMatrix", &m_ScreenViewMatrix);
m_pWeightBlendShader->Bind_Matrix("g_ProjMatrix", &m_ScreenProjMatrix);
@@ -834,7 +837,7 @@ void CRenderer::Render_SSAO()
COMPUTE_TIMEDELTA("Timer_Render_SSAO");
EVENTSCOPE_("Render_SSAO");
_uint iKernelSize = SSAO_SAMPLE_NUMBER;
-
+
if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_SSAO_OCCLUSION")))) {
return;
}
@@ -983,7 +986,7 @@ void CRenderer::Render_Blur_Mesh()
{
COMPUTE_TIMEDELTA("Timer_Render_Blur_Mesh");
EVENTSCOPE_("Render_Blur_Mesh");
-
+ m_eType = RENDER::BLUR;
m_RenderObjects[ENUM_CLASS(RENDER::BULR_MESH)].sort([](CGameObject* pSour, CGameObject* pDest)->_bool {
return pSour->Get_Depth() > pDest->Get_Depth();
});
@@ -1015,6 +1018,7 @@ void CRenderer::Render_PostProcessing()
/* POSTPROCESSING */
COMPUTE_TIMEDELTA("Timer_Render_PostProcessing");
EVENTSCOPE_("Render_PostProcessing");
+
{
ID3D11Texture2D* pBackBuffer = { nullptr };
m_pGameInstance->Get_BackBufferPTR(&pBackBuffer);
@@ -1088,7 +1092,7 @@ void CRenderer::Render_PostProcessing()
}
}
m_pShader->Begin(ENUM_CLASS(SHADER_PASS_DEFERRED::MOTIONBLUR));
-
+
m_pVIBuffer->Bind_Resources();
m_pVIBuffer->Render();
if (false == m_bMB) {
diff --git a/Jusin154_Team3D/Engine/Private/SoundSrc.cpp b/Jusin154_Team3D/Engine/Private/SoundSrc.cpp
index eaa11b351..8683787ee 100644
--- a/Jusin154_Team3D/Engine/Private/SoundSrc.cpp
+++ b/Jusin154_Team3D/Engine/Private/SoundSrc.cpp
@@ -17,6 +17,14 @@ const _tchar* const SD_PATH::SD_KIND_PATHS[SD_KIND_COUNT] = {
TEXT("BGM/Ranrok_BGM.wav"),
#pragma endregion
+#pragma region FOOTSTEP
+ TEXT("Player/footsteps/step_int.wav"),
+ TEXT("Player/footsteps/step_road.wav"),
+ TEXT("Player/footsteps/step_rock.wav"),
+ TEXT("Player/footsteps/step_terrain.wav"),
+#pragma endregion
+
+
#pragma region SPELL
TEXT("Player/spells_jap_akb/jap_0.wav"),
TEXT("Player/spells_jap_akb/jap_1.wav"),
@@ -270,6 +278,157 @@ const _tchar* const SD_PATH::SD_KIND_PATHS[SD_KIND_COUNT] = {
TEXT("Interactive/Chest/chest_found.wav"),
TEXT("Interactive/Chest/chest_open.wav"),
#pragma endregion
+
+#pragma region RANROK
+ TEXT("Ranrok/ranrok_0.wav"),
+ TEXT("Ranrok/ranrok_1.wav"),
+ TEXT("Ranrok/ranrok_2.wav"),
+ TEXT("Ranrok/ranrok_3.wav"),
+ TEXT("Ranrok/ranrok_4.wav"),
+ TEXT("Ranrok/ranrok_5.wav"),
+ TEXT("Ranrok/ranrok_6.wav"),
+ TEXT("Ranrok/ranrok_7.wav"),
+ TEXT("Ranrok/ranrok_8.wav"),
+ TEXT("Ranrok/ranrok_9.wav"),
+ TEXT("Ranrok/ranrok_10.wav"),
+ TEXT("Ranrok/ranrok_11.wav"),
+ TEXT("Ranrok/ranrok_12.wav"),
+ TEXT("Ranrok/ranrok_13.wav"),
+ TEXT("Ranrok/ranrok_14.wav"),
+ TEXT("Ranrok/ranrok_15.wav"),
+ TEXT("Ranrok/ranrok_16.wav"),
+ TEXT("Ranrok/ranrok_17.wav"),
+ TEXT("Ranrok/ranrok_18.wav"),
+ TEXT("Ranrok/ranrok_19.wav"),
+ TEXT("Ranrok/ranrok_20.wav"),
+ TEXT("Ranrok/ranrok_21.wav"),
+ TEXT("Ranrok/ranrok_22.wav"),
+ TEXT("Ranrok/ranrok_23.wav"),
+ TEXT("Ranrok/ranrok_24.wav"),
+ TEXT("Ranrok/ranrok_25.wav"),
+ TEXT("Ranrok/ranrok_26.wav"),
+ TEXT("Ranrok/ranrok_27.wav"),
+ TEXT("Ranrok/ranrok_28.wav"),
+ TEXT("Ranrok/ranrok_29.wav"),
+ TEXT("Ranrok/ranrok_30.wav"),
+ TEXT("Ranrok/ranrok_31.wav"),
+ TEXT("Ranrok/ranrok_32.wav"),
+ TEXT("Ranrok/ranrok_33.wav"),
+ TEXT("Ranrok/ranrok_34.wav"),
+ TEXT("Ranrok/ranrok_35.wav"),
+ TEXT("Ranrok/ranrok_36.wav"),
+ TEXT("Ranrok/ranrok_37.wav"),
+ TEXT("Ranrok/ranrok_38.wav"),
+ TEXT("Ranrok/ranrok_39.wav"),
+ TEXT("Ranrok/ranrok_yell.wav"),
+#pragma endregion
+
+#pragma region TROLL
+ TEXT("Troll/troll_0.wav"),
+ TEXT("Troll/troll_1.wav"),
+ TEXT("Troll/troll_2.wav"),
+ TEXT("Troll/troll_3.wav"),
+ TEXT("Troll/troll_4.wav"),
+ TEXT("Troll/troll_5.wav"),
+ TEXT("Troll/troll_6.wav"),
+ TEXT("Troll/troll_7.wav"),
+ TEXT("Troll/troll_8.wav"),
+ TEXT("Troll/troll_9.wav"),
+ TEXT("Troll/troll_10.wav"),
+ TEXT("Troll/troll_11.wav"),
+ TEXT("Troll/troll_12.wav"),
+ TEXT("Troll/troll_13.wav"),
+ TEXT("Troll/troll_14.wav"),
+ TEXT("Troll/troll_15.wav"),
+ TEXT("Troll/troll_16.wav"),
+ TEXT("Troll/troll_17.wav"),
+ TEXT("Troll/troll_18.wav"),
+ TEXT("Troll/troll_19.wav"),
+ TEXT("Troll/troll_20.wav"),
+ TEXT("Troll/troll_21.wav"),
+ TEXT("Troll/troll_22.wav"),
+ TEXT("Troll/troll_23.wav"),
+ TEXT("Troll/troll_24.wav"),
+ TEXT("Troll/troll_25.wav"),
+ TEXT("Troll/troll_26.wav"),
+ TEXT("Troll/troll_27.wav"),
+ TEXT("Troll/troll_28.wav"),
+ TEXT("Troll/troll_29.wav"),
+ TEXT("Troll/troll_30.wav"),
+ TEXT("Troll/troll_31.wav"),
+ TEXT("Troll/troll_32.wav"),
+ TEXT("Troll/troll_33.wav"),
+ TEXT("Troll/troll_34.wav"),
+ TEXT("Troll/troll_35.wav"),
+ TEXT("Troll/troll_36.wav"),
+ TEXT("Troll/troll_37.wav"),
+ TEXT("Troll/troll_38.wav"),
+ TEXT("Troll/troll_39.wav"),
+ TEXT("Troll/troll_40.wav"),
+ TEXT("Troll/troll_41.wav"),
+ TEXT("Troll/troll_42.wav"),
+ TEXT("Troll/troll_43.wav"),
+ TEXT("Troll/troll_44.wav"),
+ TEXT("Troll/troll_45.wav"),
+ TEXT("Troll/troll_46.wav"),
+ TEXT("Troll/troll_47.wav"),
+ TEXT("Troll/troll_48.wav"),
+ TEXT("Troll/troll_49.wav"),
+ TEXT("Troll/troll_50.wav"),
+ TEXT("Troll/troll_51.wav"),
+ TEXT("Troll/troll_52.wav"),
+ TEXT("Troll/troll_53.wav"),
+ TEXT("Troll/troll_54.wav"),
+ TEXT("Troll/troll_55.wav"),
+ TEXT("Troll/troll_56.wav"),
+ TEXT("Troll/troll_57.wav"),
+ TEXT("Troll/troll_58.wav"),
+ TEXT("Troll/troll_59.wav"),
+ TEXT("Troll/troll_60.wav"),
+ TEXT("Troll/troll_61.wav"),
+ TEXT("Troll/troll_62.wav"),
+ TEXT("Troll/troll_63.wav"),
+ TEXT("Troll/troll_64.wav"),
+ TEXT("Troll/troll_65.wav"),
+ TEXT("Troll/troll_66.wav"),
+ TEXT("Troll/troll_67.wav"),
+ TEXT("Troll/troll_68.wav"),
+ TEXT("Troll/troll_69.wav"),
+ TEXT("Troll/troll_70.wav"),
+ TEXT("Troll/troll_71.wav"),
+ TEXT("Troll/troll_72.wav"),
+ TEXT("Troll/troll_73.wav"),
+ TEXT("Troll/troll_74.wav"),
+ TEXT("Troll/troll_75.wav"),
+ TEXT("Troll/troll_76.wav"),
+ TEXT("Troll/troll_77.wav"),
+ TEXT("Troll/troll_78.wav"),
+ TEXT("Troll/troll_79.wav"),
+ TEXT("Troll/troll_80.wav"),
+ TEXT("Troll/troll_81.wav"),
+ TEXT("Troll/troll_82.wav"),
+ TEXT("Troll/troll_83.wav"),
+ TEXT("Troll/troll_84.wav"),
+ TEXT("Troll/troll_85.wav"),
+ TEXT("Troll/troll_86.wav"),
+ TEXT("Troll/troll_87.wav"),
+ TEXT("Troll/troll_88.wav"),
+ TEXT("Troll/troll_89.wav"),
+ TEXT("Troll/troll_90.wav"),
+ TEXT("Troll/troll_91.wav"),
+ TEXT("Troll/troll_92.wav"),
+ TEXT("Troll/troll_93.wav"),
+ TEXT("Troll/troll_94.wav"),
+ TEXT("Troll/troll_95.wav"),
+ TEXT("Troll/troll_96.wav"),
+ TEXT("Troll/troll_97.wav"),
+ TEXT("Troll/troll_98.wav"),
+ TEXT("Troll/troll_99.wav"),
+ TEXT("Troll/troll_100.wav"),
+ TEXT("Troll/troll_101.wav"),
+
+#pragma endregion
+
};
static_assert(SD_KIND_COUNT == _countof(SD_PATH::SD_KIND_PATHS),
diff --git a/Jusin154_Team3D/Engine/Public/SoundSrc.h b/Jusin154_Team3D/Engine/Public/SoundSrc.h
index 1c98e508b..42cedb45b 100644
--- a/Jusin154_Team3D/Engine/Public/SoundSrc.h
+++ b/Jusin154_Team3D/Engine/Public/SoundSrc.h
@@ -16,6 +16,13 @@ enum class SD_KIND {
BGM_HOGWART_INT,
BGM_RANROK_0,
#pragma endregion
+#pragma region FOOTSTEP
+ STEP_INT,
+ STEP_ROAD,
+ STEP_ROCK,
+ STEP_TERRAIN,
+#pragma endregion
+
#pragma region SPELL
SP_JAP_0,
SP_JAP_1,
@@ -268,6 +275,158 @@ enum class SD_KIND {
CHEST_OPEN,
#pragma endregion
+#pragma region RANROK
+ RANROK_0,
+ RANROK_1,
+ RANROK_2,
+ RANROK_3,
+ RANROK_4,
+ RANROK_5,
+ RANROK_6,
+ RANROK_7,
+ RANROK_8,
+ RANROK_9,
+ RANROK_10,
+ RANROK_11,
+ RANROK_12,
+ RANROK_13,
+ RANROK_14,
+ RANROK_15,
+ RANROK_16,
+ RANROK_17,
+ RANROK_18,
+ RANROK_19,
+ RANROK_20,
+ RANROK_21,
+ RANROK_22,
+ RANROK_23,
+ RANROK_24,
+ RANROK_25,
+ RANROK_26,
+ RANROK_27,
+ RANROK_28,
+ RANROK_29,
+ RANROK_30,
+ RANROK_31,
+ RANROK_32,
+ RANROK_33,
+ RANROK_34,
+ RANROK_35,
+ RANROK_36,
+ RANROK_37,
+ RANROK_38,
+ RANROK_39,
+ RANROK_YELL,
+#pragma endregion
+
+#pragma region TROLL
+ TROLL_0,
+ TROLL_1,
+ TROLL_2,
+ TROLL_3,
+ TROLL_4,
+ TROLL_5,
+ TROLL_6,
+ TROLL_7,
+ TROLL_8,
+ TROLL_9,
+ TROLL_10,
+ TROLL_11,
+ TROLL_12,
+ TROLL_13,
+ TROLL_14,
+ TROLL_15,
+ TROLL_16,
+ TROLL_17,
+ TROLL_18,
+ TROLL_19,
+ TROLL_20,
+ TROLL_21,
+ TROLL_22,
+ TROLL_23,
+ TROLL_24,
+ TROLL_25,
+ TROLL_26,
+ TROLL_27,
+ TROLL_28,
+ TROLL_29,
+ TROLL_30,
+ TROLL_31,
+ TROLL_32,
+ TROLL_33,
+ TROLL_34,
+ TROLL_35,
+ TROLL_36,
+ TROLL_37,
+ TROLL_38,
+ TROLL_39,
+ TROLL_40,
+ TROLL_41,
+ TROLL_42,
+ TROLL_43,
+ TROLL_44,
+ TROLL_45,
+ TROLL_46,
+ TROLL_47,
+ TROLL_48,
+ TROLL_49,
+ TROLL_50,
+ TROLL_51,
+ TROLL_52,
+ TROLL_53,
+ TROLL_54,
+ TROLL_55,
+ TROLL_56,
+ TROLL_57,
+ TROLL_58,
+ TROLL_59,
+ TROLL_60,
+ TROLL_61,
+ TROLL_62,
+ TROLL_63,
+ TROLL_64,
+ TROLL_65,
+ TROLL_66,
+ TROLL_67,
+ TROLL_68,
+ TROLL_69,
+ TROLL_70,
+ TROLL_71,
+ TROLL_72,
+ TROLL_73,
+ TROLL_74,
+ TROLL_75,
+ TROLL_76,
+ TROLL_77,
+ TROLL_78,
+ TROLL_79,
+ TROLL_80,
+ TROLL_81,
+ TROLL_82,
+ TROLL_83,
+ TROLL_84,
+ TROLL_85,
+ TROLL_86,
+ TROLL_87,
+ TROLL_88,
+ TROLL_89,
+ TROLL_90,
+ TROLL_91,
+ TROLL_92,
+ TROLL_93,
+ TROLL_94,
+ TROLL_95,
+ TROLL_96,
+ TROLL_97,
+ TROLL_98,
+ TROLL_99,
+ TROLL_100,
+ TROLL_101,
+
+#pragma endregion
+
+
+
END,
};
diff --git a/Jusin154_Team3D/Engine/Public/TimeSocket.h b/Jusin154_Team3D/Engine/Public/TimeSocket.h
index d6ce50e17..dea6320db 100644
--- a/Jusin154_Team3D/Engine/Public/TimeSocket.h
+++ b/Jusin154_Team3D/Engine/Public/TimeSocket.h
@@ -49,6 +49,7 @@ typedef enum class typeTimeSocket_Func {
// CHARACTER
SET_ANIMSTATE,
+ SET_ANIMTRACKPOSITION,
SET_FSMSTATE,
BIND_SOCKET_MATRIX,
UNBIND_SOCKET_MATRIX,
@@ -97,10 +98,11 @@ static constexpr pair g_SocketFuncTypeTable[ENUM_C
{"SHAKE", TIMESOCKET_FUNC::SHAKE},
// CHARACTER
- {"SET_ANIMSTATE", TIMESOCKET_FUNC::SET_ANIMSTATE},
- {"SET_FSMSTATE", TIMESOCKET_FUNC::SET_FSMSTATE},
- {"BIND_SOCKET_MATRIX", TIMESOCKET_FUNC::BIND_SOCKET_MATRIX},
- {"UNBIND_SOCKET_MATRIX",TIMESOCKET_FUNC::UNBIND_SOCKET_MATRIX},
+ {"SET_ANIMSTATE", TIMESOCKET_FUNC::SET_ANIMSTATE},
+ {"SET_ANIMTRACKPOSITION", TIMESOCKET_FUNC::SET_ANIMTRACKPOSITION},
+ {"SET_FSMSTATE", TIMESOCKET_FUNC::SET_FSMSTATE},
+ {"BIND_SOCKET_MATRIX", TIMESOCKET_FUNC::BIND_SOCKET_MATRIX},
+ {"UNBIND_SOCKET_MATRIX", TIMESOCKET_FUNC::UNBIND_SOCKET_MATRIX},
// EFFECT