Merge pull request #174 from SpicyGangjeong/MapTool

Map tool
This commit is contained in:
JinhoBa
2025-11-20 22:04:59 +09:00
committed by GitHub
20 changed files with 247 additions and 180 deletions
@@ -119,7 +119,7 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
float3 vF0 = float3(0.04f, 0.04f, 0.04f);
float fMetallic = 0.f;
float fRoughness = 0.5f;
float fRoughness = 0.f;
float fOcclusion = 1.f;
float fAttenuation = 1.f;
@@ -146,12 +146,12 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
fOcclusion = vSRO.b;
}
float fDiffuseAOStrength = lerp(0.3f, 1.f, fOcclusion);
float fDiffuseAOStrength = lerp(0.3f, 5.f, fOcclusion);
PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0);
PBR_Out.vShade *= fDiffuseAOStrength;
saturate(PBR_Out.vShade);
Out.vShade = float4(PBR_Out.vShade, 1.f);
Out.vSpecular = float4(PBR_Out.vSpecular, 1.f);
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

@@ -119,7 +119,7 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
float3 vF0 = float3(0.04f, 0.04f, 0.04f);
float fMetallic = 0.f;
float fRoughness = 0.5f;
float fRoughness = 0.f;
float fOcclusion = 1.f;
float fAttenuation = 1.f;
@@ -146,12 +146,12 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
fOcclusion = vSRO.b;
}
float fDiffuseAOStrength = lerp(0.3f, 1.f, fOcclusion);
float fDiffuseAOStrength = lerp(0.3f, 5.f, fOcclusion);
PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0);
PBR_Out.vShade *= fDiffuseAOStrength;
saturate(PBR_Out.vShade);
Out.vShade = float4(PBR_Out.vShade, 1.f);
Out.vSpecular = float4(PBR_Out.vSpecular, 1.f);
+47 -48
View File
@@ -1137,8 +1137,6 @@ HRESULT CLoader::MapFolderLoad(const _char* pDirectoryPath, const _char* pFileEx
return S_OK;
}
HRESULT CLoader::Loading_For_ObjectViewer()
{
m_strMessage = TEXT("Texture Loading..");
@@ -1352,187 +1350,188 @@ HRESULT CLoader::Loading_For_MapViewer()
vector<filesystem::path> ModelPrototypePath = {};
#pragma region HOGSMEADE
///* Terrain*/
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\Terrain",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\Terrain",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Terrain",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Terrain",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
///* TScrolls*/
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TScrolls\\Meshes",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TScrolls\\Meshes",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TScrolls\\Collisions",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TScrolls\\Collisions",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
///* 3BroomStick*/
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Meshes",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Meshes",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Collision",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Collision",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Meshes\\3Broom_Kit",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Meshes\\3Broom_Kit",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
///* Ollivanders*/
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Ollivanders\\Meshes",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Ollivanders\\Meshes",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Ollivanders\\Collision",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Ollivanders\\Collision",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
///* Gatehouse*/
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Gatehouse\\Meshes",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Gatehouse\\Meshes",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
///* BLDG_QuidditchShop */
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_QuidditchShop\\Meshes",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_QuidditchShop\\Meshes",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_QuidditchShop\\Collision",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_QuidditchShop\\Collision",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
///* BLDG_HogsheadInn */
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_HogsheadInn\\Meshes",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_HogsheadInn\\Meshes",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_HogsheadInn\\Collision",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_HogsheadInn\\Collision",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
///* BLDG_Honeydukes */
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Honeydukes\\Meshes",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Honeydukes\\Meshes",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Honeydukes\\Collision",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Honeydukes\\Collision",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
///* BLDG_OwlPost */
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_OwlPost\\Meshes",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_OwlPost\\Meshes",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_OwlPost\\Collision",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_OwlPost\\Collision",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
///* BLDG_TeaShop */
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TeaShop\\Meshes",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TeaShop\\Meshes",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TeaShop\\Collision",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TeaShop\\Collision",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
///* BLDG_Zonkos */
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Zonkos\\Meshes",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Zonkos\\Meshes",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Zonkos\\Collision",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Zonkos\\Collision",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
///* BLDG_DB_GR */
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_DB_GR\\Meshes",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_DB_GR\\Meshes",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_DB_GR\\Collision",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_DB_GR\\Collision",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
///* BLDG_Potions */
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Potions\\Meshes",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Potions\\Meshes",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Potions\\Collisions",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Potions\\Collisions",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
///* BLDG_Salon */
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Salon\\Meshes",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Salon\\Meshes",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Salon\\Collision",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Salon\\Collision",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
///* Hengist_Tree */
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Vegetation\\Hengist_Tree",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Vegetation\\Hengist_Tree",
// ".bin", true, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\Vegetation",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\Vegetation",
// ".bin", true, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
///* GEN A*/
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_A\\Meshes",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_A\\Meshes",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_A\\Collision",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_A\\Collision",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
///* GEN B*/
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_B\\Meshes",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_B\\Meshes",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_B\\Collision",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_B\\Collision",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
///* GEN C*/
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_C\\Meshes",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_C\\Meshes",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_C\\Collision",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_C\\Collision",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
///* GEN E*/
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_E\\Meshes",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_E\\Meshes",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_E\\Collision",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_E\\Collision",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
///* GEN F*/
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_F\\Meshes",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_F\\Meshes",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_F\\Collision",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_F\\Collision",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
///* GEN G*/
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_G\\Meshes",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_G\\Meshes",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_G\\Collision",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_G\\Collision",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
///* GEN H*/
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_H\\Meshes",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_H\\Meshes",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_H\\Collision",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_H\\Collision",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
///* GEN J*/
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_J\\Meshes",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_J\\Meshes",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
//if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_J\\Collision",
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_J\\Collision",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
+6 -1
View File
@@ -69,7 +69,12 @@ HRESULT CMapObject::Initialize_Prototype()
HRESULT CMapObject::Initialize(void* pArg)
{
if (FAILED(__super::Initialize(pArg)))
MAPOBJECT_LOD_DESC* pDesc = static_cast<MAPOBJECT_LOD_DESC*>(pArg);
PARTOBJECT_DESC Desc = {};
Desc.pParentTransform = pDesc->pParentTransform;
if (FAILED(__super::Initialize(&Desc)))
return E_FAIL;
#ifdef _DEBUG
@@ -30,6 +30,7 @@ HRESULT CMapObject_LOD::Initialize(void* pArg)
{
MAPOBJECT_LOD_DESC* pDesc = static_cast<MAPOBJECT_LOD_DESC*>(pArg);
//m_Type = static_cast<MAPOBJECT_RENDER_TYPE>(pDesc->iRenderType);
m_iMaxLodLevel = pDesc->iMaxLodLevel;
for (_uint i = 0; i < m_iMaxLodLevel + 1; i++)
@@ -55,15 +56,7 @@ HRESULT CMapObject_LOD::Initialize(void* pArg)
m_vScale = pDesc->vScale;
m_vRotation = pDesc->vRotation;
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vPosition), 1.f));
m_pTransformCom->Set_Scale(m_vScale);
m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z));
XMStoreFloat4x4(&m_CombinedWorldMatrix, m_pTransformCom->Get_XMWorldMatrix() * m_pParentTransformCom->Get_XMWorldMatrix());
_float3 vOffset = m_pModelComs[0]->Get_RadiusOffset();
_matrix ColliderMatrix = XMMatrixTranslation(vOffset.x, vOffset.y, vOffset.z) * XMLoadFloat4x4(&m_CombinedWorldMatrix);
XMStoreFloat4(&m_vExtentPosition, ColliderMatrix.r[3]);
@@ -87,17 +80,27 @@ void CMapObject_LOD::Update(_float fTimeDelta)
{
//if (0 == m_iLodIndex)
// m_bSelected = true;
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vPosition), 1.f));
m_pTransformCom->Set_Scale(m_vScale);
m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z));
XMStoreFloat4x4(&m_CombinedWorldMatrix, m_pTransformCom->Get_XMWorldMatrix() * m_pParentTransformCom->Get_XMWorldMatrix());
_float3 vOffset = m_pModelComs[0]->Get_RadiusOffset();
_matrix ColliderMatrix = XMMatrixTranslation(vOffset.x, vOffset.y, vOffset.z) * XMLoadFloat4x4(&m_CombinedWorldMatrix);
XMStoreFloat4(&m_vExtentPosition, ColliderMatrix.r[3]);
}
void CMapObject_LOD::Late_Update(_float fTimeDelta)
{
#ifdef _DEBUG
/*if (m_bSelected)
if (m_bSelected)
{
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vPosition), 1.f));
m_pTransformCom->Set_Scale(m_vScale);
m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z));
}*/
}
#endif
_float fRaius = m_pModelComs[0]->Get_Radius();
if (m_pGameInstance->isIn_WorldFrustum(XMLoadFloat4(&m_vExtentPosition), fRaius)) {
@@ -111,7 +114,20 @@ void CMapObject_LOD::Late_Update(_float fTimeDelta)
if (m_pGameInstance->Key_Pressing(DIK_Z))
m_iLodIndex = 0;
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
switch (m_Type)
{
case Editor::MAPOBJECT_RENDER_TYPE::NORMAL:
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
break;
case Editor::MAPOBJECT_RENDER_TYPE::DECAL:
m_pGameInstance->Add_RenderGroup(RENDER::DECAL, this);
break;
case Editor::MAPOBJECT_RENDER_TYPE::GLASS:
break;
default:
break;
}
}
}
@@ -474,11 +474,22 @@ HRESULT CMapObject_Manager::Save_ContainerData(const _char* pFileName, const _ch
PartObject->SetAttribute("Lod_Level", iLodLvel);
PartObject->SetAttribute("Key_Index", pMapObject->Get_iKeyIndex());
/* Set Render Type*/
_wstring ProrotypeTag = pMapObject->Get_PrototypeTag(0);
if(_wstring::npos != ProrotypeTag.find(L"decal") || _wstring::npos != ProrotypeTag.find(L"Decal"))
PartObject->SetAttribute("Render_Type", 1);
else if(_wstring::npos != ProrotypeTag.find(L"glass") || _wstring::npos != ProrotypeTag.find(L"Glass"))
PartObject->SetAttribute("Render_Type", 2);
else
PartObject->SetAttribute("Render_Type", 0);
container->InsertEndChild(PartObject);
for (_uint i = 0; i < pMapObject->Get_LodLevel() + 1; ++i)
{
// <PrototypeTag>ÅØ½ºÆ®</PrototypeTag>
// <PrototypeTag>ProrotypeTag</PrototypeTag>
tinyxml2::XMLElement* proto = doc.NewElement("PrototypeTag");
proto->SetText(CMyTools::ToString(pMapObject->Get_PrototypeTag(i)).c_str());
PartObject->InsertEndChild(proto);
+18 -2
View File
@@ -28,6 +28,9 @@ HRESULT CTerrain::Initialize(void* pArg)
if (FAILED(Ready_Components()))
return E_FAIL;
m_vRotation = _float3{ 0.f, 0.f, 0.f };
//m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-128.f, -100.f, -128.f, 1.f));
return S_OK;
}
@@ -41,15 +44,28 @@ void CTerrain::Priority_Update(_float fTimeDelta)
m_pVIBufferCom->FitY(m_pTransformCom->Get_XMWorldMatrix(), m_vPickingPosition.y);
}
}
GUI::InputFloat("Height Ratio", &m_fHeightRatio);
max(0.01f, m_fHeightRatio);
GUI::DragFloat3("Pos", (_float*)(&m_vPickingPosition));
//m_pVIBufferCom->Change_HeigthRatio(m_fHeightRatio);
GUI::DragFloat3("Picking", (_float*)(&m_vPickingPosition));
_float4 vPos = {};
_float3 vRotation = {};
XMStoreFloat4(&vPos, m_pTransformCom->Get_State(STATE::POSITION));
GUI::DragFloat3("Pos", (_float*)(&vPos));
GUI::DragFloat3("Rota", (_float*)(&m_vRotation));
m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z));
m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&vPos));
GUI::End();
}
void CTerrain::Update(_float fTimeDelta)
{
//m_pVIBufferCom->Culling(XMMatrixIdentity());
m_pVIBufferCom->Culling(XMMatrixIdentity());
}
void CTerrain::Late_Update(_float fTimeDelta)
@@ -16,6 +16,7 @@ namespace Editor
enum class LEVEL { STATIC, LOADING, LOGO, LOBY, GAMEPLAY, RESTART, OBJECT, MAP, UI, EFFECT, PHYSX, BLOOM, END };
enum class COLLIDABLEOBJECT { PLAYER, MONSTER, HOSTILE_HITBOX, ALLY_HITBOX, NEUTRAL_HITBOX, ENVIRIONMENT, NPC, ITEM, TRIGGERBOX, REGION, NOCOLLIDE, END };
enum class MAPOBJECT_TYPE { CONTAINER, ELEMENT_STATIC, ELEMENT_INTERACT };
enum class MAPOBJECT_RENDER_TYPE {NORMAL, DECAL, GLASS};
enum class SHADER_PASS_ANIM { DEFAULT, SHADOW, CAPTURE, BLUR, END };
enum class SHADER_PASS_CUBE { DEFAULT, SHADOW, BLUR, END };
@@ -1,5 +1,4 @@
#pragma once
NS_BEGIN(Engine)
class CTransform;
NS_END
@@ -7,7 +6,8 @@ NS_END
NS_BEGIN(Editor)
typedef struct tagMapObject_Desc {
CTransform* pParentTransform = { nullptr };
_uint iRenderType{};
CTransform* pParentTransform = { nullptr };
_float3 vScale;
_float3 vRotation;
_float3 vPosition;
@@ -9,7 +9,7 @@ NS_END
NS_BEGIN(Editor)
class CMapObject_Collision final : public CMapObject // LOD 모델이 없는 애들
class CMapObject_Collision final : public CMapObject // 충돌용 Mesh
{
private:
CMapObject_Collision(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
@@ -32,14 +32,15 @@ class CMapObject_LOD final : public CMapObject // LOD 있는 애들
}
private:
CShader* m_pShaderCom = { nullptr };
vector<CModel*> m_pModelComs;
MAPOBJECT_RENDER_TYPE m_Type = {};
CShader* m_pShaderCom = { nullptr };
vector<CModel*> m_pModelComs;
_uint m_iLodIndex = {};
_uint m_iShaderPass = {};
_uint m_iLodIndex = {};
_uint m_iShaderPass = {};
vector<_wstring> m_ModelPrototypeTags;
vector<_uint> m_ModelPathIndices = { };
vector<_wstring> m_ModelPrototypeTags;
vector<_uint> m_ModelPathIndices = { };
private:
HRESULT Ready_Components();
+7 -5
View File
@@ -1,4 +1,4 @@
#pragma once
#pragma once
#include "Editor_Define.h"
#include "GameObject.h"
@@ -27,11 +27,13 @@ class CTerrain final : public CGameObject
virtual HRESULT Render() override;
private:
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Terrain* m_pVIBufferCom = { nullptr };
CTexture* m_pTextureCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Terrain* m_pVIBufferCom = { nullptr };
CTexture* m_pTextureCom = { nullptr };
_float m_fHeightRatio = {1.f};
_float3 m_vPickingPosition = {};
_float3 m_vRotation = {};
private:
HRESULT Ready_Components();
@@ -44,4 +46,4 @@ class CTerrain final : public CGameObject
virtual void Describe_Entity() override;
};
NS_END
NS_END
@@ -119,7 +119,7 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
float3 vF0 = float3(0.04f, 0.04f, 0.04f);
float fMetallic = 0.f;
float fRoughness = 0.5f;
float fRoughness = 0.f;
float fOcclusion = 1.f;
float fAttenuation = 1.f;
@@ -146,12 +146,12 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
fOcclusion = vSRO.b;
}
float fDiffuseAOStrength = lerp(0.3f, 1.f, fOcclusion);
float fDiffuseAOStrength = lerp(0.3f, 5.f, fOcclusion);
PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0);
PBR_Out.vShade *= fDiffuseAOStrength;
saturate(PBR_Out.vShade);
Out.vShade = float4(PBR_Out.vShade, 1.f);
Out.vSpecular = float4(PBR_Out.vSpecular, 1.f);
+21 -21
View File
@@ -353,33 +353,33 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType
strTexturePath = CMyTools::ToString(szTextureFilePath);
}
_string strPrefix = "../Bin/Resources/Models/MapMesh/";
_string strSearchString = "MeshTable";
_string strResultPath = {};
//_string strPrefix = "C:";
//_string strSearchString = "MeshTable";
//_string strResultPath = {};
size_t mapRePos = strTexturePath.find(strSearchString);
//size_t mapRePos = strTexturePath.find(strSearchString);
if (mapRePos != std::string::npos)
{
size_t startPos = mapRePos + strSearchString.length();
//if (mapRePos != std::string::npos)
//{
// size_t startPos = mapRePos + strSearchString.length();
// 'MapRe' 뒤에 오는 경로 건너뛰기
if (startPos < strTexturePath.length() &&
(strTexturePath[startPos] == '\\' || strTexturePath[startPos] == '/')) {
startPos++;
}
// // 'MapRe' 뒤에 오는 경로 건너뛰기
// if (startPos < strTexturePath.length() &&
// (strTexturePath[startPos] == '\\' || strTexturePath[startPos] == '/')) {
// startPos++;
// }
// 'MapRe' 이후의 나머지 경로를 추출
strResultPath = strPrefix + strTexturePath.substr(startPos);
}
else
{
MSG_BOX("FAILED to Find Path");
}
// // 'MapRe' 이후의 나머지 경로를 추출
// strResultPath = strTexturePath;//.substr(startPos);
//}
//else
//{
// MSG_BOX("FAILED to Find Path");
//}
replace(strResultPath.begin(), strResultPath.end(), '\\', '/');
//replace(strResultPath.begin(), strResultPath.end(), '\\', '/');
m_SaveMaterial.Path[ENUM_CLASS(eTexture)].push_back(strResultPath);
m_SaveMaterial.Path[ENUM_CLASS(eTexture)].push_back(strTexturePath);
m_SRVs[ENUM_CLASS(eTexture)].push_back(pSRV);
return S_OK;
+37 -1
View File
@@ -23,7 +23,9 @@ CModel::CModel(const CModel& rhs)
m_Materials(rhs.m_Materials),
m_iNumMaterials(rhs.m_iNumMaterials),
m_iNumAnimations(rhs.m_iNumAnimations),
m_pLerpAnim(rhs.m_pLerpAnim)
m_pLerpAnim(rhs.m_pLerpAnim),
m_fRadius(rhs.m_fRadius),
m_vRadiusOffset(rhs.m_vRadiusOffset)
{
_uint iNumBones = (_uint)(rhs.m_Bones.size());
m_Bones.reserve(iNumBones);
@@ -479,6 +481,29 @@ HRESULT CModel::Ready_Materials_FromFile(const aiScene* pAIScene, const _char* p
m_Materials.push_back(pMaterial);
}
m_Materials.shrink_to_fit();
while (true)
{
getline(file, strText);
if (string::npos != strText.find("Origin"))
{
size_t iXPos = strText.find_first_of("X");
size_t iYPos = strText.find_first_of("Y");
size_t iZPos = strText.find_first_of("Z");
size_t iEndPos = strText.find_first_of("}");
m_vRadiusOffset.x = stof(strText.substr(iXPos + 2, iYPos - 2)) * 0.01f;
m_vRadiusOffset.z = stof(strText.substr(iYPos + 2, iZPos - 2)) * -0.01f;
m_vRadiusOffset.y = stof(strText.substr(iZPos + 2, iEndPos)) * 0.01f;
}
if (string::npos != strText.find("SphereRadius"))
{
size_t iBeginIndex = strText.find_first_of("=");
m_fRadius = stof(strText.substr(iBeginIndex + 1)) / 100.f;
break;
}
}
return S_OK;
}
@@ -779,6 +804,12 @@ _bool CModel::SaveAssimpModel(const _char* filename)
}
}
if (MODEL::ENVIROMENT == m_eType)
{
fwrite(&m_fRadius, sizeof(_float), 1, fp);
fwrite(&m_vRadiusOffset, sizeof(_float3), 1, fp);
}
fclose(fp);
return true;
@@ -1079,6 +1110,11 @@ _bool CModel::LoadData(const _char* filename)
NewModel.Materials.push_back(mat);
}
if (MODEL::ENVIROMENT == m_eType)
{
fread(&m_fRadius, sizeof(_float), 1, fp);
fread(&m_vRadiusOffset, sizeof(_float3), 1, fp);
}
fclose(fp);
@@ -16,39 +16,13 @@ CVIBuffer_Terrain::CVIBuffer_Terrain(const CVIBuffer_Terrain& rhs)
, m_iNumVerticesX{ rhs.m_iNumVerticesX }
, m_iNumVerticesZ{ rhs.m_iNumVerticesZ }
, m_pQuadTree{ rhs.m_pQuadTree }
, m_HeigthValues{ rhs.m_HeigthValues }
{
Safe_AddRef(m_pQuadTree);
}
HRESULT CVIBuffer_Terrain::Initialize_Prototype(const _char* pFilePath, _uint iSizeX, _uint iSizeZ)
{
//_ulong dwByte = {};
//HANDLE hFile = CreateFile(CMyTools::ToWstring(pFilePath).c_str(), GENERIC_READ, 0, nullptr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
//BITMAPFILEHEADER fh{};
//BITMAPINFOHEADER ih{};
//
//ReadFile(hFile, &fh, sizeof fh, &dwByte, nullptr);
//ReadFile(hFile, &ih, sizeof ih, &dwByte, nullptr);
//ReadFile(hFile, pPixels, sizeof(_uint) * ih.biHeight * ih.biWidth, &dwByte, nullptr);
HANDLE hFile = CreateFile(TEXT("../Bin/Bina.bin"),
GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL, CREATE_ALWAYS,
FILE_ATTRIBUTE_NORMAL, NULL
);
if (hFile == INVALID_HANDLE_VALUE) {
MessageBox(NULL, L"오브젝트 저장 실패", L"System Message", MB_OK);
return E_FAIL;
}
_int iWidth = {};
_int iHeight = {};
_int iComp = {};
@@ -61,41 +35,29 @@ HRESULT CVIBuffer_Terrain::Initialize_Prototype(const _char* pFilePath, _uint iS
return E_FAIL;
}
m_iNumVerticesX = iWidth + 1;//iSizeX;
m_iNumVerticesZ = iHeight + 1;//iSizeZ;
m_iNumVerticesX = iWidth + 1;
m_iNumVerticesZ = iHeight + 1;
m_iNumVertices = m_iNumVerticesX * m_iNumVerticesZ;
_float* pPixels = new _float[m_iNumVertices];
ZeroMemory(pPixels, sizeof(_float) * m_iNumVertices);
_uint iIndex = {};
_uint iPixelIndex = {};
for (int i = 0; i < iHeight; ++i) {
for (int j = 0; j < iWidth; ++j) {
int index =
iComp * (i * iWidth + j);
int iTexureindex = iComp * ((iHeight - 1 - i) * iWidth + j);
iPixelIndex = i * m_iNumVerticesX + j;
if (iComp < 3) {
// 흑백
int grey =
(int)pTexture[index + 0];
// 알파 채널
int alpha;
if (iComp > 1) {
int alpha =
(int)pTexture[index + 1];
}
else {
alpha = 255;
}
// 흑백
}
else {
// RGB 컬러
_uint height16 = ((int)pTexture[index + 0]<< 8) | (int)pTexture[index + 1]; // 0 ~ 65535
pPixels[iIndex++] = height16 / 65535.0f;
_uint height16 = ((int)pTexture[iTexureindex + 0]<< 8) + (int)pTexture[iTexureindex + 1]; // 0 ~ 65535
pPixels[iPixelIndex] = height16 / 65535.0f;
int color_r = (int)pTexture[index + 0];
int color_g = (int)pTexture[index + 1];
int color_b = (int)pTexture[index + 2];
int color_r = (int)pTexture[iTexureindex + 0];
int color_g = (int)pTexture[iTexureindex + 1];
int color_b = (int)pTexture[iTexureindex + 2];
// 알파 채널
int alpha;
@@ -106,23 +68,20 @@ HRESULT CVIBuffer_Terrain::Initialize_Prototype(const _char* pFilePath, _uint iS
else {
alpha = 255;
}
if (!WriteFile(hFile, &pPixels[iIndex - 1], sizeof(size_t), nullptr, nullptr)) {
return E_FAIL;
}
}
}
iPixelIndex = i * m_iNumVerticesX + iWidth;
pPixels[iPixelIndex] = 0.0f;
}
_uint iLastRowStart = iHeight * m_iNumVerticesX;
for (_uint j = 0; j < m_iNumVerticesX; ++j) // m_iNumVerticesX == iWidth + 1
{
pPixels[iLastRowStart + j] = 0.0f;
}
stbi_image_free(pTexture);
CloseHandle(hFile);
m_iNumVertexBuffers = 1;
m_iVertexStride = sizeof(VTXNORTEX);
@@ -148,17 +107,20 @@ HRESULT CVIBuffer_Terrain::Initialize_Prototype(const _char* pFilePath, _uint iS
m_pVertexPositions = new _float3[m_iNumVertices];
ZeroMemory(m_pVertexPositions, sizeof(_float3) * m_iNumVertices);
for (_uint i = 0; i < m_iNumVerticesZ; i++)
for (_uint i = 0; i < m_iNumVerticesZ - 1; i++)
{
for (_uint j = 0; j < m_iNumVerticesX; j++)
for (_uint j = 0; j < m_iNumVerticesX - 1; j++)
{
_uint iIndex = i * m_iNumVerticesX + j;
m_pVertexPositions[iIndex] = pVertices[iIndex].vPosition = _float3((_float)j, (_float)(pPixels[iIndex]) * 5 * 256.f, (_float)i);
m_pVertexPositions[iIndex] = pVertices[iIndex].vPosition = _float3(
(_float)j * m_iNumVerticesX / (m_iNumVerticesX - 1.f),
(_float)(pPixels[iIndex]) * 5 * 256.f,
(_float)i * m_iNumVerticesZ / (m_iNumVerticesZ -1.f)
);
pVertices[iIndex].vNormal = _float3(0.f, 0.f, 0.f);
pVertices[iIndex].vTexcoord = _float2((_float)j / (m_iNumVerticesX - 1.f) /32.f, (_float)i / (m_iNumVerticesZ - 1.f) / 32.f);
//pVertices[iIndex].vTexcoord = _float2(1.f - ((float)i / (m_iNumVerticesZ - 1.f)) / 32.f,
//((float)j / (m_iNumVerticesX - 1.f)) / 32.f);
pVertices[iIndex].vTexcoord = _float2((_float)j / (m_iNumVerticesX - 1.f) / 32.f, (_float)i / (m_iNumVerticesZ - 1.f) / 32.f);
}
}
@@ -181,7 +143,7 @@ HRESULT CVIBuffer_Terrain::Initialize_Prototype(const _char* pFilePath, _uint iS
_uint iNumIndices = {};
for (_uint i = 0; i < m_iNumVerticesZ - 1; i++)
for (_uint i = 0; i < m_iNumVerticesZ - 1 ; i++)
{
for (_uint j = 0; j < m_iNumVerticesX - 1; j++)
{
@@ -303,6 +265,22 @@ void CVIBuffer_Terrain::FitY(_fmatrix WorldMatrix, _float fY)
m_pContext->Unmap(m_pVB, 0);
}
void CVIBuffer_Terrain::Change_HeigthRatio(_float fRatio)
{
D3D11_MAPPED_SUBRESOURCE SubResource{};
m_pContext->Map(m_pVB, 0, D3D11_MAP_WRITE, 0, &SubResource);
VTXNORTEX* pVertices = static_cast<VTXNORTEX*>(SubResource.pData);
for (_uint i = 0; i < m_iNumVertices; ++i)
{
pVertices[i].vPosition.y = m_HeigthValues[i] * fRatio;
}
m_pContext->Unmap(m_pVB, 0);
}
CVIBuffer_Terrain* CVIBuffer_Terrain::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pFilePath, _uint iSizeX, _uint iSizeZ)
{
CVIBuffer_Terrain* pInstance = new CVIBuffer_Terrain(pDevice, pContext);
+1 -1
View File
@@ -5,7 +5,7 @@ NS_BEGIN(Engine)
enum class STATE { RIGHT, UP, LOOK, POSITION, END };
enum class LIGHT { DIRECTIONAL, POINT, SPOT, END };
enum class COLLIDER { AABB, OBB, SPHERE, END };
enum class RENDER { PRIORITY, SHADOW, NONBLEND, BLUR, NONLIGHT, EFFECT ,BLEND, UI, END };
enum class RENDER { PRIORITY, SHADOW, NONBLEND, DECAL, BLUR, NONLIGHT, EFFECT ,BLEND, UI, END };
enum class RAY { LOCAL, WORLD, END };
enum class ACTOR { BOX, CAPSULE, SPHERE, PLANE, TRIANGLEMESH, HEIGHTFIELD, END };
@@ -25,6 +25,8 @@ class ENGINE_DLL CVIBuffer_Terrain final : public CVIBuffer
_bool Picking(_fmatrix WorldMatrix, _float3* pOut);
void Culling(_fmatrix WorldMatrix);
void FitY(_fmatrix WorldMatrix, _float fY);
void Change_HeigthRatio(_float fRatio);
private:
_bool m_bChange = {};
_uint m_iNumVerticesX = {};