diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index 2160d16e0..d6f1ee3ee 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -164,8 +164,6 @@ call Update_Resources.bat
-
-
@@ -257,8 +255,6 @@ call Update_Resources.bat
-
-
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index 60ee6855e..64a0849c2 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -262,12 +262,6 @@
02.GameObjects\Effect\Revelio
-
- 02.GameObjects\Environment\03.MapElement
-
-
- 02.GameObjects\Environment\03.MapElement\Light
-
02.GameObjects\Monster\Troll
@@ -584,12 +578,6 @@
{2bc5b43e-0e24-49d4-95b0-549ad4428201}
-
- {f3f219aa-034f-4aa2-9f2e-d75d15bd1f4a}
-
-
- {71f6a568-488d-4ec1-be79-8fcce6677e27}
-
{a1b1f17d-ed4f-4b20-aa8e-c52e693683d4}
@@ -850,12 +838,6 @@
04.Mechanic\Skill\Skill_Data
-
- 02.GameObjects\Environment\03.MapElement
-
-
- 02.GameObjects\Environment\03.MapElement\Light
-
02.GameObjects\Monster\Troll
diff --git a/Jusin154_Team3D/Client/Private/BuildingContainer.cpp b/Jusin154_Team3D/Client/Private/BuildingContainer.cpp
index 0d8571861..7d6282a29 100644
--- a/Jusin154_Team3D/Client/Private/BuildingContainer.cpp
+++ b/Jusin154_Team3D/Client/Private/BuildingContainer.cpp
@@ -25,7 +25,7 @@ void CBuildingContainer::Update(_float fTimeDelta)
{
__super::Update(fTimeDelta);
- m_fCamDepth = XMVectorGetX(XMVector3LengthSq(XMLoadFloat4(m_pGameInstance->Get_CamPosition()) - XMLoadFloat3(&m_vExtentWorldPosition)));
+ m_fCamDepth = XMVectorGetX(XMVector3Length(XMLoadFloat4(m_pGameInstance->Get_CamPosition()) - XMLoadFloat3(&m_vExtentWorldPosition)));
for (auto& pCollisiton : m_ColiisonPartObjects){
pCollisiton->Update(fTimeDelta);
diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
index b56166cc9..ae68827d5 100644
--- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp
+++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
@@ -81,10 +81,6 @@ HRESULT CInfoInstance::Load_MapObjects(const _char* pFilePath)
{
return m_pMapInfo->Load_MapObjects(pFilePath);
}
-HRESULT CInfoInstance::Load_LightElements(const _char* pFilePath)
-{
- return m_pMapInfo->Load_LightElements(pFilePath);
-}
#pragma endregion
LEVEL CInfoInstance::Get_RestartLevel()
{
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index 48aadfbd1..4afae1dbe 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -120,13 +120,10 @@ HRESULT CLevel_GamePlay::Ready_Background()
/* Map Containters */
/* 테스트용 맵 */
- //CInfoInstance::GetInstance()->Load_MapObjects("ClientTest");
+ // CInfoInstance::GetInstance()->Load_MapObjects("ClientTest");
/* 전체 맵 */
CInfoInstance::GetInstance()->Load_MapObjects("Map1129");
- /* 조명 오브젝트 */
- CInfoInstance::GetInstance()->Load_LightElements("LightElement");
-
CInstancedProp::INSTANCE_PROP_DESC Desc = {};
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 8155ccbd3..42374c2bb 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -88,7 +88,6 @@
#include "MapObject_Render.h"
#include "MapObject_Collision.h"
#include "InstancedProp.h"
-#include "MapElement_Light.h"
#pragma endregion
@@ -637,27 +636,6 @@ HRESULT CLoader::Loading_For_GamePlay()
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Terrain/Hogsmeade_AlphaMap.dds"), 0)))) {
return E_FAIL;
}
-
- /* For.Prototype_Component_LightPost_Emissive */
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("LightPost_Emissive"),
- CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE,
- TEXT("C:/MeshTable/Game/Environment/Hogsmeade/Common/Textures/LightPosts/T_HM_LampPost_Glass_E.png"), 0)))) {
- return E_FAIL;
- }
-
- /* For.Prototype_Component_LightPost_Mask */
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("LightPost_Mask"),
- CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE,
- TEXT("C:/MeshTable/Game/Environment/Hogsmeade/Common/Textures/LightPosts/T_HM_LampPost_Glass_D.png"), 0)))) {
- return E_FAIL;
- }
-
- /* For.Prototype_Component_LightPost_Base */
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("LightPost_Base"),
- CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE,
- TEXT("C:/MeshTable/Game/Environment/Hogsmeade/Common/Textures/LightPosts/T_HM_LampPost_Glass_Dark_D.png"), 0)))) {
- return E_FAIL;
- }
#pragma endregion
@@ -1050,8 +1028,6 @@ HRESULT CLoader::Loading_For_GamePlay()
}
}
-
-
/* For.Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA"),
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
@@ -1099,11 +1075,6 @@ HRESULT CLoader::Loading_For_GamePlay()
/* For.Prototype_GameObject_CInstancedProp */
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CInstancedProp::Create(m_pDevice, m_pContext))))
return E_FAIL;
-
- /* For.Prototype_GameObject_MapElement_Light */
- if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMapElement_Light::Create(m_pDevice, m_pContext))))
- return E_FAIL;
-
#pragma endregion // MAP PROTOTYPE
#pragma region ACTOR PROTOTYPE
diff --git a/Jusin154_Team3D/Client/Private/MapInfo.cpp b/Jusin154_Team3D/Client/Private/MapInfo.cpp
index 3335b597b..dcc1bff64 100644
--- a/Jusin154_Team3D/Client/Private/MapInfo.cpp
+++ b/Jusin154_Team3D/Client/Private/MapInfo.cpp
@@ -7,7 +7,6 @@
#include "MAPPartObject.h"
#include "MapObject_Render.h"
#include "MapObject_Collision.h"
-#include "MapElement_Light.h"
CMapInfo::CMapInfo()
{
@@ -270,96 +269,6 @@ HRESULT CMapInfo::Load_MapCollisionObjects(tinyxml2::XMLElement* Container, CMap
return S_OK;
}
-HRESULT CMapInfo::Load_LightElements(const _char* pFileName)
-{
- tinyxml2::XMLDocument xmlDoc;
-
- string strPath = "../Bin/Resources/Data/Map/" + string(pFileName) + ".xml";
-
- if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
- return E_FAIL;
-
- tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("MapLightObjects");
-
- if (nullptr == root)
- {
- MSG_BOX("Failed to Find root");
- return S_OK;
- }
-
- for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
- {
- CMapElement_Light::MAPELEMENT_LIGHT_DESC Desc = {};
-
- /* Model Prototypes */
- Object->QueryUnsignedAttribute("Lod_Level", &Desc.iMaxLodLevel);
-
- string strTag = {};
- for (auto* PrototypeTag = Object->FirstChildElement("PrototypeTag"); PrototypeTag; PrototypeTag = PrototypeTag->NextSiblingElement("PrototypeTag"))
- {
- strTag = PrototypeTag->GetText();
-
- Desc.ModelPrototypeTags.push_back(CMyTools::ToWstring(strTag));
- }
-
- /* Transform */
- auto* Position = Object->FirstChildElement("Position");
- Position->QueryFloatAttribute("x", &Desc.vPosition.x);
- Position->QueryFloatAttribute("y", &Desc.vPosition.y);
- Position->QueryFloatAttribute("z", &Desc.vPosition.z);
-
- auto* Scale = Object->FirstChildElement("Scale");
- Scale->QueryFloatAttribute("x", &Desc.vScale.x);
- Scale->QueryFloatAttribute("y", &Desc.vScale.y);
- Scale->QueryFloatAttribute("z", &Desc.vScale.z);
-
- auto* Rotation = Object->FirstChildElement("Rotation");
- Rotation->QueryFloatAttribute("x", &Desc.vRotation.x);
- Rotation->QueryFloatAttribute("y", &Desc.vRotation.y);
- Rotation->QueryFloatAttribute("z", &Desc.vRotation.z);
-
- /* Light Desc */
- auto* Diffuse = Object->FirstChildElement("Diffuse");
- Diffuse->QueryFloatAttribute("x", &Desc.vDiffuse.x);
- Diffuse->QueryFloatAttribute("y", &Desc.vDiffuse.y);
- Diffuse->QueryFloatAttribute("z", &Desc.vDiffuse.z);
-
- auto* Ambient = Object->FirstChildElement("Ambient");
- Ambient->QueryFloatAttribute("x", &Desc.vAmbient.x);
- Ambient->QueryFloatAttribute("y", &Desc.vAmbient.y);
- Ambient->QueryFloatAttribute("z", &Desc.vAmbient.z);
-
- auto* Specular = Object->FirstChildElement("Specular");
- Specular->QueryFloatAttribute("x", &Desc.vSpecular.x);
- Specular->QueryFloatAttribute("y", &Desc.vSpecular.y);
- Specular->QueryFloatAttribute("z", &Desc.vSpecular.z);
-
- auto* PosOffset = Object->FirstChildElement("PosOffset");
- PosOffset->QueryFloatAttribute("x", &Desc.vPosOffset.x);
- PosOffset->QueryFloatAttribute("y", &Desc.vPosOffset.y);
- PosOffset->QueryFloatAttribute("z", &Desc.vPosOffset.z);
-
- auto* Info = Object->FirstChildElement("Info");
- Info->QueryUnsignedAttribute("GlassIndex", &Desc.iGlassMeshIndex);
- Info->QueryFloatAttribute("BloomStrength", &Desc.fBloomStregth);
- Info->QueryFloatAttribute("Range", &Desc.fRange);
- _uint iPow = {};
- Info->QueryUnsignedAttribute("Pow", &iPow);
-
- Desc.isPow = 0 == iPow ? false : true;
-
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Light"), &Desc)))
- return E_FAIL;
- }
-
- MSG_BOX("Successed to Load File");
-
-
- return S_OK;
-
- return S_OK;
-}
-
HRESULT CMapInfo::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
{
m_pGameInstance = CGameInstance::GetInstance();
diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h
index 7a7ba5d7e..2032a399d 100644
--- a/Jusin154_Team3D/Client/Public/Client_Enum.h
+++ b/Jusin154_Team3D/Client/Public/Client_Enum.h
@@ -8,7 +8,7 @@ namespace Client
enum class SHADER_PASS_ANIM { DEFAULT, SHADOW, CAPTURE, BLUR, HAIR, EYELASH, OUTLINE_WRITE, OUTLINE_READ, END };
enum class SHADER_PASS_CUBE { DEFAULT, SHADOW, BLUR, END };
- enum class SHADER_PASS_MESH { DEFAULT, SHADOW, SKYBOX, ALPHABLEND, EFFECT_ALPHABLEND, EFFECT_BLEND, EFFECT_ALPHABLEND_CULL, EFFECT_BLEND_CULL, CAPTURE, BLUR, EFFECT_ALPHABLEND_UVMOVE, MAPTOOL, GLASS, OUTLINE_WRITE, OUTLINE_READ, BLOOM, END };
+ enum class SHADER_PASS_MESH { DEFAULT, SHADOW, SKYBOX, ALPHABLEND, EFFECT_ALPHABLEND, EFFECT_BLEND, EFFECT_ALPHABLEND_CULL, EFFECT_BLEND_CULL, CAPTURE, BLUR, EFFECT_ALPHABLEND_UVMOVE, MAPTOOL, GLASS, OUTLINE_WRITE, OUTLINE_READ, END };
enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, ENV_TERRAIN_ANISO, END };
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLUR, TRAIL_BLOOM, END };
diff --git a/Jusin154_Team3D/Client/Public/InfoInstance.h b/Jusin154_Team3D/Client/Public/InfoInstance.h
index 2794be081..8832eb433 100644
--- a/Jusin154_Team3D/Client/Public/InfoInstance.h
+++ b/Jusin154_Team3D/Client/Public/InfoInstance.h
@@ -40,7 +40,6 @@ class CInfoInstance final : public CBase
#pragma endregion
#pragma region MAP_INFO
HRESULT Load_MapObjects(const _char* pFilePath);
- HRESULT Load_LightElements(const _char* pFilePath);
#pragma endregion
diff --git a/Jusin154_Team3D/Client/Public/MapInfo.h b/Jusin154_Team3D/Client/Public/MapInfo.h
index 4ea323760..e81fc6bb4 100644
--- a/Jusin154_Team3D/Client/Public/MapInfo.h
+++ b/Jusin154_Team3D/Client/Public/MapInfo.h
@@ -22,7 +22,6 @@ class CMapInfo final : public CBase
HRESULT Load_StreetContainer(tinyxml2::XMLElement* Container, class CMapContainer** ppContainerObject);
HRESULT Load_MapRenderObjects(tinyxml2::XMLElement* Container, class CMapContainer* pContainerObject);
HRESULT Load_MapCollisionObjects(tinyxml2::XMLElement* Container, class CMapContainer* pContainerObject);
- HRESULT Load_LightElements(const _char* pFileName);
private:
CGameInstance* m_pGameInstance = { nullptr };
diff --git a/Jusin154_Team3D/Client/Public/MapObject_Render.h b/Jusin154_Team3D/Client/Public/MapObject_Render.h
index d57082d19..b991d3b95 100644
--- a/Jusin154_Team3D/Client/Public/MapObject_Render.h
+++ b/Jusin154_Team3D/Client/Public/MapObject_Render.h
@@ -30,7 +30,7 @@ class CMapObject_Render final : public CMapPartObject // Render PartObject
private:
MAPOBJECT_RENDER_TYPE m_Type = {};
- CShader* m_pShaderCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
vector m_pModelComs;
_uint m_iLodIndex = {};