Merge branch 'Develope' of https://github.com/SpicyGangjeong/Team3D into Develope
This commit is contained in:
@@ -113,6 +113,10 @@ HRESULT CInfoInstance::Load_InteractableElements(const _char* pFileName)
|
||||
{
|
||||
return m_pMapInfo->Load_InteractableElements(pFileName);
|
||||
}
|
||||
HRESULT CInfoInstance::Load_WaterElemet(const _char* pFileName)
|
||||
{
|
||||
return m_pMapInfo->Load_WaterElemet(pFileName);
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
#pragma region SPELL_INFO
|
||||
|
||||
@@ -223,20 +223,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CUnified>(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<CMapElement_Lake>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Lake_Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
// ---------------------------------
|
||||
// >> M A P Configuration <<
|
||||
// 맵 로드할지 안할지 bool 설정
|
||||
@@ -268,9 +255,13 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
}
|
||||
else
|
||||
{
|
||||
///* 전체 맵 */
|
||||
/* 전체 맵 */
|
||||
CInfoInstance::GetInstance()->Load_MapObjects("Hogsmeade_MapContainer_Data");
|
||||
|
||||
/* 물 오브젝트 */
|
||||
if (FAILED(CInfoInstance::GetInstance()->Load_WaterElemet("Element_Water_Info")))
|
||||
return E_FAIL;
|
||||
|
||||
/* 조명 오브젝트 */
|
||||
CInfoInstance::GetInstance()->Load_LightElements("LightElement");
|
||||
|
||||
|
||||
@@ -1940,27 +1940,27 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
/* 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"))))
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../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"))))
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../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"))))
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../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"))))
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../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"))))
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AYLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_Hogwart_Lake */
|
||||
@@ -1973,6 +1973,16 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
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_Hogsmead_NorthLake */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_NorthLake"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/River/NorthLake/HDA_SM_LakeA_Collision_Deep.bin", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_Hogsmead_NorthLakeShallow */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_NorthLakeShallow"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/River/NorthLake/HDA_SM_LakeA_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"),
|
||||
CVIBuffer_Box::Create(m_pDevice, m_pContext))))
|
||||
@@ -2276,7 +2286,7 @@ vector<FOLDER_LOAD*>* APIENTRY Deferred_FolderLoad_Main(ID3D11Device* pDevice, I
|
||||
|
||||
_wstring wstrFileName = L"Prototype_GameObject_" + file.path().stem().wstring();
|
||||
|
||||
CModel* pModel = CModel::Create(pDevice, pContext, MODEL::ENVIROMENT, szFilePath);
|
||||
CModel* pModel = CModel::Create(pDevice, pContext, MODEL::ENVIRONMENT, szFilePath);
|
||||
|
||||
_uint iNumMesh = pModel->Get_NumMeshes();
|
||||
|
||||
|
||||
@@ -42,9 +42,24 @@ HRESULT CMapElement_Lake::Initialize(void* pArg)
|
||||
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;
|
||||
|
||||
m_fRadius = pDesc->fRadius;
|
||||
m_fTimeSpeed = pDesc->fTimeSpeed;
|
||||
|
||||
m_fRefractionStrength = pDesc->fRefractionStrength;
|
||||
m_fRefractionPow = pDesc->fRefractionPow;
|
||||
|
||||
m_fUVValue1 = pDesc->fUVValue1;
|
||||
m_fUVValue2 = pDesc->fUVValue2;
|
||||
m_fUVValue3 = pDesc->fUVValue3;
|
||||
|
||||
m_vUVSpeed = pDesc->vUVSpeed;
|
||||
m_vLargeUVSpeed = pDesc->vLargeUVSpeed;
|
||||
m_vSubUVSpeed3 = pDesc->vSubUVSpeed3;
|
||||
|
||||
memcpy(&m_vRefractionColor, &pDesc->vRefractionColor, sizeof(_float4));
|
||||
memcpy(&m_vSurfaceColor, &pDesc->vSurfaceColor, sizeof(_float4));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -54,13 +69,17 @@ void CMapElement_Lake::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CMapElement_Lake::Update(_float fTimeDelta)
|
||||
{
|
||||
m_fTimeAcc += fTimeDelta * m_fUVValue;
|
||||
m_fTimeAcc += fTimeDelta * m_fTimeSpeed;
|
||||
|
||||
if (3600.f <= m_fTimeAcc)
|
||||
m_fTimeAcc = 0.f;
|
||||
//Describe_Entity();
|
||||
}
|
||||
|
||||
void CMapElement_Lake::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
if(m_pGameInstance->isIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_fRadius))
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Lake::Render()
|
||||
@@ -85,6 +104,8 @@ HRESULT CMapElement_Lake::Ready_Components(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
MAPOBJECT_LAKE_DESC* pDesc = static_cast<MAPOBJECT_LAKE_DESC*>(pArg);
|
||||
|
||||
for (_uint i = 0; i < m_iMaxLodLevel + 1; ++i)
|
||||
{
|
||||
CModel* pModel = { nullptr };
|
||||
@@ -95,6 +116,13 @@ HRESULT CMapElement_Lake::Ready_Components(void* pArg)
|
||||
return E_FAIL;
|
||||
|
||||
m_pModelComs.push_back(pModel);
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pDesc->ShallowModelPrototypeTags[i],
|
||||
reinterpret_cast<CComponent**>(&pModel))))
|
||||
return E_FAIL;
|
||||
|
||||
m_pShallowModels.push_back(pModel);
|
||||
}
|
||||
|
||||
/* Com_Shader */
|
||||
@@ -150,7 +178,6 @@ HRESULT CMapElement_Lake::Bind_ShaderResources()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTimeAcc, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -164,13 +191,13 @@ HRESULT CMapElement_Lake::Bind_ShaderResources()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fUVSpeed1", &m_fUVSpeed1, sizeof(_float)))) {
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vUVSpeed1", &m_vUVSpeed, sizeof(_float2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fUVSpeed2", &m_fUVSpeed2, sizeof(_float)))) {
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vUVSpeed2", &m_vLargeUVSpeed, sizeof(_float2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fUVSpeed3", &m_fUVSpeed3, sizeof(_float)))) {
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vUVSpeed3", &m_vSubUVSpeed3, sizeof(_float2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -180,10 +207,6 @@ 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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float3)))) {
|
||||
@@ -204,9 +227,10 @@ HRESULT CMapElement_Lake::Bind_ShaderResources()
|
||||
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)))) {
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_CausticsTexture", m_pCausticsTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_NoiseTexture", m_pNoiseTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -215,6 +239,7 @@ HRESULT CMapElement_Lake::Bind_ShaderResources()
|
||||
}
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -256,8 +281,11 @@ void CMapElement_Lake::Free()
|
||||
SAFE_RELEASE(m_pCausticsTextureCom);
|
||||
SAFE_RELEASE(m_pNoiseTextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
|
||||
for (auto& pModel : m_pModelComs)
|
||||
SAFE_RELEASE(pModel);
|
||||
for (auto& pModel : m_pShallowModels)
|
||||
SAFE_RELEASE(pModel);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include "MapObject_Collision.h"
|
||||
#include "MapElement_Light.h"
|
||||
#include "MapElement_Interactable.h"
|
||||
#include "MapElement_Lake.h"
|
||||
#include "Layer.h"
|
||||
|
||||
CMapInfo::CMapInfo()
|
||||
@@ -312,7 +313,7 @@ HRESULT CMapInfo::Load_LightElements(const _char* pFileName)
|
||||
{
|
||||
tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
string strPath = "../Bin/Resources/Data/Map/" + string(pFileName) + ".xml";
|
||||
string strPath = "../Bin/Resources/Data/Map/Light/" + string(pFileName) + ".xml";
|
||||
|
||||
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||
return E_FAIL;
|
||||
@@ -390,7 +391,7 @@ HRESULT CMapInfo::Load_LightElements(const _char* pFileName)
|
||||
return E_FAIL;
|
||||
}
|
||||
#ifndef 기무리
|
||||
MSG_BOX("Successed to Load File");
|
||||
//MSG_BOX("Successed to Load File");
|
||||
#endif
|
||||
|
||||
return S_OK;
|
||||
@@ -400,7 +401,7 @@ HRESULT CMapInfo::Load_InteractableElements(const _char* pFileName)
|
||||
{
|
||||
tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
string strPath = "../Bin/Resources/Data/Map/" + string(pFileName) + ".xml";
|
||||
string strPath = "../Bin/Resources/Data/Map/Interactable/" + string(pFileName) + ".xml";
|
||||
|
||||
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||
return E_FAIL;
|
||||
@@ -463,6 +464,115 @@ HRESULT CMapInfo::Load_InteractableElements(const _char* pFileName)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapInfo::Load_WaterElemet(const _char* pFileName)
|
||||
{
|
||||
tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
string strPath = "../Bin/Resources/Data/Map/Water/" + string(pFileName) + ".xml";
|
||||
|
||||
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||
return E_FAIL;
|
||||
|
||||
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("MapObjects_Water");
|
||||
|
||||
if (nullptr == root)
|
||||
{
|
||||
MSG_BOX("Failed to Find root");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
|
||||
{
|
||||
CMapElement_Lake::MAPOBJECT_LAKE_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));
|
||||
}
|
||||
for (auto* PrototypeTag = Object->FirstChildElement("ShollowPrototypeTag"); PrototypeTag; PrototypeTag = PrototypeTag->NextSiblingElement("ShollowPrototypeTag"))
|
||||
{
|
||||
strTag = PrototypeTag->GetText();
|
||||
|
||||
Desc.ShallowModelPrototypeTags.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);
|
||||
|
||||
|
||||
auto* Radius = Object->FirstChildElement("Radius");
|
||||
Radius->QueryFloatAttribute("value", &Desc.fRadius);
|
||||
|
||||
auto* TimeSpeed = Object->FirstChildElement("TimeSpeed");
|
||||
TimeSpeed->QueryFloatAttribute("value", &Desc.fTimeSpeed);
|
||||
|
||||
auto* RefractionStrength = Object->FirstChildElement("RefractionStrength");
|
||||
RefractionStrength->QueryFloatAttribute("value", &Desc.fRefractionStrength);
|
||||
|
||||
auto* RefractionPow = Object->FirstChildElement("RefractionPow");
|
||||
RefractionPow->QueryFloatAttribute("value", &Desc.fRefractionPow);
|
||||
|
||||
auto* UVValue1 = Object->FirstChildElement("UVValue1");
|
||||
UVValue1->QueryFloatAttribute("value", &Desc.fUVValue1);
|
||||
|
||||
auto* UVValue2 = Object->FirstChildElement("UVValue2");
|
||||
UVValue2->QueryFloatAttribute("value", &Desc.fUVValue2);
|
||||
|
||||
auto* UVValue3 = Object->FirstChildElement("UVValue3");
|
||||
UVValue3->QueryFloatAttribute("value", &Desc.fUVValue3);
|
||||
|
||||
// float2 값들
|
||||
auto* UVSpeed = Object->FirstChildElement("UVSpeed");
|
||||
UVSpeed->QueryFloatAttribute("x", &Desc.vUVSpeed.x);
|
||||
UVSpeed->QueryFloatAttribute("y", &Desc.vUVSpeed.y);
|
||||
|
||||
auto* LargeUVSpeed = Object->FirstChildElement("LargeUVSpeed");
|
||||
LargeUVSpeed->QueryFloatAttribute("x", &Desc.vLargeUVSpeed.x);
|
||||
LargeUVSpeed->QueryFloatAttribute("y", &Desc.vLargeUVSpeed.y);
|
||||
|
||||
auto* SubUVSpeed3 = Object->FirstChildElement("SubUVSpeed3");
|
||||
SubUVSpeed3->QueryFloatAttribute("x", &Desc.vSubUVSpeed3.x);
|
||||
SubUVSpeed3->QueryFloatAttribute("y", &Desc.vSubUVSpeed3.y);
|
||||
|
||||
// float4 값들
|
||||
auto* RefractionColor = Object->FirstChildElement("RefractionColor");
|
||||
RefractionColor->QueryFloatAttribute("x", &Desc.vRefractionColor.x);
|
||||
RefractionColor->QueryFloatAttribute("y", &Desc.vRefractionColor.y);
|
||||
RefractionColor->QueryFloatAttribute("z", &Desc.vRefractionColor.z);
|
||||
RefractionColor->QueryFloatAttribute("w", &Desc.vRefractionColor.w);
|
||||
|
||||
auto* SurfaceColor = Object->FirstChildElement("SurfaceColor");
|
||||
SurfaceColor->QueryFloatAttribute("x", &Desc.vSurfaceColor.x);
|
||||
SurfaceColor->QueryFloatAttribute("y", &Desc.vSurfaceColor.y);
|
||||
SurfaceColor->QueryFloatAttribute("z", &Desc.vSurfaceColor.z);
|
||||
SurfaceColor->QueryFloatAttribute("w", &Desc.vSurfaceColor.w);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Lake>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Lake"), &Desc)))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapInfo::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
|
||||
{
|
||||
m_pGameInstance = CGameInstance::GetInstance();
|
||||
|
||||
@@ -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, WATER, LAND, NONMRO,SPECTOR_WEAPON, 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,SPECTOR_WEAPON, GLASS_CUBE,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 };
|
||||
|
||||
@@ -46,6 +46,7 @@ DECLARE_SINGLETON(CInfoInstance)
|
||||
HRESULT Load_MapObjects(const _char* pFilePath);
|
||||
HRESULT Load_LightElements(const _char* pFilePath);
|
||||
HRESULT Load_InteractableElements(const _char* pFileName);
|
||||
HRESULT Load_WaterElemet(const _char* pFileName);
|
||||
#pragma endregion
|
||||
#pragma region Spell_INFO
|
||||
HRESULT Load_SpellInfo(const _char* pFilePath);
|
||||
|
||||
@@ -14,7 +14,19 @@ class CMapElement_Lake final : public CMapElement
|
||||
public:
|
||||
typedef struct tagMapObejct_Lake_Desc : public MAPELEMENT_DESC
|
||||
{
|
||||
vector<_wstring> SurfaceModelPrototypeTags;
|
||||
_float fRadius;
|
||||
_float fTimeSpeed;
|
||||
_float fRefractionStrength;
|
||||
_float fRefractionPow;
|
||||
_float fUVValue1;
|
||||
_float fUVValue2;
|
||||
_float fUVValue3;
|
||||
_float2 vUVSpeed;
|
||||
_float2 vLargeUVSpeed;
|
||||
_float2 vSubUVSpeed3;
|
||||
_float4 vRefractionColor;
|
||||
_float4 vSurfaceColor;
|
||||
vector<_wstring> ShallowModelPrototypeTags;
|
||||
}MAPOBJECT_LAKE_DESC;
|
||||
|
||||
private:
|
||||
@@ -37,23 +49,25 @@ class CMapElement_Lake final : public CMapElement
|
||||
CTexture* m_pCubeMapTextureCom = { nullptr };
|
||||
CTexture* m_pRefractionTextureCom = { nullptr };
|
||||
|
||||
_float m_fRadius = {};
|
||||
|
||||
_float m_fRefractionStrength = { 0.18f };
|
||||
_float m_fRefractionPow = { 10.f };
|
||||
_float m_fTimeAcc = {};
|
||||
_float m_fUVValue = { 0.01f };
|
||||
_float m_fTimeSpeed = { 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 };
|
||||
_float2 m_vUVSpeed = {};
|
||||
_float2 m_vLargeUVSpeed = {};
|
||||
_float2 m_vSubUVSpeed3 = {};
|
||||
|
||||
_float4 m_vRefractionColor = {};
|
||||
_float4 m_vSurfaceColor = {};
|
||||
|
||||
vector<CModel*> m_pShallowModels = {};
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
@@ -24,6 +24,7 @@ class CMapInfo final : public CBase
|
||||
HRESULT Load_MapCollisionObjects(tinyxml2::XMLElement* Container, class CMapContainer* pContainerObject);
|
||||
HRESULT Load_LightElements(const _char* pFileName);
|
||||
HRESULT Load_InteractableElements(const _char* pFileName);
|
||||
HRESULT Load_WaterElemet(const _char* pFileName);
|
||||
|
||||
private:
|
||||
CGameInstance* m_pGameInstance = { nullptr };
|
||||
|
||||
Reference in New Issue
Block a user