diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index 64c2faf8d..e9bd1f049 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -176,6 +176,7 @@ call Update_Resources.bat
+
@@ -189,6 +190,7 @@ call Update_Resources.bat
+
@@ -299,6 +301,7 @@ call Update_Resources.bat
+
@@ -325,6 +328,7 @@ call Update_Resources.bat
+
@@ -338,6 +342,7 @@ call Update_Resources.bat
+
@@ -451,6 +456,7 @@ call Update_Resources.bat
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index ac1dc70bb..df8efd929 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -436,6 +436,15 @@
02.GameObjects\PhysX\CallBack\HitReport\Monster\Troll
+
+ 02.GameObjects\Environment\04.Land
+
+
+ 02.GameObjects\Environment\05.Unified
+
+
+ 02.GameObjects\Environment\03.MapElement\Lake
+
@@ -935,6 +944,15 @@
{e12337a6-7563-4615-a8d2-a2e2e1ba1ca8}
+
+ {ec267143-0bc1-4765-b8dc-6cccc50385d7}
+
+
+ {c268eda1-0e52-4659-8c82-a88b074d9860}
+
+
+ {a357d495-f74d-4aec-919e-0f6bac3e0e7b}
+
@@ -1372,7 +1390,16 @@
02.GameObjects\PhysX\CallBack\HitReport\Monster\Troll
-
+
+ 02.GameObjects\Environment\04.Land
+
+
+ 02.GameObjects\Environment\05.Unified
+
+
+ 02.GameObjects\Environment\03.MapElement\Lake
+
+
99.Define\00.DEFAULT
diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
index efc34983a..84e9f6242 100644
--- a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
+++ b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
@@ -199,7 +199,7 @@ HRESULT CCamPosition_Shoulder::Ready_SubParts()
CCamera_Gaze::CAMERA_GAZE_DESC CameraDesc{};
CameraDesc.fFovy = XMConvertToRadians(60.0f);
CameraDesc.fNear = 0.1f;
- CameraDesc.fFar = 300.f;
+ CameraDesc.fFar = 500.f;
CameraDesc.fSpeedPerSec = 5.f;
CameraDesc.fRotationPerSec = XMConvertToRadians(90.f);
CameraDesc.pFollowTarget = m_pTarget_FollowPart;
diff --git a/Jusin154_Team3D/Client/Private/Land.cpp b/Jusin154_Team3D/Client/Private/Land.cpp
new file mode 100644
index 000000000..13fb8f175
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Land.cpp
@@ -0,0 +1,150 @@
+#include "pch.h"
+#include "Land.h"
+
+#include "GameInstance.h"
+
+CLand::CLand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CGameObject{ pDevice, pContext }
+{
+}
+
+CLand::CLand(const CLand& rhs)
+ : CGameObject(rhs)
+{
+}
+
+void CLand::Priority_Update(_float fTimeDelta)
+{
+}
+
+void CLand::Update(_float fTimeDelta)
+{
+}
+
+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);
+}
+
+HRESULT CLand::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pModelCom->Bind_Material(0, m_pShaderCom)))
+ return E_FAIL;
+
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::LAND)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pModelCom->Render(0))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CLand::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CLand::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+ m_fRaduis = m_pModelCom->Get_Radius();
+
+ return S_OK;
+}
+
+HRESULT CLand::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ LAND_DESC* pDesc = static_cast(pArg);
+
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
+ m_pTransformCom->Set_Scale(pDesc->vScale);
+
+ /* Com_Model */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pDesc->strModelComTag,
+ reinterpret_cast(&m_pModelCom))))
+ return E_FAIL;
+
+ /* Com_Shader */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
+ reinterpret_cast(&m_pShaderCom))))
+ return E_FAIL;
+
+ return S_OK;
+}
+
+HRESULT CLand::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CLand* CLand::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CLand* pInstance = new CLand(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CLand");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CLand::Clone(void* pArg, CGameObject* pOwner)
+{
+ CLand* pInstance = new CLand(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CLand");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+void CLand::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pModelCom);
+}
+#ifdef _DEBUG
+void CLand::Describe_Entity()
+{
+
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index 6e1de08e8..a6752c22b 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -14,6 +14,9 @@
#include "Terrain.h"
#include "EffectPool.h"
#include "InstancedProp.h"
+#include "Land.h"
+#include "Unified.h"
+#include "MapElement_Lake.h"
#pragma region ACTOR
#include "Player.h"
@@ -149,17 +152,91 @@ HRESULT CLevel_GamePlay::Ready_Lights()
HRESULT CLevel_GamePlay::Ready_Background()
{
- /* Terrain */
CTerrain::TERRAIN_DESC Terrain_Desc = {};
+ /* Hogsmeade Terrain */
Terrain_Desc.vPosition = _float3(-194, 18.5f, -153.f);
+ Terrain_Desc.strVIBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade");
Terrain_Desc.strDiffuseTextureTag = TEXT("Terrain_Diffuse");
Terrain_Desc.strNormalTextureTag = TEXT("Terrain_Normal");
Terrain_Desc.strMROTextureTag = TEXT("Terrain_MRO");
- Terrain_Desc.strAlphaMapTextureTag = TEXT("HogsmeadeAlphaMap");
+ Terrain_Desc.strAlphaMapTextureTag = TEXT("Hogsmeade_AlphaMap");
+ Terrain_Desc.strRigidBody_MeshName = TEXT("Hogsmeade_HeightMap");
+ Terrain_Desc.strRigidBody_ComponentTag = TEXT("Prototype_Component_RigidBody_Static_Terrain_Hogsmeade");
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_BACKGROUND, &Terrain_Desc))) {
+ return E_FAIL;
+ }
+ /* Hogwart Terrain */
+ Terrain_Desc.vPosition = _float3(-451.f, 18.5f, -791.f);
+ Terrain_Desc.strVIBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogwart");
+ Terrain_Desc.strDiffuseTextureTag = TEXT("Terrain_Diffuse");
+ Terrain_Desc.strNormalTextureTag = TEXT("Terrain_Normal");
+ Terrain_Desc.strMROTextureTag = TEXT("Terrain_MRO");
+ Terrain_Desc.strAlphaMapTextureTag = TEXT("Hogwart_AlphaMap");
+ Terrain_Desc.strRigidBody_MeshName = TEXT("Hogwart_HeightMap");
+ Terrain_Desc.strRigidBody_ComponentTag = TEXT("Prototype_Component_RigidBody_Static_Terrain_Hogwart");
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_BACKGROUND, &Terrain_Desc))) {
return E_FAIL;
}
+ CLand::LAND_DESC Land_Desc = {};
+
+ /* South_Hogwart_Land */
+ Land_Desc.vPosition = _float3(290.5f, 59.5f, -347.f);
+ Land_Desc.vScale = _float3(1.f, 1.25f, 1.f);
+ Land_Desc.strModelComTag = L"Prototype_Component_South_Hogwart_Land_LOD1";
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
+ return E_FAIL;
+
+ /* North_Hogwart_Land */
+ Land_Desc.vPosition = _float3(-370.f, -37.5f, -21.4f);
+ Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
+ Land_Desc.strModelComTag = L"Prototype_Component_North_Hogwart_Land_LOD1";
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
+ return E_FAIL;
+
+ /* North_Hogwart2_Land */
+ Land_Desc.vPosition = _float3(-378.f, -17.5f, 285.6f);
+ Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
+ Land_Desc.strModelComTag = L"Prototype_Component_North_Hogwart2_Land_LOD1";
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
+ return E_FAIL;
+
+ /* West_Hogwart_Land */
+ Land_Desc.vPosition = _float3(-653.f, 20.f, -327.4f);
+ Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
+ Land_Desc.strModelComTag = L"Prototype_Component_West_Hogwart_Land_LOD1";
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
+ return E_FAIL;
+
+ /* East_Hogsmeade_Land */
+ Land_Desc.vPosition = _float3(436.f, 55.f, 60.3f);
+ Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
+ Land_Desc.strModelComTag = L"Prototype_Component_East_Hogsmeade_Land_LOD1";
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
+ return E_FAIL;
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UNIFIED)))
+ return E_FAIL;
+
+
+
+ CMapElement_Lake::MAPOBJECT_LAKE_DESC Lake_Desc = {};
+
+ vector<_wstring> ModelPrototypeTags;
+ ModelPrototypeTags.push_back(TEXT("Prototype_Component_Hogwart_Lake"));
+ Lake_Desc.iMaxLodLevel = 0;
+ Lake_Desc.iRenderType = 4;
+ Lake_Desc.vPosition = _float3(-144.f, -61.9f, -115.f);
+ Lake_Desc.vRotation = _float3(0.f, 0.f, 0.f);
+ Lake_Desc.vScale = _float3(3.f, 3.f, 3.f);
+ Lake_Desc.ModelPrototypeTags = ModelPrototypeTags;
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Lake_Desc)))
+ return E_FAIL;
// ---------------------------------
// >> M A P Configuration <<
// 맵 로드할지 안할지 bool 설정
@@ -301,7 +378,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Camera()
CCamera_Debug::CAMERA_DEBUG_DESC Camera_Desc{};
Camera_Desc.fFovy = XMConvertToRadians(60.0f);
Camera_Desc.fNear = 0.1f;
- Camera_Desc.fFar = 200.f;
+ Camera_Desc.fFar = 500.f;
Camera_Desc.vEye = _float3(0.f, 10.f, -10.f);
Camera_Desc.vAt = _float3(0.f, 0.f, 0.f);
Camera_Desc.fSpeedPerSec = 5.f;
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index feb057d11..c7104d98a 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -141,6 +141,9 @@
#include "InstancedProp.h"
#include "MapElement_Light.h"
#include "MapElement_Interactable.h"
+#include "MapElement_Lake.h"
+#include "Land.h"
+#include "Unified.h"
#pragma endregion
@@ -331,6 +334,12 @@ HRESULT CLoader::Loading_For_GamePlay()
".bin", false
));
}
+ { /* Hogwart LOD */
+ jobMapModels.emplace_back(Deferred_FolderLoad(
+ "../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD/",
+ ".bin", false
+ ));
+ }
if (true == isLoad_Background)
{
@@ -1024,7 +1033,7 @@ HRESULT CLoader::Loading_For_GamePlay()
// return E_FAIL;
// }
//
-//#pragma endregion
+#pragma endregion
#pragma region TERRAIN_TEXTURE
/* Terrain_Diffuse */
@@ -1042,11 +1051,16 @@ HRESULT CLoader::Loading_For_GamePlay()
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Terrain/Terrain_MRO_%d.dds"), 4)))) {
return E_FAIL;
}
- /* Terrain_AlphaMap */
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("HogsmeadeAlphaMap"),
+ /* HogsmeadeAlphaMap */
+ if(FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Hogsmeade_AlphaMap"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Terrain/Hogsmeade_AlphaMap.dds"), 0)))) {
return E_FAIL;
}
+ /* HogwartAlphaMap */
+ if(FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Hogwart_AlphaMap"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Terrain/Hogwart_AlphaMap.dds"), 0)))) {
+ return E_FAIL;
+ }
/* For.Prototype_Component_LightPost_Emissive */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("LightPost_Emissive"),
@@ -1070,6 +1084,51 @@ HRESULT CLoader::Loading_For_GamePlay()
}
#pragma endregion
+#pragma region LAKE_TEXTURE
+ /* For.Prototype_Component_Water_Noise_D */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("T_Noises_D"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE,
+ TEXT("../Bin/Resources/Models/Lake/T_Noises_D.dds"), 0)))) {
+ return E_FAIL;
+ }
+ /* For.Prototype_Component_T_Water_Normal_Large_N */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("T_Water_Normal_Large_N"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE,
+ TEXT("../Bin/Resources/Models/Lake/T_Water_Normal_Large_N.dds"), 0)))) {
+ return E_FAIL;
+ }
+ /* For.Prototype_Component_T_Water_Normal_Subtle_N */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("T_Water_Normal_Subtle_N"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE,
+ TEXT("../Bin/Resources/Models/Lake/T_Water_Normal_Subtle_N.dds"), 0)))) {
+ return E_FAIL;
+ }
+ /* For.Prototype_Component_T_Caustics_D */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("T_Caustics_D"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE,
+ TEXT("../Bin/Resources/Models/Lake/T_Caustics_D.dds"), 0)))) {
+ return E_FAIL;
+ }
+ /* For.Prototype_Component_T_Water_N */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("T_Water_N"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE,
+ TEXT("../Bin/Resources/Models/Lake/T_Water_N.dds"), 0)))) {
+ return E_FAIL;
+ }
+ /* Lake_Cube_D */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Lake_Cube_D"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Models/Lake/SkyCube.dds"), 0)))) {
+ return E_FAIL;
+ }
+
+ /* Lake_Cube_D */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Lake_Refraction"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Models/Lake/T_MudSmallRocks_A_D.dds"), 0)))) {
+ return E_FAIL;
+ }
+#pragma endregion
+
+
#pragma region EFFECT
Asset_FileLoad("../Bin/Resources/Textures/Effect/Trails", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
@@ -1699,10 +1758,10 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
#pragma region MAP PROTOTYPE
- /* For.Prototype_Component_VIBuffer_Terrain */
+ /* For.Prototype_Component_VIBuffer_Terrain_Hogsmeade */
{
CVIBuffer_Terrain* pTerrain = CVIBuffer_Terrain::Create(m_pDevice, m_pContext, "Hogsmeade_HeightMap.bin", 512, 512);
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain"), pTerrain))) {
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade"), pTerrain))) {
return E_FAIL;
}
pTerrain->ConvertToHeightField(TEXT("Hogsmeade_HeightMap"));
@@ -1721,7 +1780,28 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
}
+ /* For.Prototype_Component_VIBuffer_Terrain_Hogwart */
+ {
+ CVIBuffer_Terrain* pTerrain = CVIBuffer_Terrain::Create(m_pDevice, m_pContext, "Hogwart_HeightMap.bin", 512, 640);
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain_Hogwart"), pTerrain))) {
+ return E_FAIL;
+ }
+ pTerrain->ConvertToHeightField(TEXT("Hogwart_HeightMap"));
+ CRigidBody_Static::RIGIDBODY_STATIC_PROTOTYPEDESC Desc{}; // 터레인 리지드 지형 추가
+ {
+ Desc.eType = ACTOR::HEIGHTFIELD;
+ Desc.ePxRigidBodyFlags = {};
+ Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
+ Desc.ePxMaterialTypes = PXMATERIAL::DEFAULT;
+ Desc.fContactOffset = 0.001f;
+ Desc.vMatInfo = { 1.2f, 1.0f, 0.0f };
+ }
+ CRigidBody_Static* pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc);
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_RigidBody_Static_Terrain_Hogwart"), pRigid))) {
+ return E_FAIL;
+ }
+ }
#pragma region MAP_INSTANCE
/* For.Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA */
@@ -1799,6 +1879,40 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
#pragma endregion
+ /* For.Prototype_Component_South_Hogwart_Land_LOD1 */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_South_Hogwart_Land_LOD1"),
+ CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BCLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
+ return E_FAIL;
+
+ /* For.Prototype_Component_North_Hogwart_Land_LOD1 */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart_Land_LOD1"),
+ CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AVLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
+ return E_FAIL;
+
+ /* For.Prototype_Component_North_Hogwart2_Land_LOD1 */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart2_Land_LOD1"),
+ CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AULOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
+ return E_FAIL;
+
+ /* For.Prototype_Component_West_Hogwart_Land_LOD1 */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_West_Hogwart_Land_LOD1"),
+ CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AZLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
+ return E_FAIL;
+
+ /* For.Prototype_Component_East_Hogwart_Land_LOD1 */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_East_Hogsmeade_Land_LOD1"),
+ CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AYLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
+ return E_FAIL;
+
+ /* For.Prototype_Component_Hogwart_Lake */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogwart_Lake"),
+ CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Lake/SM_Lake_A_Collision_Deep.bin", XMMatrixIdentity()))))
+ return E_FAIL;
+
+ /* For.Prototype_Component_Hogwart_LakeSurFace */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogwart_LakeSurFace"),
+ CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Lake/SM_Lake_A_Collision_Shallow.bin", XMMatrixIdentity()))))
+ return E_FAIL;
/* For.Prototype_Component_VIBuffer_Box */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Box"),
@@ -1842,6 +1956,19 @@ HRESULT CLoader::Loading_For_GamePlay()
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMapElement_Interactable::Create(m_pDevice, m_pContext))))
return E_FAIL;
+ /* For.Prototype_GameObject_Unified */
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMapElement_Lake::Create(m_pDevice, m_pContext))))
+ return E_FAIL;
+
+ /* For.Prototype_GameObject_Land */
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLand::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+ /* For.Prototype_GameObject_Unified */
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CUnified::Create(m_pDevice, m_pContext))))
+ return E_FAIL;
+
#pragma endregion // MAP PROTOTYPE
#pragma region ACTOR PROTOTYPE
diff --git a/Jusin154_Team3D/Client/Private/MapElement_Lake.cpp b/Jusin154_Team3D/Client/Private/MapElement_Lake.cpp
new file mode 100644
index 000000000..0cfe599ec
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/MapElement_Lake.cpp
@@ -0,0 +1,267 @@
+#include "pch.h"
+#include "MapElement_Lake.h"
+
+#include "GameInstance.h"
+
+#include "Terrain.h"
+#include "Layer.h"
+
+CMapElement_Lake::CMapElement_Lake(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CMapElement{ pDevice, pContext }
+{
+}
+
+CMapElement_Lake::CMapElement_Lake(const CMapElement_Lake& rhs)
+ : CMapElement(rhs)
+{
+}
+
+HRESULT CMapElement_Lake::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CMapElement_Lake::Initialize(void* pArg)
+{
+ MAPOBJECT_LAKE_DESC* pDesc = static_cast(pArg);
+
+ m_iMaxLodLevel = pDesc->iMaxLodLevel;
+
+ for (_uint i = 0; i < m_iMaxLodLevel + 1; i++)
+ {
+ m_ModelPrototypeTags.push_back(pDesc->ModelPrototypeTags[i]);
+ //m_ModelPathIndices.push_back((*pDesc->pModelPathIndices)[i]);
+ }
+
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
+ m_pTransformCom->Set_Scale(pDesc->vScale);
+ m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z));
+ m_vRefractionColor = _float4(1.f, 1.f, 1.f, 1.f);
+ m_vSurfaceColor = _float4(1.f, 1.f, 1.f, 1.f);
+ m_fUVValue = 0.01f;
+ return S_OK;
+}
+
+void CMapElement_Lake::Priority_Update(_float fTimeDelta)
+{
+}
+
+void CMapElement_Lake::Update(_float fTimeDelta)
+{
+ m_fTimeAcc += fTimeDelta * m_fUVValue;
+ //Describe_Entity();
+}
+
+void CMapElement_Lake::Late_Update(_float fTimeDelta)
+{
+ m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
+}
+
+HRESULT CMapElement_Lake::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ return E_FAIL;
+
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::WATER)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pModelComs[0]->Render(0))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CMapElement_Lake::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ for (_uint i = 0; i < m_iMaxLodLevel + 1; ++i)
+ {
+ CModel* pModel = { nullptr };
+
+ /* Com_Model */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_ModelPrototypeTags[i],
+ reinterpret_cast(&pModel))))
+ return E_FAIL;
+
+ m_pModelComs.push_back(pModel);
+ }
+
+ /* Com_Shader */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
+ reinterpret_cast(&m_pShaderCom))))
+ return E_FAIL;
+
+ /* Com_Texture */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("T_Noises_D"),
+ reinterpret_cast(&m_pNoiseTextureCom))))
+ return E_FAIL;
+ /* Com_Texture */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("T_Water_Normal_Large_N"),
+ reinterpret_cast(&m_pNormalLargeTextureCom))))
+ return E_FAIL;
+ /* Com_Texture */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("T_Water_Normal_Subtle_N"),
+ reinterpret_cast(&m_pNormalSubTextureCom))))
+ return E_FAIL;
+ /* Com_Texture */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("T_Caustics_D"),
+ reinterpret_cast(&m_pCausticsTextureCom))))
+ return E_FAIL;
+ /* Com_Texture */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("T_Water_N"),
+ reinterpret_cast(&m_pNormalTextureCom))))
+ return E_FAIL;
+ /* Com_Texture */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Lake_Cube_D"),
+ reinterpret_cast(&m_pCubeMapTextureCom))))
+ return E_FAIL;
+ /* Com_Texture */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Lake_Refraction"),
+ reinterpret_cast(&m_pRefractionTextureCom))))
+ return E_FAIL;
+
+ return S_OK;
+}
+
+HRESULT CMapElement_Lake::Bind_ShaderResources()
+{
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTimeAcc, sizeof(_float)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fNormalValue1", &m_fUVValue1, sizeof(_float)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fNormalValue2", &m_fUVValue2, sizeof(_float)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fNormalValue3", &m_fUVValue3, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fUVSpeed1", &m_fUVSpeed1, sizeof(_float)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fUVSpeed2", &m_fUVSpeed2, sizeof(_float)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fUVSpeed3", &m_fUVSpeed3, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fRefractionStrength", &m_fRefractionStrength, sizeof(_float)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fRefractionPow", &m_fRefractionPow, sizeof(_float)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fSpecularIntensity", &m_fSpecularIntensity, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float3)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vDiffuseColor", &m_vRefractionColor, sizeof(_float4)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vSurfaceColor", &m_vSurfaceColor, sizeof(_float4)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_SRV("g_DiffuseTexture", m_pRefractionTextureCom->Get_SRV(0)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_SRV("g_NormalTexture", m_pNormalTextureCom->Get_SRV(0)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_SRV("g_NormalLargeTexture", m_pNormalLargeTextureCom->Get_SRV(0)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_SRV("g_NormalSubTexture", m_pNormalSubTextureCom->Get_SRV(0)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_SRV("g_NoiseTexture", m_pNoiseTextureCom->Get_SRV(0)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pCubeMapTextureCom->Bind_ShaderResource(m_pShaderCom, "g_CubeTexture", 0))) {
+ return E_FAIL;
+ }
+
+
+ return S_OK;
+}
+
+CMapElement_Lake* CMapElement_Lake::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CMapElement_Lake* pInstance = new CMapElement_Lake(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CMapElement_Lake");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CMapElement_Lake::Clone(void* pArg, CGameObject* pOwner)
+{
+ CMapElement_Lake* pInstance = new CMapElement_Lake(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CMapElement_Lake");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CMapElement_Lake::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pRefractionTextureCom);
+ SAFE_RELEASE(m_pCubeMapTextureCom);
+ SAFE_RELEASE(m_pNormalTextureCom);
+ SAFE_RELEASE(m_pNormalLargeTextureCom);
+ SAFE_RELEASE(m_pNormalSubTextureCom);
+ SAFE_RELEASE(m_pCausticsTextureCom);
+ SAFE_RELEASE(m_pNoiseTextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ for (auto& pModel : m_pModelComs)
+ SAFE_RELEASE(pModel);
+}
+
+#ifdef _DEBUG
+void CMapElement_Lake::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Terrain.cpp b/Jusin154_Team3D/Client/Private/Terrain.cpp
index 317a14d6e..45f376a03 100644
--- a/Jusin154_Team3D/Client/Private/Terrain.cpp
+++ b/Jusin154_Team3D/Client/Private/Terrain.cpp
@@ -33,16 +33,14 @@ HRESULT CTerrain::Initialize(void* pArg)
}
m_fUsingSurfaceParams = 15.f / 27.f;
- //m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-194, 18.5f, -153.f, 1.f));
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
-
{
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc{};
- Desc.pMeshName = TEXT("Hogsmeade_HeightMap");
+ Desc.pMeshName = pDesc->strRigidBody_MeshName.c_str();
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
/* Com_RigidBody */
- if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_RigidBody_Static_Terrain_Hogsmeade"),
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pDesc->strRigidBody_ComponentTag,
reinterpret_cast(&m_pRigidBody), &Desc))) {
return E_FAIL;
}
@@ -58,7 +56,7 @@ void CTerrain::Priority_Update(_float fTimeDelta)
void CTerrain::Update(_float fTimeDelta)
{
#ifdef _DEBUG
- Describe_Entity();
+ //Describe_Entity();
#endif // DEBUG
}
@@ -130,7 +128,7 @@ HRESULT CTerrain::Ready_Components(void* pArg)
TERRAIN_DESC* pDesc = static_cast(pArg);
/* Com_VIBuffer */
- if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain"),
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pDesc->strVIBufferTag,
reinterpret_cast(&m_pVIBufferCom)))){
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Client/Private/Unified.cpp b/Jusin154_Team3D/Client/Private/Unified.cpp
new file mode 100644
index 000000000..35f2ba606
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Unified.cpp
@@ -0,0 +1,166 @@
+#include "pch.h"
+#include "Unified.h"
+
+#include "GameInstance.h"
+
+CUnified::CUnified(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CGameObject{ pDevice, pContext }
+{
+}
+
+CUnified::CUnified(const CUnified& rhs)
+ : CGameObject(rhs)
+{
+}
+
+void CUnified::Priority_Update(_float fTimeDelta)
+{
+}
+
+void CUnified::Update(_float fTimeDelta)
+{
+ //Describe_Entity();
+}
+
+void CUnified::Late_Update(_float fTimeDelta)
+{
+ if (m_isVisible)
+ m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
+}
+
+HRESULT CUnified::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+
+ for (_uint i = 0; i < m_iNumMesh; ++i)
+ {
+ if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fUsingSurfaceParams", &m_fUsingSurfaceParams, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vSurfaceColor", &m_vSurfaceColor, sizeof(_float4))))
+ return E_FAIL;
+
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::NONMRO)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pModelCom->Render(i))) {
+ return E_FAIL;
+ }
+ }
+
+ return S_OK;
+}
+
+HRESULT CUnified::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CUnified::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+ m_iNumMesh = m_pModelCom->Get_NumMeshes();
+
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-291.2f, 17.2f, -474.7f, 1.f));
+ m_fUsingSurfaceParams = 2.f / 27.f;
+ m_vSurfaceColor = _float4(1.f, 1.f, 1.f, 1.f);
+
+ return S_OK;
+}
+
+HRESULT CUnified::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ /* Com_Model */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_GameObject_SM_HW_HogwartsShell_B"),
+ reinterpret_cast(&m_pModelCom))))
+ return E_FAIL;
+
+ /* Com_Shader */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
+ reinterpret_cast(&m_pShaderCom))))
+ return E_FAIL;
+
+ return S_OK;
+}
+
+HRESULT CUnified::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CUnified* CUnified::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CUnified* pInstance = new CUnified(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CUnified");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CUnified::Clone(void* pArg, CGameObject* pOwner)
+{
+ CUnified* pInstance = new CUnified(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CUnified");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+void CUnified::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pModelCom);
+}
+#ifdef _DEBUG
+void CUnified::Describe_Entity()
+{
+ GUI::Begin("Unified");
+ GUI::Checkbox("Visible ON / OFF", &m_isVisible);
+
+ GUI::End();
+}
+#endif // DEBUG
+
+
diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h
index 50d625d3c..3d4505fc2 100644
--- a/Jusin154_Team3D/Client/Public/Client_Enum.h
+++ b/Jusin154_Team3D/Client/Public/Client_Enum.h
@@ -7,7 +7,7 @@ namespace Client
enum class MAPOBJECT_RENDER_TYPE { NORMAL, DECAL, GLASS };
enum class SHADER_PASS_ANIM { DEFAULT, SHADOW, CAPTURE, BLUR, HAIR, EYELASH, OUTLINE_WRITE, OUTLINE_READ,SPECTOR, 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, BLOOM, WATER, LAND, NONMRO, END };
enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, ENV_TERRAIN_ANISO, SHADOW, END };
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLEND, TRAILWB_FOR_BLEND, TRAIL_BLUR, TRAIL_BLOOM, END };
diff --git a/Jusin154_Team3D/Client/Public/Client_Macro.h b/Jusin154_Team3D/Client/Public/Client_Macro.h
index 0da552f43..23581ecff 100644
--- a/Jusin154_Team3D/Client/Public/Client_Macro.h
+++ b/Jusin154_Team3D/Client/Public/Client_Macro.h
@@ -59,6 +59,7 @@ namespace Client {
#define LAYER_EFFECTPOOL TEXT("Layer_EffectPool")
#define LAYER_LIGHT TEXT("Layer_Light")
#define LAYER_INTERACTABLE TEXT("Layer_Interactable")
+#define LAYER_UNIFIED TEXT("Layer_Unified")
#define LAYER_MAPOBJECTMANAGER TEXT("Layer_MapObjectManager")
diff --git a/Jusin154_Team3D/Client/Public/Land.h b/Jusin154_Team3D/Client/Public/Land.h
new file mode 100644
index 000000000..2533d6bd4
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Land.h
@@ -0,0 +1,54 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "GameObject.h"
+
+NS_BEGIN(Engine)
+class CModel;
+class CShader;
+NS_END
+
+NS_BEGIN(Client)
+
+class CLand final : public CGameObject
+{
+public:
+ typedef struct tagLandDesc
+ {
+ _float3 vPosition;
+ _float3 vScale;
+ _wstring strModelComTag;
+ }LAND_DESC;
+private:
+ CLand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CLand(const CLand& rhs);
+ virtual ~CLand() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+ virtual HRESULT Render() override;
+
+private:
+ CShader* m_pShaderCom = { nullptr };
+ CModel* m_pModelCom = { nullptr };
+
+ _float m_fRaduis = {};
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Bind_ShaderResources() override;
+
+public:
+ static CLand* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/MapElement_Lake.h b/Jusin154_Team3D/Client/Public/MapElement_Lake.h
new file mode 100644
index 000000000..dc6074044
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/MapElement_Lake.h
@@ -0,0 +1,73 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "MapElement.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+NS_END
+
+NS_BEGIN(Client)
+
+class CMapElement_Lake final : public CMapElement
+{
+public:
+ typedef struct tagMapObejct_Lake_Desc : public MAPELEMENT_DESC
+ {
+ vector<_wstring> SurfaceModelPrototypeTags;
+ }MAPOBJECT_LAKE_DESC;
+
+private:
+ CMapElement_Lake(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CMapElement_Lake(const CMapElement_Lake& rhs);
+ virtual ~CMapElement_Lake() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+ virtual HRESULT Render() override;
+
+private:
+ CTexture* m_pNormalTextureCom = { nullptr };
+ CTexture* m_pNormalLargeTextureCom = { nullptr };
+ CTexture* m_pNormalSubTextureCom = { nullptr };
+ CTexture* m_pCausticsTextureCom = { nullptr };
+ CTexture* m_pNoiseTextureCom = { nullptr };
+ CTexture* m_pCubeMapTextureCom = { nullptr };
+ CTexture* m_pRefractionTextureCom = { nullptr };
+
+ _float m_fRefractionStrength = { 0.18f };
+ _float m_fRefractionPow = { 10.f };
+ _float m_fTimeAcc = {};
+ _float m_fUVValue = { 0.01f };
+ _float m_fUVValue1 = { 30.f };
+ _float m_fUVValue2 = { 20.f };
+ _float m_fUVValue3 = { 10.f };
+
+ _float m_fSpecularIntensity = { 0.6f };
+
+ _float m_fUVSpeed1 = { -0.1f };
+ _float m_fUVSpeed2 = { 0.05f };
+ _float m_fUVSpeed3 = { 0.01f };
+
+ _float4 m_vRefractionColor = {};
+ _float4 m_vSurfaceColor = {};
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Bind_ShaderResources() override;
+
+public:
+ static CMapElement_Lake* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Terrain.h b/Jusin154_Team3D/Client/Public/Terrain.h
index 53e5a9b78..dafda65cc 100644
--- a/Jusin154_Team3D/Client/Public/Terrain.h
+++ b/Jusin154_Team3D/Client/Public/Terrain.h
@@ -17,10 +17,13 @@ class CTerrain final : public CGameObject
typedef struct TerrainDesc
{
_float3 vPosition;
+ _wstring strVIBufferTag;
_wstring strDiffuseTextureTag;
_wstring strNormalTextureTag;
_wstring strMROTextureTag;
_wstring strAlphaMapTextureTag;
+ _wstring strRigidBody_MeshName;
+ _wstring strRigidBody_ComponentTag;
}TERRAIN_DESC;
private:
CTerrain(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Client/Public/Unified.h b/Jusin154_Team3D/Client/Public/Unified.h
new file mode 100644
index 000000000..44d1e0bed
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Unified.h
@@ -0,0 +1,49 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "GameObject.h"
+
+NS_BEGIN(Engine)
+class CModel;
+class CShader;
+NS_END
+
+NS_BEGIN(Client)
+
+class CUnified final : public CGameObject
+{
+private:
+ CUnified(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CUnified(const CUnified& rhs);
+ virtual ~CUnified() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+ virtual HRESULT Render() override;
+
+private:
+ _bool m_isVisible = { true };
+ _uint m_iNumMesh = {};
+ _float m_fUsingSurfaceParams = {};
+
+ CShader* m_pShaderCom = { nullptr };
+ CModel* m_pModelCom = { nullptr };
+ _float4 m_vSurfaceColor = {};
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Bind_ShaderResources() override;
+
+public:
+ static CUnified* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hogwart_AlphaMap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hogwart_AlphaMap.bin
new file mode 100644
index 000000000..12b3c5bdb
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hogwart_AlphaMap.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1ede88dfe51b7df9ba8c5b31cdac05271b4563a0706b9c61a8dc8910cc26c991
+size 83886080
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hogwart_HeightMap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hogwart_HeightMap.bin
new file mode 100644
index 000000000..52a4d9956
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hogwart_HeightMap.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:96f348613e941630ef113e523868c7e9fe043b3c24c1d0a66b428fddbb3663ad
+size 1315332
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Lake/T_MudSmallRocks_A_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Lake/T_MudSmallRocks_A_D.dds
new file mode 100644
index 000000000..650dc26b6
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Lake/T_MudSmallRocks_A_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD1.bin
new file mode 100644
index 000000000..f6447daeb
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD1.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5c5d9776339e771c2a8bb927936bfeb3cf10704e1fd1692b5db1646e93bee489
+size 297014
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD1.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD1.fbx
new file mode 100644
index 000000000..29afd5998
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD1.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a170f22f063a5b4cf843b24a742994e35a88eca5bf865bfd6ab2ff9dfa9196ed
+size 160940
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD1_0.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD1_0.dds
new file mode 100644
index 000000000..b806e826e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD1_0.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD1_1.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD1_1.dds
new file mode 100644
index 000000000..209d36301
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD1_1.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD1_2.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD1_2.dds
new file mode 100644
index 000000000..bd0691fbb
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD1_2.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD2.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD2.fbx
new file mode 100644
index 000000000..afd1cf340
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD2.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f34d3d58d7a8b9a885ebe06e2f241ff3183dc961684e8fdf976dcc3d5da7acaf
+size 35932
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD2_0.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD2_0.dds
new file mode 100644
index 000000000..0cf447a28
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD2_0.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD2_1.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD2_1.dds
new file mode 100644
index 000000000..389d00cf0
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD2_1.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD2_2.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD2_2.dds
new file mode 100644
index 000000000..661534744
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Land/South_Hogwart/South_Hogwart_Land_LOD2_2.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD/SM_HW_HogwartsShell_B.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD/SM_HW_HogwartsShell_B.bin
new file mode 100644
index 000000000..cb6cd1efe
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD/SM_HW_HogwartsShell_B.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9403daa9657c34da1cfcb36e36be97b151d837b9dd94c5a3771661cb0c28c000
+size 37000515
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD/SM_HW_HogwartsShell_B_Lod1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD/SM_HW_HogwartsShell_B_Lod1.bin
new file mode 100644
index 000000000..8265f3d08
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD/SM_HW_HogwartsShell_B_Lod1.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f1ade3b8a4eb2ec0abff78b5316e6169a4e70d74f716ebc7b397cd8c275df50b
+size 18803277
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD/SM_HW_HogwartsShell_B_Lod2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD/SM_HW_HogwartsShell_B_Lod2.bin
new file mode 100644
index 000000000..375c92c87
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD/SM_HW_HogwartsShell_B_Lod2.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cddd2bac0007f21d5a99b0eef7b2c2372d9492222af6c0c79a604de4576440e4
+size 9289293
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD/SM_HW_HogwartsShell_B_Lod3.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD/SM_HW_HogwartsShell_B_Lod3.bin
new file mode 100644
index 000000000..041448fd5
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD/SM_HW_HogwartsShell_B_Lod3.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3d72766a540f39f2478ff92225ab3885cdf7a5a0be76e2913ab700aa34eaf73e
+size 4506593
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD/SM_HW_HogwartsShell_B_Lod4.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD/SM_HW_HogwartsShell_B_Lod4.bin
new file mode 100644
index 000000000..87334e03f
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD/SM_HW_HogwartsShell_B_Lod4.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2bcbacc01ef6e4f32c5b6e3e874e3fa8b3d426d49b2acce97b547f77a0b159df
+size 2217541
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AULOD/SM_LandscapeStreamingProxy_0_LOD1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AULOD/SM_LandscapeStreamingProxy_0_LOD1.bin
new file mode 100644
index 000000000..178a41fad
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AULOD/SM_LandscapeStreamingProxy_0_LOD1.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:189a7c3451d418ad0cf9e6674856d823549af813164cc2bb30b1fe7cd6ff6671
+size 255778
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AVLOD/SM_LandscapeStreamingProxy_0_LOD1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AVLOD/SM_LandscapeStreamingProxy_0_LOD1.bin
new file mode 100644
index 000000000..ab32fe2f3
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AVLOD/SM_LandscapeStreamingProxy_0_LOD1.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:adbbded805156201af1f54727e2d8f666e2a0d33aa3e8c2cf8427082569af201
+size 157766
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AYLOD/SM_LandscapeStreamingProxy_0_LOD1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AYLOD/SM_LandscapeStreamingProxy_0_LOD1.bin
new file mode 100644
index 000000000..d8b77c366
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AYLOD/SM_LandscapeStreamingProxy_0_LOD1.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:de1224b39ec07a9ac7d611e0956f8966bfc4b71428a56c1f6bd11a1aae014fd8
+size 143054
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AZLOD/SM_LandscapeStreamingProxy_0_LOD1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AZLOD/SM_LandscapeStreamingProxy_0_LOD1.bin
new file mode 100644
index 000000000..5c5555dcb
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AZLOD/SM_LandscapeStreamingProxy_0_LOD1.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5e7f78f5dcefe9bbce29a2940ef7029cdb3677ac61a1635382236c26c404a227
+size 233822
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BCLOD/SM_LandscapeStreamingProxy_0_LOD1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BCLOD/SM_LandscapeStreamingProxy_0_LOD1.bin
new file mode 100644
index 000000000..a3648aaa5
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BCLOD/SM_LandscapeStreamingProxy_0_LOD1.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:16ad6dadc2f3b7fa74e93ba68ffc4901e0cb28423bf2f0924d4c28806316b718
+size 297334
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/Terrain_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/Terrain_D.dds
new file mode 100644
index 000000000..c645b3637
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/Terrain_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/Terrain_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/Terrain_MRO.dds
new file mode 100644
index 000000000..913507c39
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/Terrain_MRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/BaseFlattenNormalMap.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/BaseFlattenNormalMap.png
new file mode 100644
index 000000000..d8e1fd944
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/BaseFlattenNormalMap.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_DefaultGrey_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_DefaultGrey_D.dds
new file mode 100644
index 000000000..0221b7639
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_DefaultGrey_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Eye_IrisTint_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Eye_IrisTint_MSK.dds
new file mode 100644
index 000000000..ab2620bf1
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Eye_IrisTint_MSK.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Body_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Body_D.png
new file mode 100644
index 000000000..a6bedaa46
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Body_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Body_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Body_SRXO.dds
new file mode 100644
index 000000000..f24214e07
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Body_SRXO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Head_Corruption_A.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Head_Corruption_A.dds
new file mode 100644
index 000000000..327b31454
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Head_Corruption_A.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Leather_Corruption_A.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Leather_Corruption_A.dds
new file mode 100644
index 000000000..ea101a906
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Leather_Corruption_A.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Leather_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Leather_D.dds
new file mode 100644
index 000000000..d78e55f7f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Leather_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Leather_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Leather_MRO.dds
new file mode 100644
index 000000000..d4f494e3c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Leather_MRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Leather_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Leather_N.dds
new file mode 100644
index 000000000..51f237881
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Leather_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Metal_Corruption_A.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Metal_Corruption_A.dds
new file mode 100644
index 000000000..f7fac9cd4
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Metal_Corruption_A.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Metal_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Metal_D.dds
new file mode 100644
index 000000000..e5284c9cb
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Metal_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Metal_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Metal_E.dds
new file mode 100644
index 000000000..f98176eed
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Metal_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Metal_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Metal_MRO.dds
new file mode 100644
index 000000000..6693df1d7
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Metal_MRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Metal_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Metal_N.dds
new file mode 100644
index 000000000..553f93574
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_ArmoredTroll_Metal_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_CMB_Mountain1_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_CMB_Mountain1_N.dds
new file mode 100644
index 000000000..2971ab538
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_CMB_Mountain1_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_Mountain01_Eye_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_Mountain01_Eye_D.dds
new file mode 100644
index 000000000..54e3810dc
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_Mountain01_Eye_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_Mountain01_Head_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_Mountain01_Head_D.png
new file mode 100644
index 000000000..9ed84c8fd
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_Mountain01_Head_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_Mountain01_Head_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_Mountain01_Head_N.dds
new file mode 100644
index 000000000..04d00d29b
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_Mountain01_Head_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_Mountain01_Head_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_Mountain01_Head_SRXO.dds
new file mode 100644
index 000000000..95e1afaea
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_Mountain01_Head_SRXO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_Teeth_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_Teeth_D.dds
new file mode 100644
index 000000000..70f952269
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_Teeth_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_Teeth_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_Teeth_N.dds
new file mode 100644
index 000000000..c76feb9ac
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_Teeth_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_Teeth_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_Teeth_SRXO.dds
new file mode 100644
index 000000000..80f5da4e4
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/T_Troll_Teeth_SRXO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/VFX_T_SkinBurn_Alpha_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/VFX_T_SkinBurn_Alpha_D.dds
new file mode 100644
index 000000000..9a7d13671
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/VFX_T_SkinBurn_Alpha_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/VFX_T_SkinBurn_Emiss_BPF_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/VFX_T_SkinBurn_Emiss_BPF_D.dds
new file mode 100644
index 000000000..4136a9832
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/VFX_T_SkinBurn_Emiss_BPF_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/troll.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/troll.fbx
new file mode 100644
index 000000000..4ed5bba04
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/troll.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:33783d796335f0fdefff1f06f34cec423975b05d8147e4316902ac73d9dcf200
+size 135867852
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/troll.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/troll.xml
new file mode 100644
index 000000000..6d1d8c574
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/SubTroll_Weapon/troll.xml
@@ -0,0 +1,205 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl
index 4d1c3d973..078237d33 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl
@@ -36,6 +36,7 @@ Texture2D g_EmissiveTexture;
Texture2D g_AmbientTexture;
Texture2D g_AmbientOcclusionTexture;
Texture2D g_UnknownTexture;
+Texture2D g_NoiseTexture;
bool g_bBinded_Texture[AI_TEXTURE_TYPE_MAX * 27];
@@ -60,6 +61,7 @@ float g_fUVSpeed3;
float g_fBloomStrength;
float g_fGlassRatio;
+float g_fSpecularIntensity;
float g_fRefractionStrength;
float g_fRefractionPow;
@@ -524,15 +526,17 @@ PS_OUT PS_LAKE(PS_IN In)
{
PS_OUT Out;
- float2 vUV = float2(In.vTexcoord.x, In.vTexcoord.y + g_fTime * g_fUVSpeed1) * g_fNormalValue1;
- float2 vUVLarge = float2(In.vTexcoord.x, In.vTexcoord.y - g_fTime * g_fUVSpeed2) * g_fNormalValue2;
+ float4 vMtrlReflaction = g_DiffuseTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord * 30.f);
+
+ float2 vUV = float2(In.vTexcoord.x, In.vTexcoord.y + sin(g_fTime * g_fUVSpeed1)) * g_fNormalValue1;
+ float2 vUVLarge = float2(In.vTexcoord.x, In.vTexcoord.y - (g_fTime * g_fUVSpeed2)) * g_fNormalValue2;
float2 vUVSub = float2(In.vTexcoord.x - g_fTime * g_fUVSpeed3, In.vTexcoord.y - g_fTime * g_fUVSpeed3) * g_fNormalValue3;
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, AnisoTropy_BLUR_Sampler, vUV);
float3 vNormalLarge = DecodeNormalFromRG(g_NormalLargeTexture, AnisoTropy_BLUR_Sampler, vUVLarge);
float3 vNormalSub = DecodeNormalFromRG(g_NormalSubTexture, AnisoTropy_BLUR_Sampler, vUVSub);
- vector vMtrlDiffuse = g_vDiffuseColor;
+ vector vDiffuse = g_vDiffuseColor;
vector vSurface = g_vSurfaceColor;
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
@@ -541,14 +545,11 @@ PS_OUT PS_LAKE(PS_IN In)
float3 vReflaction = reflect(normalize(In.vWorldPos.xyz - g_vCamPosition.xyz), vNormal);
- float fReflactionValue = dot(vReflaction, float3(0.f, 1.f, 0.f));
+ float4 vMtrlDiffuse = g_CubeTexture.Sample(DefaultSampler, vReflaction);
- vMtrlDiffuse = g_CubeTexture.Sample(DefaultSampler, vReflaction);
-
+ float fFresnelScala = g_fRefractionStrength + (1.f - g_fRefractionStrength) * pow(1.f - max(0.f, dot(normalize(g_vCamPosition.xyz - In.vWorldPos.xyz), vNormal)), g_fRefractionPow);
- float fFresnelScala = g_fRefractionStrength + (1.f - g_fRefractionStrength) * pow(1.f - dot(normalize(g_vCamPosition.xyz - In.vWorldPos.xyz), vNormal), g_fRefractionPow);
-
- Out.vAlbedo = float4(vMtrlDiffuse.xyz, 1.f) * fFresnelScala + g_vDiffuseColor * (1.f - fFresnelScala);
+ Out.vAlbedo = float4(vMtrlDiffuse.xyz, 1.f) * fFresnelScala * g_fSpecularIntensity + vMtrlReflaction * g_vDiffuseColor * (1.f - fFresnelScala);
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
@@ -560,6 +561,68 @@ PS_OUT PS_LAKE(PS_IN In)
return Out;
}
+PS_OUT PS_LAND(PS_IN In)
+{
+ PS_OUT Out;
+
+ float4 vMtrlDiffuse = g_DiffuseTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord * 10.f);
+ float4 vSurface = g_SurfaceParamsTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord * 10.f);
+
+ if (vMtrlDiffuse.a < 0.2f)
+ {
+ discard;
+ }
+
+
+ float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, AnisoTropy_BLUR_Sampler, In.vTexcoord);
+ float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
+
+ float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
+
+ Out.vAlbedo = vMtrlDiffuse;
+ Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
+ float fSurfaceParam = g_fUsingSurfaceParams;
+ if (true == AlmostEqual7(g_fUsingSurfaceParams, 0.f))
+ {
+ fSurfaceParam = 0;
+ }
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
+ fSurfaceParam, // 서페이스 파라미터
+ 1.f);
+ Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
+ Out.vSurface = vSurface;
+
+ return Out;
+}
+
+PS_OUT PS_NONMRO(PS_IN In)
+{
+ PS_OUT Out;
+
+ float4 vMtrlDiffuse = g_DiffuseTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord);
+
+ if (vMtrlDiffuse.a < 0.2f)
+ {
+ discard;
+ }
+
+ float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, AnisoTropy_BLUR_Sampler, In.vTexcoord);
+ float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
+ float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
+
+ Out.vAlbedo = vMtrlDiffuse;
+ Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
+ g_fUsingSurfaceParams, // 서페이스 파라미터
+ 1.f);
+ Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
+ Out.vSurface = g_vSurfaceColor;
+
+ return Out;
+}
+
technique11 MeshTechnique11
{
pass MeshPass // 0
@@ -727,4 +790,24 @@ technique11 MeshTechnique11
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_LAKE();
}
+
+ pass LandPass // 17
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_LAND();
+ }
+
+ pass NonMROPass // 18
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_NONMRO();
+ }
}
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Hogwart_AlphaMap.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Hogwart_AlphaMap.dds
new file mode 100644
index 000000000..be4d27d0a
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Hogwart_AlphaMap.dds differ
diff --git a/Jusin154_Team3D/Editor/Private/AlphaMap.cpp b/Jusin154_Team3D/Editor/Private/AlphaMap.cpp
index 252cd7954..101134c9c 100644
--- a/Jusin154_Team3D/Editor/Private/AlphaMap.cpp
+++ b/Jusin154_Team3D/Editor/Private/AlphaMap.cpp
@@ -121,8 +121,8 @@ void CAlphaMap::Load_ToFile(const _char* pFilePath)
m_pContext->Unmap(m_pTexture2D, 0);
- //if (FAILED(SaveDDSTextureToFile(m_pContext, m_pTexture2D, L"../Bin/Resources/Data/Map/Hogsmeade_AlphaMap.dds")))
- // return;
+ if (FAILED(SaveDDSTextureToFile(m_pContext, m_pTexture2D, L"../Bin/Resources/Data/Map/Hogwart_AlphaMap.dds")))
+ return;
}
HRESULT CAlphaMap::Initialize(_uint iSizeX, _uint iSizeY)
diff --git a/Jusin154_Team3D/Editor/Private/Land.cpp b/Jusin154_Team3D/Editor/Private/Land.cpp
index 67cd59a80..549c77540 100644
--- a/Jusin154_Team3D/Editor/Private/Land.cpp
+++ b/Jusin154_Team3D/Editor/Private/Land.cpp
@@ -9,7 +9,7 @@ CLand::CLand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
}
CLand::CLand(const CLand& rhs)
- : CGameObject(rhs)
+ : CGameObject(rhs), m_fUsingSurfaceParams{rhs.m_fUsingSurfaceParams}
{
}
@@ -19,32 +19,18 @@ void CLand::Priority_Update(_float fTimeDelta)
void CLand::Update(_float fTimeDelta)
{
- //GUI::Begin("Land Debug");
-
- //XMStoreFloat4(&m_vPosition, m_pTransformCom->Get_State(STATE::POSITION));
- //GUI::InputFloat3("LandPos", (_float*)(&m_vPosition));
- //m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&m_vPosition));
-
- //GUI::End();
-
- _float3 vPos = {};
- if (m_pGameInstance->Mouse_Pressing(DIM_LBUTTON))
- {
- if (m_pGameInstance->isPicking(&vPos))
- {
-
- }
- }
-
- GUI::Begin("TEEEEE");
- GUI::InputFloat3("Pos", (_float*)(&vPos));
- GUI::End();
+ if (m_bEdit)
+ Describe_Entity();
}
void CLand::Late_Update(_float fTimeDelta)
{
- _float4* vPos = (_float4*)(m_pTransformCom->Get_WorldMatrixPtr()->m[3]);
- //m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
+ if(m_pGameInstance->isIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pModelCom->Get_Radius()))
+ m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
+ else
+ {
+ _uint i = 0;
+ }
}
HRESULT CLand::Render()
@@ -57,10 +43,10 @@ HRESULT CLand::Render()
for (_uint i = 0; i < iNumMeshes; i++)
{
- if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
+ if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom)))
return E_FAIL;
- }
- if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) {
+
+ if (FAILED(m_pShaderCom->Begin(17))) {
return E_FAIL;
}
@@ -79,14 +65,16 @@ HRESULT CLand::Initialize_Prototype()
HRESULT CLand::Initialize(void* pArg)
{
+ m_vScale = _float3(1.f, 1.f, 1.f);
+ m_vRotation = _float3(0.f, 0.f, 0.f);
+
if (FAILED(__super::Initialize(pArg)))
return E_FAIL;
if (FAILED(Ready_Components(pArg)))
return E_FAIL;
- //m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(66.f, 18.f, 96.f, 1.f));
- m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f,0.f, 1.f));
+
return S_OK;
@@ -98,8 +86,14 @@ HRESULT CLand::Ready_Components(void* pArg)
return E_FAIL;
}
+ LAND_DESC* pDesc = static_cast(pArg);
+
+ m_bEdit = pDesc->bEdit;
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
+ m_pTransformCom->Set_Scale(pDesc->vScale);
+
/* Com_Model */
- if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_Land"),
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pDesc->strModelComTag,
reinterpret_cast(&m_pModelCom))))
return E_FAIL;
@@ -167,4 +161,30 @@ void CLand::Free()
void CLand::Describe_Entity()
{
+ GUI::Begin("Land Debug");
+
+ XMStoreFloat4(&m_vPosition, m_pTransformCom->Get_State(STATE::POSITION));
+ GUI::DragFloat3("LandPos", (_float*)(&m_vPosition));
+ m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&m_vPosition));
+
+
+ GUI::Text("----- Scale ----");
+ GUI::InputFloat("X##Scale", &m_vScale.x, 0.1f, 1.f);
+ GUI::InputFloat("Y##Scale", &m_vScale.y, 0.1f, 1.f);
+ GUI::InputFloat("Z##Scale", &m_vScale.z, 0.1f, 1.f);
+
+ m_vScale.x = max(0.01f, m_vScale.x);
+ m_vScale.y = max(0.01f, m_vScale.y);
+ m_vScale.z = max(0.01f, m_vScale.z);
+
+ m_pTransformCom->Set_Scale(m_vScale);
+
+ GUI::Text("----- Rotation ----");
+ GUI::InputFloat("X##Rotation", &m_vRotation.x, 10.f, 45.f);
+ GUI::InputFloat("Y##Rotation", &m_vRotation.y, 10.f, 45.f);
+ GUI::InputFloat("Z##Rotation", &m_vRotation.z, 10.f, 45.f);
+
+ m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z));
+
+ GUI::End();
}
diff --git a/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp
index f293b68d5..10d022917 100644
--- a/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp
+++ b/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp
@@ -48,6 +48,9 @@ HRESULT CLevel_MapViewer::Initialize()
if (FAILED(Ready_Layer_Terrain(TEXT("Layer_Terrain")))) {
return E_FAIL;
}
+ if (FAILED(Ready_Layer_Land(TEXT("Layer_Land")))) {
+ return E_FAIL;
+ }
/*if (FAILED(Ready_Layer_InstanceProp(TEXT("Layer_InstanceProp")))) {
return E_FAIL;
@@ -109,27 +112,24 @@ HRESULT CLevel_MapViewer::Ready_Layer_Background(const _wstring& strLayerTag)
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
return E_FAIL;
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
- return E_FAIL;
-
return S_OK;
}
HRESULT CLevel_MapViewer::Ready_Layer_Terrain(const _wstring& strLayerTag)
{
CTerrain::TERRAIN_DESC Desc = {};
- /* Hogsmeade */
- Desc.isEdit = false;
- Desc.iAlphaSizeX = 2048;
- Desc.iAlphaSizeY = 2048;
- Desc.vPosition = _float3(-194, 18.5f, -153.f);
- Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade");
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
- return E_FAIL;
+ /* Hogsmeade */
+ //Desc.isEdit = false;
+ //Desc.iAlphaSizeX = 2048;
+ //Desc.iAlphaSizeY = 2048;
+ //Desc.vPosition = _float3(-194, 18.5f, -153.f);
+ //Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade");
+ //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
+ // return E_FAIL;
/* Hogwart */
- Desc.isEdit = false;
+ Desc.isEdit = true;
Desc.iAlphaSizeX = 2048;
Desc.iAlphaSizeY = 2560;
Desc.vPosition = _float3(-451.f, 18.5f, -791.f);
@@ -138,22 +138,22 @@ HRESULT CLevel_MapViewer::Ready_Layer_Terrain(const _wstring& strLayerTag)
return E_FAIL;
/* North_Hogwart */
- Desc.isEdit = false;
- Desc.iAlphaSizeX = 1536;
- Desc.iAlphaSizeY = 1024;
- Desc.vPosition = _float3(-577.f, 18.5f, -153.f);
- Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_North_Hogwart");
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
- return E_FAIL;
+ //Desc.isEdit = false;
+ //Desc.iAlphaSizeX = 1536;
+ //Desc.iAlphaSizeY = 1024;
+ //Desc.vPosition = _float3(-577.f, 18.5f, -153.f);
+ //Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_North_Hogwart");
+ //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
+ // return E_FAIL;
/* South_Hogwart */
- Desc.isEdit = true;
+ /*Desc.isEdit = true;
Desc.iAlphaSizeX = 2048;
Desc.iAlphaSizeY = 1, 536;
Desc.vPosition = _float3(61.f, 18.5f, -535.f);
Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_South_Hogwart");
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
- return E_FAIL;
+ return E_FAIL;*/
CMapElement_Lake::MAPOBJECT_LAKE_DESC Lake_Desc = {};
@@ -168,6 +168,59 @@ HRESULT CLevel_MapViewer::Ready_Layer_Terrain(const _wstring& strLayerTag)
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Lake_Desc)))
return E_FAIL;
+
+ return S_OK;
+}
+
+HRESULT CLevel_MapViewer::Ready_Layer_Land(const _wstring& strLayerTag)
+{
+ CLand::LAND_DESC Land_Desc = {};
+
+ /* South_Hogwart_Land */
+ Land_Desc.bEdit = false;
+ Land_Desc.vPosition = _float3(290.5f, 59.5f, -347.f);
+ Land_Desc.vScale = _float3(1.f, 1.25f, 1.f);
+ Land_Desc.strModelComTag = L"Prototype_Component_South_Hogwart_Land_LOD1";
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Land_Desc)))
+ return E_FAIL;
+
+ /* North_Hogwart_Land */
+ Land_Desc.bEdit = false;
+ Land_Desc.vPosition = _float3(-370.f, -37.5f, -21.4f);
+ Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
+ Land_Desc.strModelComTag = L"Prototype_Component_North_Hogwart_Land_LOD1";
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Land_Desc)))
+ return E_FAIL;
+
+ /* North_Hogwart2_Land */
+ Land_Desc.bEdit = false;
+ Land_Desc.vPosition = _float3(-378.f, -17.5f, 285.6f);
+ Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
+ Land_Desc.strModelComTag = L"Prototype_Component_North_Hogwart2_Land_LOD1";
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Land_Desc)))
+ return E_FAIL;
+
+ /* West_Hogwart_Land */
+ Land_Desc.bEdit = false;
+ Land_Desc.vPosition = _float3(-653.f, 20.f, -327.4f);
+ Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
+ Land_Desc.strModelComTag = L"Prototype_Component_West_Hogwart_Land_LOD1";
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Land_Desc)))
+ return E_FAIL;
+
+ /* East_Hogsmeade_Land */
+ Land_Desc.bEdit = false;
+ Land_Desc.vPosition = _float3(436.f, 55.f, 60.3f);
+ Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
+ Land_Desc.strModelComTag = L"Prototype_Component_East_Hogsmeade_Land_LOD1";
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Land_Desc)))
+ return E_FAIL;
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp
index b0150972c..3fe43dad3 100644
--- a/Jusin154_Team3D/Editor/Private/Loader.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader.cpp
@@ -2439,6 +2439,11 @@ HRESULT CLoader::Loading_For_MapViewer()
return E_FAIL;
}
+ /* Lake_Cube_D */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Lake_Refraction"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Models/Lake/T_MudSmallRocks_A_D.dds"), 0)))) {
+ return E_FAIL;
+ }
m_strMessage = TEXT("모델를(을) 로딩 중 입니다.");
@@ -2447,11 +2452,37 @@ HRESULT CLoader::Loading_For_MapViewer()
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.fbx", XMMatrixIdentity()))))
return E_FAIL;
+#pragma region MAP_LANDS
/* For.Prototype_Component_Hogsmead_Land */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_Land"),
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Land/Hogsmead_Land.fbx", XMMatrixIdentity()))))
return E_FAIL;
+ /* For.Prototype_Component_South_Hogwart_Land_LOD1 */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_South_Hogwart_Land_LOD1"),
+ CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BCLOD/SM_LandscapeStreamingProxy_0_LOD1.fbx"))))
+ return E_FAIL;
+
+ /* For.Prototype_Component_North_Hogwart_Land_LOD1 */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart_Land_LOD1"),
+ CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_AVLOD/SM_LandscapeStreamingProxy_0_LOD1.fbx"))))
+ return E_FAIL;
+
+ /* For.Prototype_Component_North_Hogwart2_Land_LOD1 */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart2_Land_LOD1"),
+ CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_AULOD/SM_LandscapeStreamingProxy_0_LOD1.fbx"))))
+ return E_FAIL;
+
+ /* For.Prototype_Component_West_Hogwart_Land_LOD1 */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_West_Hogwart_Land_LOD1"),
+ CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_AZLOD/SM_LandscapeStreamingProxy_0_LOD1.fbx"))))
+ return E_FAIL;
+
+ /* For.Prototype_Component_East_Hogwart_Land_LOD1 */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_East_Hogsmeade_Land_LOD1"),
+ CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_AYLOD/SM_LandscapeStreamingProxy_0_LOD1.fbx"))))
+ return E_FAIL;
+
/* For.Prototype_Component_Hogwart_Lake */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogwart_Lake"),
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Lake/SM_Lake_A_Collision_Deep.fbx", XMMatrixIdentity()))))
@@ -2462,6 +2493,10 @@ HRESULT CLoader::Loading_For_MapViewer()
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Lake/SM_Lake_A_Collision_Shallow.fbx", XMMatrixIdentity()))))
return E_FAIL;
+#pragma endregion
+
+
+
vector<_wstring> ModelPrototypeTags = {};
vector ModelPrototypePath = {};
diff --git a/Jusin154_Team3D/Editor/Private/MapElement_Lake.cpp b/Jusin154_Team3D/Editor/Private/MapElement_Lake.cpp
index 17c90c665..c09ac0614 100644
--- a/Jusin154_Team3D/Editor/Private/MapElement_Lake.cpp
+++ b/Jusin154_Team3D/Editor/Private/MapElement_Lake.cpp
@@ -50,8 +50,8 @@ HRESULT CMapElement_Lake::Initialize(void* pArg)
m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z));
#endif // _DEBUG
- m_vRefractionColor = _float4(0.29f, 0.375f, 0.4f, 1.f);
- m_vSurfaceColor = _float4(0.f, 1.f, 1.f, 1.f);
+ m_vRefractionColor = _float4(1.f, 1.f, 1.f, 1.f);
+ m_vSurfaceColor = _float4(1.f, 1.f, 1.f, 1.f);
return S_OK;
}
@@ -66,7 +66,7 @@ void CMapElement_Lake::Priority_Update(_float fTimeDelta)
void CMapElement_Lake::Update(_float fTimeDelta)
{
m_fTimeAcc += fTimeDelta * m_fUVValue;
- //Describe_Entity();
+ Describe_Entity();
}
void CMapElement_Lake::Late_Update(_float fTimeDelta)
@@ -144,6 +144,10 @@ HRESULT CMapElement_Lake::Ready_Components(void* pArg)
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Lake_Cube_D"),
reinterpret_cast(&m_pCubeMapTextureCom))))
return E_FAIL;
+ /* Com_Texture */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Lake_Refraction"),
+ reinterpret_cast(&m_pRefractionTextureCom))))
+ return E_FAIL;
return S_OK;
}
@@ -194,6 +198,9 @@ HRESULT CMapElement_Lake::Bind_ShaderResources()
if (FAILED(m_pShaderCom->Bind_RawValue("g_fRefractionPow", &m_fRefractionPow, sizeof(_float)))) {
return E_FAIL;
}
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fSpecularIntensity", &m_fSpecularIntensity, sizeof(_float)))) {
+ return E_FAIL;
+ }
@@ -206,6 +213,9 @@ HRESULT CMapElement_Lake::Bind_ShaderResources()
if (FAILED(m_pShaderCom->Bind_RawValue("g_vSurfaceColor", &m_vSurfaceColor, sizeof(_float4)))) {
return E_FAIL;
}
+ if (FAILED(m_pShaderCom->Bind_SRV("g_DiffuseTexture", m_pRefractionTextureCom->Get_SRV(0)))) {
+ return E_FAIL;
+ }
if (FAILED(m_pShaderCom->Bind_SRV("g_NormalTexture", m_pNormalTextureCom->Get_SRV(0)))) {
return E_FAIL;
}
@@ -215,6 +225,9 @@ HRESULT CMapElement_Lake::Bind_ShaderResources()
if (FAILED(m_pShaderCom->Bind_SRV("g_NormalSubTexture", m_pNormalSubTextureCom->Get_SRV(0)))) {
return E_FAIL;
}
+ if (FAILED(m_pShaderCom->Bind_SRV("g_NoiseTexture", m_pNoiseTextureCom->Get_SRV(0)))) {
+ return E_FAIL;
+ }
if (FAILED(m_pCubeMapTextureCom->Bind_ShaderResource(m_pShaderCom, "g_CubeTexture", 0))) {
return E_FAIL;
}
@@ -253,6 +266,7 @@ void CMapElement_Lake::Free()
{
__super::Free();
+ SAFE_RELEASE(m_pRefractionTextureCom);
SAFE_RELEASE(m_pCubeMapTextureCom);
SAFE_RELEASE(m_pNormalTextureCom);
SAFE_RELEASE(m_pNormalLargeTextureCom);
@@ -282,6 +296,8 @@ void CMapElement_Lake::Describe_Entity()
GUI::InputFloat("UV_Speed2", (&m_fUVSpeed2));
GUI::InputFloat("UV_Speed3", (&m_fUVSpeed3));
+ GUI::InputFloat("m_fSpecularIntensity", (&m_fSpecularIntensity));
+
GUI::InputFloat("m_fRefractionStrength", (&m_fRefractionStrength));
GUI::InputFloat("m_fRefractionPow", (&m_fRefractionPow));
diff --git a/Jusin154_Team3D/Editor/Private/Terrain.cpp b/Jusin154_Team3D/Editor/Private/Terrain.cpp
index eb413110b..e9b55ab16 100644
--- a/Jusin154_Team3D/Editor/Private/Terrain.cpp
+++ b/Jusin154_Team3D/Editor/Private/Terrain.cpp
@@ -313,11 +313,11 @@ void CTerrain::Describe_Entity()
GUI::DragFloat("Value", &m_fMaskValue, 0.01f, -1.0f, 1.f);
if (GUI::Button("Save", ImVec2(100.f, 30.f)))
{
- //m_pAlphaMap->Save_ToFile("Hogwart_AlphaMap.bin");
+ m_pAlphaMap->Save_ToFile("Hogwart_AlphaMap.bin");
}
if (GUI::Button("Load", ImVec2(100.f, 30.f)))
{
- //m_pAlphaMap->Load_ToFile("Hogwart_AlphaMap.bin");
+ m_pAlphaMap->Load_ToFile("Hogwart_AlphaMap.bin");
}
@@ -344,9 +344,9 @@ void CTerrain::Describe_Entity()
#pragma region HEIGHT MAP
HRESULT hr = {};
if(GUI::Button("Save HeightMap"))
- hr = m_pVIBufferCom->Save_HeightMap("Hogwart.bin");
+ hr = m_pVIBufferCom->Save_HeightMap("Hogwart_Height.bin");
if(GUI::Button("Load HeightMap"))
- hr = m_pVIBufferCom->Load_HeightMap("Hogwart.bin");
+ hr = m_pVIBufferCom->Load_HeightMap("Hogwart_Height.bin");
#pragma endregion
_float4 vPos = {};
diff --git a/Jusin154_Team3D/Editor/Public/Land.h b/Jusin154_Team3D/Editor/Public/Land.h
index 9edc3490f..b426c2f70 100644
--- a/Jusin154_Team3D/Editor/Public/Land.h
+++ b/Jusin154_Team3D/Editor/Public/Land.h
@@ -12,6 +12,14 @@ NS_BEGIN(Editor)
class CLand final : public CGameObject
{
+public:
+ typedef struct tagLandDesc
+ {
+ _bool bEdit;
+ _float3 vPosition;
+ _float3 vScale;
+ _wstring strModelComTag;
+ }LAND_DESC;
private:
CLand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CLand(const CLand& rhs);
@@ -28,15 +36,20 @@ class CLand final : public CGameObject
private:
_bool m_bSelected = { false };
+ _bool m_bEdit = {false};
_uint m_iMaxLodLevel = {};
_uint m_iLodIndex = {};
+ _float m_fUsingSurfaceParams = {};
+
CShader* m_pShaderCom = { nullptr };
CModel* m_pModelCom = { nullptr };
- _float4 m_vPosition = {};
- _float4x4 m_ProjMatrix = {};
- _float4x4 m_ViewMatrix = {};
+ _float4 m_vPosition = {};
+ _float3 m_vScale = {};
+ _float3 m_vRotation = {};
+
+
private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
diff --git a/Jusin154_Team3D/Editor/Public/Level_MapViewer.h b/Jusin154_Team3D/Editor/Public/Level_MapViewer.h
index 824e00a32..e60633190 100644
--- a/Jusin154_Team3D/Editor/Public/Level_MapViewer.h
+++ b/Jusin154_Team3D/Editor/Public/Level_MapViewer.h
@@ -21,6 +21,7 @@ class CLevel_MapViewer final : public CLevel
HRESULT Ready_Layer_Camera(const _wstring& strLayerTag);
HRESULT Ready_Layer_Background(const _wstring& strLayerTag);
HRESULT Ready_Layer_Terrain(const _wstring& strLayerTag);
+ HRESULT Ready_Layer_Land(const _wstring& strLayerTag);
HRESULT Ready_Layer_InstanceProp(const _wstring& strLayerTag);
HRESULT Ready_Layer_BuildingContainer(const _wstring& strLayerTag);
HRESULT Ready_Layer_Unified(const _wstring& strLayerTag);
diff --git a/Jusin154_Team3D/Editor/Public/MapElement_Lake.h b/Jusin154_Team3D/Editor/Public/MapElement_Lake.h
index b876abd17..dd746a628 100644
--- a/Jusin154_Team3D/Editor/Public/MapElement_Lake.h
+++ b/Jusin154_Team3D/Editor/Public/MapElement_Lake.h
@@ -35,17 +35,20 @@ class CMapElement_Lake final : public CMapElement
CTexture* m_pCausticsTextureCom = { nullptr };
CTexture* m_pNoiseTextureCom = { nullptr };
CTexture* m_pCubeMapTextureCom = { nullptr };
+ CTexture* m_pRefractionTextureCom = { nullptr };
- _float m_fRefractionStrength = {0.1f};
- _float m_fRefractionPow = {5.f};
+ _float m_fRefractionStrength = {0.18f};
+ _float m_fRefractionPow = {10.f};
_float m_fTimeAcc = {};
- _float m_fUVValue = {0.05f};
- _float m_fUVValue1 = {10.f};
+ _float m_fUVValue = {0.02f};
+ _float m_fUVValue1 = {30.f};
_float m_fUVValue2 = {20.f};
_float m_fUVValue3 = {10.f};
- _float m_fUVSpeed1 = { 0.01f };
- _float m_fUVSpeed2 = { 0.001f };
+ _float m_fSpecularIntensity = {0.6f};
+
+ _float m_fUVSpeed1 = { -0.1f };
+ _float m_fUVSpeed2 = { 0.05f };
_float m_fUVSpeed3 = { 0.01f };
_float4 m_vRefractionColor = {};
diff --git a/Jusin154_Team3D/Engine/Private/Material.cpp b/Jusin154_Team3D/Engine/Private/Material.cpp
index 806dee27a..a1db541a5 100644
--- a/Jusin154_Team3D/Engine/Private/Material.cpp
+++ b/Jusin154_Team3D/Engine/Private/Material.cpp
@@ -1,4 +1,4 @@
-#include "pch.h"
+ #include "pch.h"
#include "Material.h"
#include "GameInstance.h"
#include "Shader.h"
@@ -352,6 +352,9 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType
else if (!strcmp(FileType.c_str(), "MROA")){
eTexture = aiTextureType::aiTextureType_METALNESS;
}
+ else if (!strcmp(FileType.c_str(), "MRS")){
+ eTexture = aiTextureType::aiTextureType_METALNESS;
+ }
else if (!strcmp(FileType.c_str(), "SRO")){
eTexture = aiTextureType::aiTextureType_SPECULAR;
}