Merge pull request #102 from SpicyGangjeong/MapTool

Map tool
This commit is contained in:
JinhoBa
2025-11-13 13:49:29 +09:00
committed by GitHub
24 changed files with 1041 additions and 15 deletions
@@ -337,4 +337,164 @@
<Rotation x="0" y="0" z="0"/>
</PartObject>
</Container>
<Container Name="">
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_Door_L</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_3Broom_ext_Decals_A</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
</Container>
<Container Name="HW_GreatHall">
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HW_GH_FloorMain</PrototypeTag>
<Position x="46.552219" y="0" z="38.898628"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HW_GH_FloorEnd</PrototypeTag>
<Position x="46.580196" y="-9.5367432e-07" z="66.865234"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HW_GH_Sconce_Gryffindor</PrototypeTag>
<Position x="46.54007" y="0.49999908" z="68.490913"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HW_GH_WallIntWindowB</PrototypeTag>
<Position x="8.5603905" y="0" z="9.6546278"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HW_GH_WallIntWindowB</PrototypeTag>
<Position x="4.9284835" y="-9.5367432e-07" z="9.5142498"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HW_GH_WallIntWindowC</PrototypeTag>
<Position x="12.268991" y="0" z="9.9082165"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HW_GH_WallPaneling</PrototypeTag>
<Position x="10.824334" y="0" z="5.5098476"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HW_GH_WallInt_FlatCeilingB</PrototypeTag>
<Position x="4.8808293" y="5.9000006" z="1.8310394"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HW_GH_Sconce_Gryffindor</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HW_GH_Sconce_HufflePuff</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HW_GH_Sconce_Slytherin</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HW_GH_ShadowCaster</PrototypeTag>
<Position x="46.50058" y="7.8999949" z="23.989874"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HW_GH_Table</PrototypeTag>
<Position x="47.032993" y="0" z="50.447128"/>
<Scale x="0.99999988" y="1" z="0.99999988"/>
<Rotation x="0" y="89.999985" z="0"/>
</PartObject>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HW_GH_Table</PrototypeTag>
<Position x="39.611012" y="4.7683716e-07" z="50.22493"/>
<Scale x="0.99999988" y="1" z="0.99999988"/>
<Rotation x="0" y="89.999985" z="0"/>
</PartObject>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HW_GH_Table</PrototypeTag>
<Position x="55.278839" y="0" z="49.968864"/>
<Scale x="0.99999988" y="1" z="0.99999988"/>
<Rotation x="0" y="89.999985" z="0"/>
</PartObject>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HW_GH_TableRunnerGryff</PrototypeTag>
<Position x="46.985992" y="9.6857548e-07" z="50.450001"/>
<Scale x="0.99999988" y="1" z="0.99999988"/>
<Rotation x="0" y="89.999985" z="0"/>
</PartObject>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HW_GH_TableRunnerHufflePuff</PrototypeTag>
<Position x="39.449162" y="0" z="50.225445"/>
<Scale x="0.99999988" y="1" z="0.99999988"/>
<Rotation x="0" y="89.999985" z="0"/>
</PartObject>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HW_GH_TableRunnerRaven</PrototypeTag>
<Position x="55.339188" y="0" z="49.954151"/>
<Scale x="0.99999988" y="1" z="0.99999988"/>
<Rotation x="0" y="89.999985" z="0"/>
</PartObject>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HW_GH_WallColumnAB</PrototypeTag>
<Position x="58.90229" y="0" z="33.904556"/>
<Scale x="0.99999988" y="1" z="0.99999988"/>
<Rotation x="0" y="89.999985" z="0"/>
</PartObject>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HW_GH_WallColumnAC</PrototypeTag>
<Position x="59.996658" y="0" z="32.924282"/>
<Scale x="0.99999988" y="1" z="0.99999988"/>
<Rotation x="-0" y="-89.999985" z="-0"/>
</PartObject>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HW_GH_WallColumnC</PrototypeTag>
<Position x="29.750357" y="-4.7683716e-07" z="65.084366"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="-0" y="-70.000008" z="-0"/>
</PartObject>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HW_GH_WallDoor</PrototypeTag>
<Position x="52.069908" y="-4.7683716e-07" z="29.919998"/>
<Scale x="0.99999952" y="1" z="0.99999952"/>
<Rotation x="-0" y="-179.99998" z="-0"/>
</PartObject>
<PartObject Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HW_GH_WallDoorB</PrototypeTag>
<Position x="44.34584" y="0" z="52.525215"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
</PartObject>
</Container>
</Land>
@@ -176,7 +176,7 @@ PS_OUT PS_MAIN(PS_IN In)
Out.vDiffuse = vMtrlDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 1.f);
Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / 500.f, 0.0f, 1.f);
return Out;
}
@@ -336,7 +336,7 @@ technique11 MeshTechnique11
{
pass MeshPass // 0
{
SetRasterizerState(RS_Default);
SetRasterizerState(RS_Nocull);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
@@ -442,7 +442,7 @@ technique11 MeshTechnique11
pass MapToolPass // 11
{
SetRasterizerState(RS_Default);
SetRasterizerState(RS_Nocull);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
@@ -160,6 +160,7 @@
<ClInclude Include="..\Public\Body.h" />
<ClInclude Include="..\public\Active_Icon.h" />
<ClInclude Include="..\Public\DummyObject.h" />
<ClInclude Include="..\public\DummySkyBox.h" />
<ClInclude Include="..\Public\Dummy_PhysXPlayable.h" />
<ClInclude Include="..\public\GamePlay_Canvas.h" />
<ClInclude Include="..\public\BuildingContainer.h" />
@@ -174,6 +175,9 @@
<ClInclude Include="..\public\Level_MapViewer.h" />
<ClInclude Include="..\Public\LoadingWidget.h" />
<ClInclude Include="..\public\MapContainer.h" />
<ClInclude Include="..\public\MapElement.h" />
<ClInclude Include="..\public\MapElement_Interactable.h" />
<ClInclude Include="..\public\MapElement_Static.h" />
<ClInclude Include="..\public\MapObject.h" />
<ClInclude Include="..\public\MapObject_LOD.h" />
<ClInclude Include="..\public\MapObject_Manager.h" />
@@ -222,6 +226,7 @@
<ClCompile Include="..\Private\Body.cpp" />
<ClCompile Include="..\private\Active_Icon.cpp" />
<ClCompile Include="..\Private\DummyObject.cpp" />
<ClCompile Include="..\private\DummySkyBox.cpp" />
<ClCompile Include="..\Private\Dummy_PhysXPlayable.cpp" />
<ClCompile Include="..\private\GamePlay_Canvas.cpp" />
<ClCompile Include="..\private\BuildingContainer.cpp" />
@@ -236,6 +241,9 @@
<ClCompile Include="..\private\Level_MapViewer.cpp" />
<ClCompile Include="..\Private\LoadingWidget.cpp" />
<ClCompile Include="..\private\MapContainer.cpp" />
<ClCompile Include="..\private\MapElement.cpp" />
<ClCompile Include="..\private\MapElement_Interactable.cpp" />
<ClCompile Include="..\private\MapElement_Static.cpp" />
<ClCompile Include="..\private\MapObject.cpp" />
<ClCompile Include="..\private\MapObject_LOD.cpp" />
<ClCompile Include="..\private\MapObject_Manager.cpp" />
@@ -190,6 +190,18 @@
<Filter Include="02.GameObjects\Dummys\DummyPhysX\PhysXObstacle">
<UniqueIdentifier>{fbe2856d-a829-4563-a9f1-00adc4029c65}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Env\03.MapElement">
<UniqueIdentifier>{e6df1c15-e857-4d34-8857-e6d6f1113948}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Env\03.MapElement\Static">
<UniqueIdentifier>{95042c6d-04ae-46a5-9f52-0b7688c7ee4b}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Env\03.MapElement\Interactable">
<UniqueIdentifier>{dc6d3d82-0ee7-4c5f-a561-591e257b441e}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Dummys\DummySkyBox">
<UniqueIdentifier>{12d17342-7cb4-46be-8243-9e1864496338}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="Editor.h">
@@ -381,6 +393,18 @@
<ClInclude Include="..\Public\Dummy_PhysXPlayable.h">
<Filter>02.GameObjects\Dummys\DummyPhysX\PhysXPlayable</Filter>
</ClInclude>
<ClInclude Include="..\public\MapElement.h">
<Filter>02.GameObjects\Env\03.MapElement</Filter>
</ClInclude>
<ClInclude Include="..\public\MapElement_Static.h">
<Filter>02.GameObjects\Env\03.MapElement\Static</Filter>
</ClInclude>
<ClInclude Include="..\public\MapElement_Interactable.h">
<Filter>02.GameObjects\Env\03.MapElement\Interactable</Filter>
</ClInclude>
<ClInclude Include="..\public\DummySkyBox.h">
<Filter>02.GameObjects\Dummys\DummySkyBox</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="Editor.ico">
@@ -568,6 +592,18 @@
<ClCompile Include="..\Private\Dummy_PhysXPlayable.cpp">
<Filter>02.GameObjects\Dummys\DummyPhysX\PhysXPlayable</Filter>
</ClCompile>
<ClCompile Include="..\private\MapElement.cpp">
<Filter>02.GameObjects\Env\03.MapElement</Filter>
</ClCompile>
<ClCompile Include="..\private\MapElement_Static.cpp">
<Filter>02.GameObjects\Env\03.MapElement\Static</Filter>
</ClCompile>
<ClCompile Include="..\private\MapElement_Interactable.cpp">
<Filter>02.GameObjects\Env\03.MapElement\Interactable</Filter>
</ClCompile>
<ClCompile Include="..\private\DummySkyBox.cpp">
<Filter>02.GameObjects\Dummys\DummySkyBox</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="Editor.rc">
@@ -0,0 +1,154 @@
#include "pch.h"
#include "DummySkyBox.h"
#include "GameInstance.h"
#include "DebugCamera.h"
#include "Layer.h"
CDummySkyBox::CDummySkyBox(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject{ pDevice, pContext }
{
}
CDummySkyBox::CDummySkyBox(const CDummySkyBox& rhs)
: CGameObject(rhs)
{
}
HRESULT CDummySkyBox::Initialize_Prototype()
{
return S_OK;
}
HRESULT CDummySkyBox::Initialize(void* pArg)
{
if (FAILED(__super::Initialize(pArg)))
return E_FAIL;
if (FAILED(Ready_Components(pArg)))
return E_FAIL;
return S_OK;
}
void CDummySkyBox::Priority_Update(_float fTimeDelta)
{
}
void CDummySkyBox::Update(_float fTimeDelta)
{
m_pTransformCom->Set_State(STATE::POSITION, m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_CAMERA)->Get_Object<CDebugCamera>()->Get_WorldPostion());
}
void CDummySkyBox::Late_Update(_float fTimeDelta)
{
_float4* vPos = (_float4*)(m_pTransformCom->Get_WorldMatrixPtr()->m[3]);
m_pGameInstance->Add_RenderGroup(RENDER::PRIORITY, this, *vPos, 0.f);
}
HRESULT CDummySkyBox::Render()
{
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
}
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
for (_uint i = 0; i < iNumMeshes; i++)
{
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) {
return E_FAIL;
}
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::SKYBOX)))) {
return E_FAIL;
}
if (FAILED(m_pModelCom->Render(i))) {
return E_FAIL;
}
}
return S_OK;
}
HRESULT CDummySkyBox::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_Component_SkyboxModel"),
reinterpret_cast<CComponent**>(&m_pModelCom))))
return E_FAIL;
/* Com_Shader */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
reinterpret_cast<CComponent**>(&m_pShaderCom))))
return E_FAIL;
return S_OK;
}
HRESULT CDummySkyBox::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;
}
CDummySkyBox* CDummySkyBox::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CDummySkyBox* pInstance = new CDummySkyBox(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CDummySkyBox");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CDummySkyBox::Clone(void* pArg, CGameObject* pOwner)
{
CDummySkyBox* pInstance = new CDummySkyBox(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CDummySkyBox");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CDummySkyBox::Free()
{
__super::Free();
SAFE_RELEASE(m_pModelCom);
SAFE_RELEASE(m_pShaderCom);
}
void CDummySkyBox::Describe_Entity()
{
}
@@ -7,6 +7,7 @@
#include "Terrain.h"
#include "MapObject_Manager.h"
#include "BuildingContainer.h"
#include "DummySkyBox.h"
CLevel_MapViewer::CLevel_MapViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
: CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
@@ -34,6 +35,9 @@ HRESULT CLevel_MapViewer::Initialize()
if (FAILED(Ready_Layer_Camera(LAYER_CAMERA))) {
return E_FAIL;
}
if (FAILED(Ready_Layer_Background(TEXT("Layer_SkyBox")))) {
return E_FAIL;
}
if (FAILED(Ready_Layer_Terrain(TEXT("Layer_Terrain")))) {
return E_FAIL;
@@ -85,6 +89,14 @@ HRESULT CLevel_MapViewer::Ready_Layer_Camera(const _wstring& strLayerTag)
return S_OK;
}
HRESULT CLevel_MapViewer::Ready_Layer_Background(const _wstring& strLayerTag)
{
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummySkyBox>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
return E_FAIL;
return S_OK;
}
HRESULT CLevel_MapViewer::Ready_Layer_Terrain(const _wstring& strLayerTag)
{
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CTerrain>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
+15 -1
View File
@@ -13,6 +13,7 @@
#include "Body.h"
#include "Hair.h"
#include "Dummy_Goblin.h"
#include "DummySkyBox.h"
#include "DummyObject.h"
#include <filesystem>
@@ -219,6 +220,7 @@ HRESULT CLoader::Loading_For_Logo()
if (FAILED(m_pGameInstance->Add_Prototype<CDebugCamera>(g_iStaticLevel, CDebugCamera::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
m_strMessage = TEXT("Loading Success!");
m_isFinished = true;
@@ -782,10 +784,17 @@ HRESULT CLoader::Loading_For_MapViewer()
m_strMessage = TEXT("모델를(을) 로딩 중 입니다.");
/* For.Prototype_Component_SkyboxModel */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_SkyboxModel"),
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.fbx", XMMatrixIdentity()))))
return E_FAIL;
vector<_wstring> ModelPrototypeTags = {};
vector<filesystem::path> ModelPrototypePath = {};
for (const auto& file : filesystem::directory_iterator("C:\\Users\\kimnuri\\Desktop\\Hogwart\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Terrain"))
//for (const auto& file : filesystem::directory_iterator("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Meshes"))
for (const auto& file : filesystem::directory_iterator("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogwarts\\SUB_GreatHall\\Static_Mesh\\Kit_INT"))
//for (const auto& file : filesystem::directory_iterator("C:\\Users\\kimnuri\\Desktop\\Hogwart\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Terrain"))
{
if (file.is_directory())
continue;
@@ -836,6 +845,11 @@ HRESULT CLoader::Loading_For_MapViewer()
CVIBuffer_Terrain::Create(m_pDevice, m_pContext, nullptr, 100, 100))))
return E_FAIL;
/* For.Prototype_GameObject_SkyBox */
if (FAILED(m_pGameInstance->Add_Prototype<CDummySkyBox>(g_iStaticLevel, CDummySkyBox::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
/* For.Prototype_GameObject_BuildingContainer */
if (FAILED(m_pGameInstance->Add_Prototype<CBuildingContainer>(g_iStaticLevel, CBuildingContainer::Create(m_pDevice, m_pContext))))
return E_FAIL;
@@ -0,0 +1,67 @@
#include "pch.h"
#include "MapElement.h"
#include "GameInstance.h"
CMapElement::CMapElement(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject{ pDevice, pContext }
{
}
CMapElement::CMapElement(const CMapElement& rhs)
: CGameObject(rhs)
{
}
void CMapElement::Priority_Update(_float fTimeDelta)
{
}
void CMapElement::Update(_float fTimeDelta)
{
}
void CMapElement::Late_Update(_float fTimeDelta)
{
}
HRESULT CMapElement::Render()
{
return S_OK;
}
HRESULT CMapElement::Initialize_Prototype()
{
return S_OK;
}
HRESULT CMapElement::Initialize(void* pArg)
{
if (FAILED(__super::Initialize(pArg)))
return E_FAIL;
return S_OK;
}
HRESULT CMapElement::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
return E_FAIL;
}
return S_OK;
}
HRESULT CMapElement::Bind_ShaderResources()
{
return S_OK;
}
void CMapElement::Free()
{
__super::Free();
}
void CMapElement::Describe_Entity()
{
}
@@ -0,0 +1,196 @@
#include "pch.h"
#include "MapElement_Interactable.h"
#include "GameInstance.h"
CMapElement_Interactable::CMapElement_Interactable(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CMapElement{ pDevice, pContext }
{
}
CMapElement_Interactable::CMapElement_Interactable(const CMapElement_Interactable& rhs)
: CMapElement(rhs)
{
}
HRESULT CMapElement_Interactable::Initialize_Prototype()
{
return S_OK;
}
HRESULT CMapElement_Interactable::Initialize(void* pArg)
{
if (FAILED(__super::Initialize(pArg)))
return E_FAIL;
if (FAILED(Ready_Components(pArg)))
return E_FAIL;
return S_OK;
}
void CMapElement_Interactable::Priority_Update(_float fTimeDelta)
{
#ifdef _DEBUG
m_bSelected = false;
#endif
}
void CMapElement_Interactable::Update(_float fTimeDelta)
{
}
void CMapElement_Interactable::Late_Update(_float fTimeDelta)
{
#ifdef _DEBUG
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
_float4 vPos;
XMStoreFloat4(&vPos, m_pTransformCom->Get_State(STATE::POSITION));
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this, vPos, 20.f);
}
HRESULT CMapElement_Interactable::Render()
{
_uint iNumMeshes = m_pModelComs[m_iLodIndex]->Get_NumMeshes();
for (_uint i = 0; i < iNumMeshes; i++)
{
if (FAILED(m_pModelComs[0]->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) {
return E_FAIL;
}
if (FAILED(m_pModelComs[0]->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) {
return E_FAIL;
}
if (m_bSelected)
{
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::MAPTOOL)))) {
return E_FAIL;
}
}
else
{
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) {
return E_FAIL;
}
}
if (FAILED(m_pModelComs[m_iLodIndex]->Render(i))) {
return E_FAIL;
}
}
return S_OK;
}
HRESULT CMapElement_Interactable::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
return E_FAIL;
}
return S_OK;
}
HRESULT CMapElement_Interactable::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;
}
return S_OK;
}
CMapElement_Interactable* CMapElement_Interactable::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CMapElement_Interactable* pInstance = new CMapElement_Interactable(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CMapElement_Interactable");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CMapElement_Interactable::Clone(void* pArg, CGameObject* pOwner)
{
CMapElement_Interactable* pInstance = new CMapElement_Interactable(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CMapElement_Interactable");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CMapElement_Interactable::Free()
{
__super::Free();
}
void CMapElement_Interactable::Describe_Entity()
{
if (m_bDead)
return;
if (nullptr == m_pGameInstance)
return;
GUI::Text(CMyTools::ToString(m_ModelPrototypeTags[m_iLodIndex]).c_str());
GUI::InputInt("Lod Level", (_int*)(&m_iLodIndex));
m_iLodIndex = max(0, m_iLodIndex);
m_iLodIndex = min(m_iMaxLodLevel, m_iLodIndex);
GUI::Text("----- Transfrom ----");
GUI::InputFloat("X##Position", &m_vPosition.x, 0.1f, 1.f);
GUI::InputFloat("Y##Position", &m_vPosition.y, 0.1f, 1.f);
GUI::InputFloat("Z##Position", &m_vPosition.z, 0.1f, 1.f);
/*if (m_pGameInstance->Mouse_Down(DIM_LBUTTON) && m_pGameInstance->Key_Pressing(DIK_LSHIFT))
{
CTerrain* pTerrain = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Terrain"))->Get_Object<CTerrain>();
if (nullptr != pTerrain)
{
pTerrain->Get_Component<CVIBuffer_Terrain>()->Picking(pTerrain->Get_Component<CTransform>(), m_vPosition);
}
}*/
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);
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);
if (GUI::Button("Delete"))
m_bDead = true;
m_bSelected = true;
}
@@ -0,0 +1,195 @@
#include "pch.h"
#include "MapElement_Static.h"
#include "GameInstance.h"
CMapElement_Static::CMapElement_Static(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CMapElement{ pDevice, pContext }
{
}
CMapElement_Static::CMapElement_Static(const CMapElement_Static& rhs)
: CMapElement(rhs)
{
}
HRESULT CMapElement_Static::Initialize_Prototype()
{
return S_OK;
}
HRESULT CMapElement_Static::Initialize(void* pArg)
{
if (FAILED(__super::Initialize(pArg)))
return E_FAIL;
if (FAILED(Ready_Components(pArg)))
return E_FAIL;
return S_OK;
}
void CMapElement_Static::Priority_Update(_float fTimeDelta)
{
#ifdef _DEBUG
m_bSelected = false;
#endif
}
void CMapElement_Static::Update(_float fTimeDelta)
{
}
void CMapElement_Static::Late_Update(_float fTimeDelta)
{
#ifdef _DEBUG
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
_float4 vPos;
XMStoreFloat4(&vPos, m_pTransformCom->Get_State(STATE::POSITION));
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this, vPos, 20.f);
}
HRESULT CMapElement_Static::Render()
{
_uint iNumMeshes = m_pModelComs[m_iLodIndex]->Get_NumMeshes();
for (_uint i = 0; i < iNumMeshes; i++)
{
if (FAILED(m_pModelComs[0]->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) {
return E_FAIL;
}
if (FAILED(m_pModelComs[0]->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) {
return E_FAIL;
}
if (m_bSelected)
{
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::MAPTOOL)))) {
return E_FAIL;
}
}
else
{
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) {
return E_FAIL;
}
}
if (FAILED(m_pModelComs[m_iLodIndex]->Render(i))) {
return E_FAIL;
}
}
return S_OK;
}
HRESULT CMapElement_Static::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
return E_FAIL;
}
return S_OK;
}
HRESULT CMapElement_Static::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;
}
return S_OK;
}
CMapElement_Static* CMapElement_Static::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CMapElement_Static* pInstance = new CMapElement_Static(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CMapElement_Static");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CMapElement_Static::Clone(void* pArg, CGameObject* pOwner)
{
CMapElement_Static* pInstance = new CMapElement_Static(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CMapElement_Static");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CMapElement_Static::Free()
{
__super::Free();
}
void CMapElement_Static::Describe_Entity()
{
if (m_bDead)
return;
if (nullptr == m_pGameInstance)
return;
GUI::Text(CMyTools::ToString(m_ModelPrototypeTags[m_iLodIndex]).c_str());
GUI::InputInt("Lod Level", (_int*)(&m_iLodIndex));
m_iLodIndex = max(0, m_iLodIndex);
m_iLodIndex = min(m_iMaxLodLevel, m_iLodIndex);
GUI::Text("----- Transfrom ----");
GUI::InputFloat("X##Position", &m_vPosition.x, 0.1f, 1.f);
GUI::InputFloat("Y##Position", &m_vPosition.y, 0.1f, 1.f);
GUI::InputFloat("Z##Position", &m_vPosition.z, 0.1f, 1.f);
/*if (m_pGameInstance->Mouse_Down(DIM_LBUTTON) && m_pGameInstance->Key_Pressing(DIK_LSHIFT))
{
CTerrain* pTerrain = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Terrain"))->Get_Object<CTerrain>();
if (nullptr != pTerrain)
{
pTerrain->Get_Component<CVIBuffer_Terrain>()->Picking(pTerrain->Get_Component<CTransform>(), m_vPosition);
}
}*/
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);
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);
if (GUI::Button("Delete"))
m_bDead = true;
m_bSelected = true;
}
@@ -140,7 +140,7 @@ HRESULT CMapObject_Manager::Bind_ShaderResources()
{
return S_OK;
}
#pragma region SAVE & LOAD
HRESULT CMapObject_Manager::Save_MapData(const _char* pFileName)
{
tinyxml2::XMLDocument doc;
@@ -649,6 +649,8 @@ HRESULT CMapObject_Manager::Load_ContainerData(const _char* pFileName, const _ch
return S_OK;
}
#pragma endregion
void CMapObject_Manager::Update_PrototypeList()
{
@@ -768,6 +770,8 @@ void CMapObject_Manager::Update_ObjectList()
void CMapObject_Manager::Update_Edit()
{
GUI::Begin("Edit");
if (m_pGameInstance->Mouse_Down(DIM_4))
m_pSelectObject = nullptr;
if (nullptr != m_pSelectObject)
{
@@ -0,0 +1,44 @@
#pragma once
#include "Editor_Define.h"
#include "GameObject.h"
NS_BEGIN(Engine)
class CModel;
class CShader;
NS_END
NS_BEGIN(Editor)
class CDummySkyBox final : public CGameObject
{
private:
CDummySkyBox(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CDummySkyBox(const CDummySkyBox& rhs);
virtual ~CDummySkyBox() = 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:
CModel* m_pModelCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
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 CDummySkyBox* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
void Describe_Entity() override;
};
NS_END
@@ -15,6 +15,7 @@ namespace Editor
enum class LEVEL { STATIC, LOADING, LOGO, LOBY, GAMEPLAY, RESTART, OBJECT, MAP,UI, EFFECT, PHYSX, 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 SHADER_PASS_ANIM { DEFAULT, SHADOW, CAPTURE, BLUR, END };
enum class SHADER_PASS_CUBE { DEFAULT, SHADOW, BLUR, END };
@@ -19,6 +19,7 @@ class CLevel_MapViewer final : public CLevel
virtual HRESULT Initialize() override;
HRESULT Ready_Layer_Light();
HRESULT Ready_Layer_Camera(const _wstring& strLayerTag);
HRESULT Ready_Layer_Background(const _wstring& strLayerTag);
HRESULT Ready_Layer_Terrain(const _wstring& strLayerTag);
HRESULT Ready_Layer_BuildingContainer(const _wstring& strLayerTag);
HRESULT Ready_Layer_MapObjectManager(const _wstring& strLayerTag);
@@ -0,0 +1,55 @@
#pragma once
#include "Editor_Define.h"
#include "GameObject.h"
NS_BEGIN(Engine)
class CModel;
class CShader;
NS_END
NS_BEGIN(Editor)
class CMapElement abstract : public CGameObject
{
protected:
CMapElement(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CMapElement(const CMapElement& rhs);
virtual ~CMapElement() = 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;
protected:
_bool m_bSelected = { false };
_uint m_iMaxLodLevel = {};
_uint m_iLodIndex = {};
CShader* m_pShaderCom = { nullptr };
vector<CModel*> m_pModelComs;
vector<_wstring> m_ModelPrototypeTags;
#ifdef _DEBUG
_float3 m_vPosition = {};
_float3 m_vRotation = {};
_float3 m_vScale = {};
#endif // _DEBUG
protected:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
virtual HRESULT Ready_Components(void* pArg) override;
virtual HRESULT Bind_ShaderResources() override;
public:
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) PURE;
virtual void Free() override;
void Describe_Entity() override;
};
NS_END
@@ -0,0 +1,37 @@
#pragma once
#include "Editor_Define.h"
#include "MapElement.h"
NS_BEGIN(Editor)
class CMapElement_Interactable : public CMapElement
{
private:
CMapElement_Interactable(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CMapElement_Interactable(const CMapElement_Interactable& rhs);
virtual ~CMapElement_Interactable() = 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:
_uint m_iSaveIndex = {}; // 원래 위치 받아올때 필요한 인덱스
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_Interactable* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
void Describe_Entity() override;
};
NS_END
@@ -0,0 +1,34 @@
#pragma once
#include "Editor_Define.h"
#include "MapElement.h"
NS_BEGIN(Editor)
class CMapElement_Static : public CMapElement
{
private:
CMapElement_Static(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CMapElement_Static(const CMapElement_Static& rhs);
virtual ~CMapElement_Static() = 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:
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_Static* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
void Describe_Entity() override;
};
NS_END
@@ -256,6 +256,8 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType
eTexture = aiTextureType::aiTextureType_NORMALS;
else if (!strcmp(FileType.c_str(), "normal"))
eTexture = aiTextureType::aiTextureType_NORMALS;
else if (!strcmp(FileType.c_str(), "n"))
eTexture = aiTextureType::aiTextureType_NORMALS;
else if (!strcmp(FileType.c_str(), "MRO"))
eTexture = aiTextureType::aiTextureType_METALNESS;
else if (!strcmp(FileType.c_str(), "MROH"))
+1 -1
View File
@@ -37,7 +37,7 @@ void CPipeLine::Update()
XMStoreFloat4x4(&m_TransformStateMatrices[i], XMMatrixInverse(nullptr, Get_Transform_Matrix(static_cast<D3DTS>(i-2))));
}
memcpy(&m_vCamPosition, &m_TransformStateMatrices[ENUM_CLASS(D3DTS::VIEW)].m[3], sizeof(_float4));
memcpy(&m_vCamPosition, &m_TransformStateMatrices[ENUM_CLASS(D3DTS::VIEW_INV)].m[3], sizeof(_float4));
}
CPipeLine* CPipeLine::Create()
+9 -9
View File
@@ -683,12 +683,12 @@ HRESULT CRenderer::Initialize()
XMStoreFloat4x4(&m_ProjMatrix, XMMatrixOrthographicLH(Viewport.Width, Viewport.Height, 0.f, 1.f));
#ifdef _DEBUG
//if (FAILED(m_pGameInstance->Ready_RenderTarget_Debug(TEXT("Target_Diffuse"), 75.f, 75.f, 150.0f, 150.0f))) {
// return E_FAIL;
//}
//if (FAILED(m_pGameInstance->Ready_RenderTarget_Debug(TEXT("Target_Normal"), 75.f, 225.f, 150.0f, 150.0f))) {
// return E_FAIL;
//}
if (FAILED(m_pGameInstance->Ready_RenderTarget_Debug(TEXT("Target_Diffuse"), 75.f, 75.f, 150.0f, 150.0f))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Ready_RenderTarget_Debug(TEXT("Target_Normal"), 75.f, 225.f, 150.0f, 150.0f))) {
return E_FAIL;
}
//if (FAILED(m_pGameInstance->Ready_RenderTarget_Debug(TEXT("Target_Shade"), 225.f, 75.f, 150.0f, 150.0f))) {
// return E_FAIL;
//}
@@ -696,9 +696,9 @@ HRESULT CRenderer::Initialize()
// return E_FAIL;
//}
if (FAILED(m_pGameInstance->Ready_RenderTarget_Debug(TEXT("Target_Color"), 375.f, 225.f, 450.f, 450.0f))) {
return E_FAIL;
}
//if (FAILED(m_pGameInstance->Ready_RenderTarget_Debug(TEXT("Target_Color"), 375.f, 225.f, 450.f, 450.0f))) {
// return E_FAIL;
//}
//if (FAILED(m_pGameInstance->Ready_RenderTarget_Debug(TEXT("Target_Shadow"), Viewport.Width - 150.0f, 150.0f, 300.f, 300.f))) {
// return E_FAIL;
+3
View File
@@ -8,6 +8,9 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "01.Editor", "01.Editor", "{8F2ABBAF-8EC5-4CF8-8AD2-B09FB2AC9B14}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "03.Engine", "03.Engine", "{C8D5274F-AC00-46C7-1F8D-E88E81087A52}"
ProjectSection(SolutionItems) = preProject
Editor\public\DummySkyBox.h = Editor\public\DummySkyBox.h
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "98.Batch", "98.Batch", "{15C374FB-70F1-426A-AF16-1922F28ABE5D}"
ProjectSection(SolutionItems) = preProject