@@ -169,6 +169,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\public\Dialogue.h" />
|
||||
<ClInclude Include="..\public\Dialogue_Font.h" />
|
||||
<ClInclude Include="..\public\NPCInteraction.h" />
|
||||
<ClInclude Include="..\public\PointLight.h" />
|
||||
<ClInclude Include="..\Public\State_Fall.h" />
|
||||
<ClInclude Include="..\Public\State_FireBall.h" />
|
||||
<ClInclude Include="..\Public\TransformationSide.h" />
|
||||
@@ -391,6 +392,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\public\UI_Manager.h" />
|
||||
<ClInclude Include="..\public\Unified.h" />
|
||||
<ClInclude Include="..\Public\Wand.h" />
|
||||
<ClInclude Include="..\public\WorldDecal.h" />
|
||||
<ClInclude Include="Client.h" />
|
||||
<ClInclude Include="framework.h" />
|
||||
<ClInclude Include="Resource.h" />
|
||||
@@ -406,6 +408,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\private\Dialogue.cpp" />
|
||||
<ClCompile Include="..\private\Dialogue_Font.cpp" />
|
||||
<ClCompile Include="..\private\NPCInteraction.cpp" />
|
||||
<ClCompile Include="..\private\PointLight.cpp" />
|
||||
<ClCompile Include="..\Private\State_Fall.cpp" />
|
||||
<ClCompile Include="..\Private\TransformationSide.cpp" />
|
||||
<ClCompile Include="..\Private\Transformation.cpp" />
|
||||
@@ -635,6 +638,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\private\UI_Manager.cpp" />
|
||||
<ClCompile Include="..\private\Unified.cpp" />
|
||||
<ClCompile Include="..\Private\Wand.cpp" />
|
||||
<ClCompile Include="..\private\WorldDecal.cpp" />
|
||||
<ClCompile Include="Client.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
<Filter>02.GameObjects\Cameras\Debug</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Light_Main.h">
|
||||
<Filter>02.GameObjects\Environment\Lights\Main</Filter>
|
||||
<Filter>02.GameObjects\Environment\99.Lights\Main</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\PlayerInfo.h">
|
||||
<Filter>03.InfoInstance\00.PlayerInfo</Filter>
|
||||
@@ -731,6 +731,12 @@
|
||||
<ClInclude Include="..\public\Dialogue.h">
|
||||
<Filter>04.Mechanic\Dialogue</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\WorldDecal.h">
|
||||
<Filter>02.GameObjects\Environment\98,WorldDecal</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\PointLight.h">
|
||||
<Filter>02.GameObjects\Environment\99.Lights\PointLight</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -801,15 +807,9 @@
|
||||
<Filter Include="01.Levels\99.Restart">
|
||||
<UniqueIdentifier>{e12b3048-dd6d-41bf-b346-e4abdaa4f215}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\Lights">
|
||||
<UniqueIdentifier>{74f21f9b-30bf-412e-ba4e-526958ab2a52}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Cameras\Debug">
|
||||
<UniqueIdentifier>{8d89a59c-fbd2-4a4a-ab01-a70abb80cc49}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\Lights\Main">
|
||||
<UniqueIdentifier>{b24c78ef-dccc-41f0-a086-053ae6b7fbf4}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\Plane">
|
||||
<UniqueIdentifier>{603938cc-e4fe-44d8-890b-784174a86161}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -1518,6 +1518,18 @@
|
||||
<Filter Include="04.Mechanic\Dialogue">
|
||||
<UniqueIdentifier>{11c35878-12b4-4c55-b872-004fed9a4fb2}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\99.Lights">
|
||||
<UniqueIdentifier>{74f21f9b-30bf-412e-ba4e-526958ab2a52}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\99.Lights\Main">
|
||||
<UniqueIdentifier>{b24c78ef-dccc-41f0-a086-053ae6b7fbf4}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\98,WorldDecal">
|
||||
<UniqueIdentifier>{511923f0-d74a-4e9e-9fc6-30ae8ddf8d53}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\99.Lights\PointLight">
|
||||
<UniqueIdentifier>{4151af66-59d0-496d-a9a0-0c0603166192}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -1554,7 +1566,7 @@
|
||||
<Filter>02.GameObjects\Cameras\Debug</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Light_Main.cpp">
|
||||
<Filter>02.GameObjects\Environment\Lights\Main</Filter>
|
||||
<Filter>02.GameObjects\Environment\99.Lights\Main</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\PlayerInfo.cpp">
|
||||
<Filter>03.InfoInstance\00.PlayerInfo</Filter>
|
||||
@@ -2196,6 +2208,12 @@
|
||||
<ClCompile Include="..\private\Dialogue.cpp">
|
||||
<Filter>04.Mechanic\Dialogue</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\WorldDecal.cpp">
|
||||
<Filter>02.GameObjects\Environment\98,WorldDecal</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\PointLight.cpp">
|
||||
<Filter>02.GameObjects\Environment\99.Lights\PointLight</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
|
||||
@@ -134,6 +134,14 @@ HRESULT CInfoInstance::Load_ChestElemet(const _char* pFileName, const _wchar* pL
|
||||
{
|
||||
return m_pMapInfo->Load_ChestElemet(pFileName, pLayerTag);
|
||||
}
|
||||
HRESULT CInfoInstance::Load_WorldDecal(const _char* pFileName, const _wchar* pLayerTag)
|
||||
{
|
||||
return m_pMapInfo->Load_WorldDecal(pFileName, pLayerTag);
|
||||
}
|
||||
HRESULT CInfoInstance::Load_PointLights(const _char* pFileName, const _wchar* pLayerTag)
|
||||
{
|
||||
return m_pMapInfo->Load_PointLights(pFileName, pLayerTag);;
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
#pragma region SPELL_INFO
|
||||
|
||||
@@ -34,6 +34,14 @@ void CInteractiveInfo::Change_Level()
|
||||
for (CMapElement_Interactable* pInteractive : m_ActiveInteractive) {
|
||||
SAFE_RELEASE(pInteractive);
|
||||
} m_ActiveInteractive.clear();
|
||||
|
||||
for (CMapElement_Interactable* pInteractive : m_PoolingInteractive) {
|
||||
SAFE_RELEASE(pInteractive);
|
||||
} m_PoolingInteractive.clear();
|
||||
|
||||
for (CMapElement_Interactable* pInteractive : m_PoolingActiveInteractive) {
|
||||
SAFE_RELEASE(pInteractive);
|
||||
} m_PoolingActiveInteractive.clear();
|
||||
}
|
||||
|
||||
HRESULT CInteractiveInfo::Regist_ActiveInteractive(CMapElement_Interactable* pUnit)
|
||||
@@ -191,6 +199,7 @@ HRESULT CInteractiveInfo::Ready_PoolingInteractive()
|
||||
|
||||
if (nullptr != pInteractable)
|
||||
{
|
||||
SAFE_ADDREF(pInteractable);
|
||||
m_PoolingInteractive.push_back(pInteractable);
|
||||
}
|
||||
else
|
||||
|
||||
@@ -134,8 +134,8 @@ HRESULT CLevel_Field::Ready_Lights()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_float4 vDiffuse = _float4(0.3f, 0.3f, 0.3f, 0.f);
|
||||
_float4 vAmbient = _float4(0.12f, 0.12f, 0.12f, 0.f);
|
||||
_float4 vDiffuse = _float4(0.745f, 0.797f, 0.8f, 0.f);
|
||||
_float4 vAmbient = _float4(0.1f, 0.13f, 0.13f, 0.f);
|
||||
_float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f);
|
||||
|
||||
pLight->Get_Component<CLight>()->Set_Color(vDiffuse, vAmbient, vSpecular);
|
||||
@@ -187,11 +187,13 @@ HRESULT CLevel_Field::Ready_Layer_SkyBox()
|
||||
|
||||
HRESULT CLevel_Field::Ready_Background()
|
||||
{
|
||||
_float4 vColor = _float4(0.2f, 0.2f, 0.2f, 1.f);
|
||||
_float4 vColor = _float4(0.2f, 0.246f, 0.253f, 1.f);
|
||||
m_pGameInstance->Set_FogColor(vColor);
|
||||
m_pGameInstance->Set_Fog(10.f, 5.f);
|
||||
m_pGameInstance->Set_Fog(10.f, 8.f);
|
||||
|
||||
CInfoInstance::GetInstance()->Load_MapObjects("Dungeon_Map_Data", LAYER_BACKGROUND);
|
||||
CInfoInstance::GetInstance()->Load_WorldDecal("Duengon_Decal_Data", LAYER_BACKGROUND);
|
||||
CInfoInstance::GetInstance()->Load_PointLights("Duengon_PointLight_Data", LAYER_BACKGROUND);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -212,6 +212,8 @@
|
||||
#include "MapElement_Chest.h"
|
||||
#include "MapElement_Chest_Lid.h"
|
||||
#include "MapElement_Static.h"
|
||||
#include "WorldDecal.h"
|
||||
#include "PointLight.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
@@ -2830,8 +2832,6 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
HRESULT CLoader::Loading_For_Field()
|
||||
{
|
||||
m_strMessage = TEXT("텍스쳐를(을) 로딩 중 입니다.");
|
||||
|
||||
m_strMessage = TEXT("모델를(을) 로딩 중 입니다.");
|
||||
|
||||
#pragma region DUNGEON
|
||||
@@ -2922,7 +2922,6 @@ HRESULT CLoader::Loading_For_Field()
|
||||
|
||||
#pragma endregion
|
||||
|
||||
|
||||
{ // MapModels
|
||||
_uint iIndex = 0;
|
||||
for (auto& JobMapModels : jobMapModels)
|
||||
@@ -2946,12 +2945,61 @@ HRESULT CLoader::Loading_For_Field()
|
||||
}
|
||||
}
|
||||
|
||||
/* For.Prototype_Component_DecalBox */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_DecalBox"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Effect/Decal/DecalBox.fbx", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
m_strMessage = TEXT("텍스쳐를(을) 로딩 중 입니다.");
|
||||
|
||||
#pragma region MAP_TEXTURE
|
||||
/* Base_MRO */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Base_MRO"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("C:/MeshTable/Game/Environment//MasterMaterials/BaseTextures/T_Base011_MRO.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* Decal_MSK */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Decal_MSK"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("C:/MeshTable/Game/Environment/Sanctum_Dungeon/Textures/Repository/T_Rift_Material_MSK.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* Decal_Noraml */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Decal_Noraml"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("C:/MeshTable/Game/Environment/Sanctum_Dungeon/Textures/Repository/T_Rift_Veins_N.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* Decal_Fade */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Decal_Fade"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("C:/MeshTable/Game/VFX/Textures/Noises/VFX_T_Noise08_D.png"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* Decal_MaskNoise */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Decal_MaskNoise"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("C:/MeshTable/Game/VFX/Textures/Noises/VFX_T_TankMoteNoiseVinceTest_D.png"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* Decal_MaskNoise */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Decal_DiffuseMask"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("C:/MeshTable/Game/VFX/Textures/VFX_T_DementorTatter_D.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
|
||||
m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
|
||||
|
||||
m_strMessage = TEXT("이펙트를(을) 로딩 중 입니다.");
|
||||
|
||||
m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다.");
|
||||
|
||||
/* For.Prototype_GameObject_PointLight */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CPointLight>(ENUM_CLASS(LEVEL::FIELD), CPointLight::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_WorldDecal */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CWorldDecal>(ENUM_CLASS(LEVEL::FIELD), CWorldDecal::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
m_strMessage = TEXT("정보를 불러오는 중입니다.");
|
||||
|
||||
m_strMessage = TEXT("로딩이 완료되었습니다..");
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
#include "MapElement_Door.h"
|
||||
#include "MapElement_Chest.h"
|
||||
#include "MapElement_Static.h"
|
||||
#include "WorldDecal.h"
|
||||
#include "PointLight.h"
|
||||
#include "Layer.h"
|
||||
|
||||
CMapInfo::CMapInfo()
|
||||
@@ -733,6 +735,139 @@ HRESULT CMapInfo::Load_ChestElemet(const _char* pFileName, const _wchar* pLayerT
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapInfo::Load_WorldDecal(const _char* pFileName, const _wchar* pLayerTag)
|
||||
{
|
||||
tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
string strPath = "../Bin/Resources/Data/Map/Decal/" + string(pFileName) + ".xml";
|
||||
|
||||
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||
return E_FAIL;
|
||||
|
||||
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Decal");
|
||||
|
||||
if (nullptr == root)
|
||||
{
|
||||
MSG_BOX("Failed to Find root");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
|
||||
{
|
||||
CWorldDecal::WORLD_DECAL_DESC Desc = {};
|
||||
|
||||
/* Transform */
|
||||
auto* Rotation = Object->FirstChildElement("Scale");
|
||||
Rotation->QueryFloatAttribute("x", &Desc.vScale.x);
|
||||
Rotation->QueryFloatAttribute("y", &Desc.vScale.y);
|
||||
Rotation->QueryFloatAttribute("z", &Desc.vScale.z);
|
||||
|
||||
auto* Scale = Object->FirstChildElement("Rotation");
|
||||
Scale->QueryFloatAttribute("x", &Desc.vRotation.x);
|
||||
Scale->QueryFloatAttribute("y", &Desc.vRotation.y);
|
||||
Scale->QueryFloatAttribute("z", &Desc.vRotation.z);
|
||||
|
||||
auto* Position = Object->FirstChildElement("Position");
|
||||
Position->QueryFloatAttribute("x", &Desc.vPosition.x);
|
||||
Position->QueryFloatAttribute("y", &Desc.vPosition.y);
|
||||
Position->QueryFloatAttribute("z", &Desc.vPosition.z);
|
||||
|
||||
/* Decal Desc */
|
||||
auto* Shader_Value = Object->FirstChildElement("Shader_Value");
|
||||
Shader_Value->QueryFloatAttribute("UVTiling", &Desc.fUVTiling);
|
||||
Shader_Value->QueryFloatAttribute("UVSpeedX", &Desc.vUVSpeed.x);
|
||||
Shader_Value->QueryFloatAttribute("UVSpeedY", &Desc.vUVSpeed.y);
|
||||
|
||||
/* MaskRed */
|
||||
auto* MaskRed = Object->FirstChildElement("MaskRed");
|
||||
MaskRed->QueryFloatAttribute("r", &Desc.vMaskRed.x);
|
||||
MaskRed->QueryFloatAttribute("g", &Desc.vMaskRed.y);
|
||||
MaskRed->QueryFloatAttribute("b", &Desc.vMaskRed.z);
|
||||
MaskRed->QueryFloatAttribute("a", &Desc.vMaskRed.w);
|
||||
|
||||
/* MaskGreen */
|
||||
auto* MaskGreen = Object->FirstChildElement("MaskGreen");
|
||||
MaskGreen->QueryFloatAttribute("r", &Desc.vMaskGreen.x);
|
||||
MaskGreen->QueryFloatAttribute("g", &Desc.vMaskGreen.y);
|
||||
MaskGreen->QueryFloatAttribute("b", &Desc.vMaskGreen.z);
|
||||
MaskGreen->QueryFloatAttribute("a", &Desc.vMaskGreen.w);
|
||||
|
||||
/* MaskBlue */
|
||||
auto* MaskBlue = Object->FirstChildElement("MaskBlue");
|
||||
MaskBlue->QueryFloatAttribute("r", &Desc.vMaskBlue.x);
|
||||
MaskBlue->QueryFloatAttribute("g", &Desc.vMaskBlue.y);
|
||||
MaskBlue->QueryFloatAttribute("b", &Desc.vMaskBlue.z);
|
||||
MaskBlue->QueryFloatAttribute("a", &Desc.vMaskBlue.w);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CWorldDecal>(NEXT_LEVEL, NEXT_LEVEL, pLayerTag, &Desc)))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapInfo::Load_PointLights(const _char* pFilePath, const _wchar* pLayerTag)
|
||||
{
|
||||
tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
string strPath = "../Bin/Resources/Data/Map/Light/" + string(pFilePath) + ".xml";
|
||||
|
||||
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||
return E_FAIL;
|
||||
|
||||
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("MapLightObjects");
|
||||
|
||||
if (nullptr == root)
|
||||
{
|
||||
MSG_BOX("Failed to Find root");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
|
||||
{
|
||||
CPointLight::POINTLIGHT_DESC Desc = {};
|
||||
|
||||
/* Transform */
|
||||
auto* Position = Object->FirstChildElement("Position");
|
||||
Position->QueryFloatAttribute("x", &Desc.vPosition.x);
|
||||
Position->QueryFloatAttribute("y", &Desc.vPosition.y);
|
||||
Position->QueryFloatAttribute("z", &Desc.vPosition.z);
|
||||
|
||||
/* Light Desc */
|
||||
auto* Diffuse = Object->FirstChildElement("Diffuse");
|
||||
Diffuse->QueryFloatAttribute("x", &Desc.vDiffuse.x);
|
||||
Diffuse->QueryFloatAttribute("y", &Desc.vDiffuse.y);
|
||||
Diffuse->QueryFloatAttribute("z", &Desc.vDiffuse.z);
|
||||
|
||||
auto* Ambient = Object->FirstChildElement("Ambient");
|
||||
Ambient->QueryFloatAttribute("x", &Desc.vAmbient.x);
|
||||
Ambient->QueryFloatAttribute("y", &Desc.vAmbient.y);
|
||||
Ambient->QueryFloatAttribute("z", &Desc.vAmbient.z);
|
||||
|
||||
auto* Specular = Object->FirstChildElement("Specular");
|
||||
Specular->QueryFloatAttribute("x", &Desc.vSpecular.x);
|
||||
Specular->QueryFloatAttribute("y", &Desc.vSpecular.y);
|
||||
Specular->QueryFloatAttribute("z", &Desc.vSpecular.z);
|
||||
|
||||
auto* PosOffset = Object->FirstChildElement("PosOffset");
|
||||
PosOffset->QueryFloatAttribute("x", &Desc.vPosOffset.x);
|
||||
PosOffset->QueryFloatAttribute("y", &Desc.vPosOffset.y);
|
||||
PosOffset->QueryFloatAttribute("z", &Desc.vPosOffset.z);
|
||||
|
||||
auto* Info = Object->FirstChildElement("Info");
|
||||
Info->QueryFloatAttribute("LightAttRange", &Desc.fLightAttRange);
|
||||
Info->QueryFloatAttribute("LightAttSpeed", &Desc.fLightAttSpeed);
|
||||
Info->QueryFloatAttribute("Range", &Desc.fRange);
|
||||
_uint iPow = {};
|
||||
Info->QueryUnsignedAttribute("Pow", &iPow);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPointLight>(NEXT_LEVEL, NEXT_LEVEL, pLayerTag, &Desc)))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapInfo::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
|
||||
{
|
||||
m_pGameInstance = CGameInstance::GetInstance();
|
||||
|
||||
@@ -0,0 +1,133 @@
|
||||
#include "pch.h"
|
||||
#include "PointLight.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "Layer.h"
|
||||
|
||||
CPointLight::CPointLight(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CPointLight::CPointLight(const CPointLight& rhs)
|
||||
: CGameObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
void CPointLight::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CPointLight::Update(_float fTimeDelta)
|
||||
{
|
||||
m_fAttenuationTime += fTimeDelta * m_fLightIntensitySpeed;
|
||||
}
|
||||
|
||||
void CPointLight::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pLightCom->Set_AttPower(sinf(m_fAttenuationTime) * sinf(m_fAttenuationTime) * m_fLightIntensity + m_fLightIntensity + 1.f);
|
||||
}
|
||||
|
||||
HRESULT CPointLight::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CPointLight::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CPointLight::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CPointLight::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
LIGHT_DESC LightDesc{};
|
||||
LightDesc.iLevel = NEXT_LEVEL;
|
||||
LightDesc.pPosition = m_pTransformCom->Get_StatePtr(STATE::POSITION);
|
||||
|
||||
|
||||
POINTLIGHT_DESC* pDesc = static_cast<POINTLIGHT_DESC*>(pArg);
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
|
||||
LightDesc.eType = LIGHT::POINT;
|
||||
LightDesc.vDiffuse = pDesc->vDiffuse;
|
||||
LightDesc.vAmbient = pDesc->vAmbient;
|
||||
LightDesc.vSpecular = pDesc->vSpecular;
|
||||
LightDesc.vPosOffset = _float4(pDesc->vPosOffset.x, pDesc->vPosOffset.y, pDesc->vPosOffset.z, 1.f);
|
||||
LightDesc.fRange = pDesc->fRange;
|
||||
|
||||
m_fLightIntensity = pDesc->fLightAttRange;
|
||||
m_fLightIntensitySpeed = pDesc->fLightAttSpeed;
|
||||
|
||||
/* Com_Light*/
|
||||
if (FAILED(Add_Component<CLight>(g_iStaticLevel, &m_pLightCom, &LightDesc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGameInstance->Add_Light(NEXT_LEVEL, m_pLightCom);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CPointLight::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CPointLight* CPointLight::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CPointLight* pInstance = new CPointLight(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CPointLight");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CPointLight::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CPointLight* pInstance = new CPointLight(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CPointLight");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
void CPointLight::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pLightCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CPointLight::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -0,0 +1,255 @@
|
||||
#include "pch.h"
|
||||
#include "WorldDecal.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
|
||||
CWorldDecal::CWorldDecal(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CWorldDecal::CWorldDecal(const CWorldDecal& rhs)
|
||||
: CGameObject(rhs)
|
||||
, m_fWinSizeX{ rhs.m_fWinSizeX }
|
||||
, m_fWinSizeY{ rhs.m_fWinSizeY }
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CWorldDecal::Initialize_Prototype()
|
||||
{
|
||||
m_fWinSizeX = g_iWinSizeX;
|
||||
m_fWinSizeY = g_iWinSizeY;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CWorldDecal::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
WORLD_DECAL_DESC* pDesc = static_cast<WORLD_DECAL_DESC*>(pArg);
|
||||
m_pTransformCom->Set_Scale(pDesc->vScale);
|
||||
m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z));
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
|
||||
|
||||
m_fUVTiling = pDesc->fUVTiling;
|
||||
m_vUVSpeed = pDesc->vUVSpeed;
|
||||
m_vMaskRed = pDesc->vMaskRed;
|
||||
m_vMaskGreen = pDesc->vMaskGreen;
|
||||
m_vMaskBlue = pDesc->vMaskBlue;
|
||||
|
||||
_float fBoxRadius = 0.86f; // 1,1,1 기준
|
||||
_float fMaxScale = max(pDesc->vScale.x, max(pDesc->vScale.y, pDesc->vScale.z)) * fBoxRadius;
|
||||
|
||||
m_pTransformCom->Set_Radius(fMaxScale);
|
||||
|
||||
XMStoreFloat4x4(&m_WorldMatrixInv, m_pTransformCom->Get_WorldMatrixInv());
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CWorldDecal::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CWorldDecal::Update(_float fTimeDelta)
|
||||
{
|
||||
m_fTimeAcc.x += fTimeDelta * m_vUVSpeed.x;
|
||||
m_fTimeAcc.y += fTimeDelta * m_vUVSpeed.y;
|
||||
}
|
||||
|
||||
void CWorldDecal::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_pGameInstance->IsIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::DECAL, this);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CWorldDecal::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_uint iNumMesh = m_pModelCom->Get_NumMeshes();
|
||||
|
||||
for (_uint i = 0; i < iNumMesh; i++)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_MaskingTexture", m_pMaskTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_NormalTexture", m_pNormalTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_SurfaceParamsTexture", m_pSurfaceTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_NoiseTexture", m_pFadeTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_DiffsueMaskTexture", m_pDiffuseMaskTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DECAL)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CWorldDecal::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Decal_MSK"),
|
||||
reinterpret_cast<CComponent**>(&m_pMaskTextureCom))))
|
||||
return E_FAIL;
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Decal_Noraml"),
|
||||
reinterpret_cast<CComponent**>(&m_pNormalTextureCom))))
|
||||
return E_FAIL;
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Base_MRO"),
|
||||
reinterpret_cast<CComponent**>(&m_pSurfaceTextureCom))))
|
||||
return E_FAIL;
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Decal_Fade"),
|
||||
reinterpret_cast<CComponent**>(&m_pFadeTextureCom))))
|
||||
return E_FAIL;
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Decal_DiffuseMask"),
|
||||
reinterpret_cast<CComponent**>(&m_pDiffuseMaskTextureCom))))
|
||||
return E_FAIL;
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_DecalBox"),
|
||||
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 CWorldDecal::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_Matrix("g_WorldMatrixInv", &m_WorldMatrixInv))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW_INV)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ_INV)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fUsingSurfaceParams", &m_fUsingSurfaceParams, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fWinSizeX", &m_fWinSizeX, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fWinSizeY", &m_fWinSizeY, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vTime", &m_fTimeAcc, sizeof(_float2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fUVTiling", &m_fUVTiling, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vMaskColorRed", &m_vMaskRed, sizeof(_float4)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vMaskColorGreen", &m_vMaskGreen, sizeof(_float4)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vMaskColorBlue", &m_vMaskBlue, sizeof(_float4)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Depth"), m_pShaderCom, "g_DepthTexture"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_NormalCopy"), m_pShaderCom, "g_NormalMapTexture"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CWorldDecal* CWorldDecal::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CWorldDecal* pInstance = new CWorldDecal(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CWorldDecal");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CWorldDecal::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CWorldDecal* pInstance = new CWorldDecal(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CWorldDecal");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CWorldDecal::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuseMaskTextureCom);
|
||||
SAFE_RELEASE(m_pFadeTextureCom);
|
||||
SAFE_RELEASE(m_pMaskTextureCom);
|
||||
SAFE_RELEASE(m_pNormalTextureCom);
|
||||
SAFE_RELEASE(m_pSurfaceTextureCom);
|
||||
SAFE_RELEASE(m_pModelCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CWorldDecal::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -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, GLASS_CUBE,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, LEVIOSO, DECAL, 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 };
|
||||
|
||||
@@ -54,6 +54,8 @@ DECLARE_SINGLETON(CInfoInstance)
|
||||
HRESULT Load_WaterElemet(const _char* pFileName);
|
||||
HRESULT Load_DoorElemet(const _char* pFileName, const _wchar* pLayerTag);
|
||||
HRESULT Load_ChestElemet(const _char* pFileName, const _wchar* pLayerTag);
|
||||
HRESULT Load_WorldDecal(const _char* pFileName, const _wchar* pLayerTag);
|
||||
HRESULT Load_PointLights(const _char* pFileName, const _wchar* pLayerTag);
|
||||
#pragma endregion
|
||||
#pragma region Spell_INFO
|
||||
HRESULT Load_SpellInfo(const _char* pFilePath);
|
||||
|
||||
@@ -27,6 +27,8 @@ class CMapInfo final : public CBase
|
||||
HRESULT Load_WaterElemet(const _char* pFileName);
|
||||
HRESULT Load_DoorElemet(const _char* pFileName, const _wchar* pLayerTag);
|
||||
HRESULT Load_ChestElemet(const _char* pFileName, const _wchar* pLayerTag);
|
||||
HRESULT Load_WorldDecal(const _char* pFileName, const _wchar* pLayerTag);
|
||||
HRESULT Load_PointLights(const _char* pFilePath, const _wchar* pLayerTag);
|
||||
|
||||
private:
|
||||
CGameInstance* m_pGameInstance = { nullptr };
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "GameObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CLight;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CPointLight final : public CGameObject
|
||||
{
|
||||
public:
|
||||
typedef struct tagPointLightDesc
|
||||
{
|
||||
_float3 vPosition;
|
||||
_float4 vDiffuse;
|
||||
_float4 vAmbient;
|
||||
_float4 vSpecular;
|
||||
_float3 vPosOffset;
|
||||
_float fRange;
|
||||
_float fLightAttRange;
|
||||
_float fLightAttSpeed;
|
||||
_float fPow;
|
||||
|
||||
}POINTLIGHT_DESC;
|
||||
private:
|
||||
CPointLight(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CPointLight(const CPointLight& rhs);
|
||||
virtual ~CPointLight() = 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:
|
||||
CLight* m_pLightCom = { nullptr };
|
||||
|
||||
_float m_fAttenuationTime = { 0.f };
|
||||
_float m_fLightIntensity = { 1.f };
|
||||
_float m_fLightIntensitySpeed = { 1.f };
|
||||
|
||||
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 CPointLight* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,79 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "GameObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CModel;
|
||||
class CShader;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CWorldDecal final : public CGameObject
|
||||
{
|
||||
public:
|
||||
typedef struct tagWorldDecalDesc
|
||||
{
|
||||
_float3 vPosition = {};
|
||||
_float3 vRotation = {};
|
||||
_float3 vScale = { 1.f, 1.f, 1.f };
|
||||
_float fUVTiling = { 1.f };
|
||||
_float2 vUVSpeed = {};
|
||||
_float4 vMaskRed = {};
|
||||
_float4 vMaskGreen = {};
|
||||
_float4 vMaskBlue = {};
|
||||
}WORLD_DECAL_DESC;
|
||||
|
||||
private:
|
||||
CWorldDecal(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CWorldDecal(const CWorldDecal& rhs);
|
||||
virtual ~CWorldDecal() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
|
||||
private:
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CModel* m_pModelCom = { nullptr };
|
||||
|
||||
CTexture* m_pMaskTextureCom = { nullptr };
|
||||
CTexture* m_pNormalTextureCom = { nullptr };
|
||||
CTexture* m_pSurfaceTextureCom = { nullptr };
|
||||
CTexture* m_pFadeTextureCom = { nullptr };
|
||||
CTexture* m_pDiffuseMaskTextureCom = { nullptr };
|
||||
|
||||
_float m_fUVTiling = { 1.f };
|
||||
_float m_fUsingSurfaceParams = {};
|
||||
|
||||
_float m_fWinSizeX = {};
|
||||
_float m_fWinSizeY = {};
|
||||
|
||||
_float2 m_fTimeAcc = {};
|
||||
_float2 m_vUVSpeed = {};
|
||||
|
||||
_float4 m_vMaskRed = {};
|
||||
_float4 m_vMaskGreen = {};
|
||||
_float4 m_vMaskBlue = {};
|
||||
|
||||
_float4x4 m_WorldMatrixInv = {};
|
||||
|
||||
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 CWorldDecal* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,138 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Decal>
|
||||
<Object Type="0">
|
||||
<Position x="23.064043" y="17.79904" z="36.001831"/>
|
||||
<Scale x="3.2999971" y="5.7000027" z="3.9499965"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="1" UVSpeedX="-0.050000001" UVSpeedY="0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="0.60337555" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="25.208988" y="9.4919615" z="63.437943"/>
|
||||
<Scale x="10" y="10" z="10"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="1" UVSpeedX="0.050000001" UVSpeedY="0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="0.67932487" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="-14.628001" y="0.34812045" z="80.740379"/>
|
||||
<Scale x="10" y="5.7499948" z="10"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="0.80000001" UVSpeedX="0.050000001" UVSpeedY="0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="0.41772151" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="14.87022" y="-0.71029562" z="123.57125"/>
|
||||
<Scale x="10" y="5" z="10"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="1" UVSpeedX="-0.050000001" UVSpeedY="-0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="1" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="-48.32011" y="-2.859134" z="159.40923"/>
|
||||
<Scale x="15" y="15" z="15"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="1.5" UVSpeedX="0.050000001" UVSpeedY="0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="1" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="-63.254097" y="8.0953531" z="100.58904"/>
|
||||
<Scale x="20" y="20" z="20"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="1" UVSpeedX="0.050000001" UVSpeedY="0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="1" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="-24.19603" y="-2.1925411" z="134.61833"/>
|
||||
<Scale x="5" y="5" z="5"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="1" UVSpeedX="0.050000001" UVSpeedY="0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="1" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="41.522991" y="3.4805374" z="92.902313"/>
|
||||
<Scale x="10" y="10" z="10"/>
|
||||
<Rotation x="-6" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="1" UVSpeedX="0.1" UVSpeedY="0.0099999998"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="0.61603379" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="0.41940498" y="-56.286255" z="326.91235"/>
|
||||
<Scale x="40" y="40" z="40"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="1.5" UVSpeedX="0.050000001" UVSpeedY="0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="1" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="140.95218" y="-19.485357" z="207.52498"/>
|
||||
<Scale x="40" y="40" z="40"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="1" UVSpeedX="0.050000001" UVSpeedY="0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="1" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="21.363962" y="-52.246094" z="141.66223"/>
|
||||
<Scale x="40" y="40" z="40"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="2" UVSpeedX="0.050000001" UVSpeedY="0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="1" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="138.24527" y="-24.035309" z="330.08545"/>
|
||||
<Scale x="20" y="20" z="20"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="1" UVSpeedX="0.050000001" UVSpeedY="0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="1" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="98.079231" y="43.717194" z="184.50642"/>
|
||||
<Scale x="50" y="60" z="50"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="1.8" UVSpeedX="0.050000001" UVSpeedY="0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="1" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="-91.378159" y="31.625393" z="307.6268"/>
|
||||
<Scale x="90" y="80" z="90"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="1.5" UVSpeedX="-0.050000001" UVSpeedY="-0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="1" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="15.310637" y="-60.154591" z="221.93025"/>
|
||||
<Scale x="60" y="0.40000001" z="60"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="6" UVSpeedX="-0.02" UVSpeedY="-0.02"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="1" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
</Decal>
|
||||
@@ -1,33 +1,123 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<MapLightObjects>
|
||||
<Object>
|
||||
<Position x="22.502481" y="27.118675" z="36.93272"/>
|
||||
<Position x="14.413321" y="-0.74579668" z="123.6903"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0" z="0"/>
|
||||
<Ambient x="1" y="0" z="0"/>
|
||||
<Specular x="0.2" y="0" z="0"/>
|
||||
<PosOffset x="0" y="0" z="0"/>
|
||||
<Info Range="33" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
<Info Range="12" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-17.661867" y="0.62647653" z="110.38875"/>
|
||||
<Position x="23.764732" y="17.500727" z="36.780281"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0" z="0"/>
|
||||
<Ambient x="1" y="0" z="0"/>
|
||||
<Specular x="0.2" y="0" z="0"/>
|
||||
<PosOffset x="0" y="0" z="0"/>
|
||||
<Info Range="17" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
<Info Range="7" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="26.202196" y="-59.652584" z="295.25424"/>
|
||||
<Position x="24.508326" y="7.4453187" z="66.289886"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0" z="0"/>
|
||||
<Ambient x="1" y="0" z="0"/>
|
||||
<Specular x="0.2" y="0" z="0"/>
|
||||
<PosOffset x="0" y="0" z="0"/>
|
||||
<Info Range="25" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
<Info Range="11" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-14.094388" y="1.1009431" z="80.09259"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0" z="0"/>
|
||||
<Ambient x="1" y="0" z="0"/>
|
||||
<Specular x="0.2" y="0" z="0"/>
|
||||
<PosOffset x="0" y="0" z="0"/>
|
||||
<Info Range="10" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-56.559349" y="14.785403" z="101.42036"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0" z="0"/>
|
||||
<Ambient x="1" y="0" z="0"/>
|
||||
<Specular x="0.2" y="0" z="0"/>
|
||||
<PosOffset x="0" y="0" z="0"/>
|
||||
<Info Range="22" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="81.734085" y="57.872528" z="173.21597"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0" z="0"/>
|
||||
<Ambient x="1" y="0" z="0"/>
|
||||
<Specular x="1" y="0" z="0"/>
|
||||
<PosOffset x="7" y="9" z="7"/>
|
||||
<Info Range="61" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-49.58091" y="-3.5738029" z="160.27904"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0" z="0"/>
|
||||
<Ambient x="1" y="0" z="0"/>
|
||||
<Specular x="0.2" y="0" z="0"/>
|
||||
<PosOffset x="0" y="0" z="0"/>
|
||||
<Info Range="19" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="3.1544192" y="-55.74688" z="328.32199"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0" z="0"/>
|
||||
<Ambient x="1" y="0" z="0"/>
|
||||
<Specular x="0.2" y="0" z="0"/>
|
||||
<PosOffset x="0" y="0" z="0"/>
|
||||
<Info Range="49" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="139.00926" y="-25.585093" z="331.18787"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0" z="0"/>
|
||||
<Ambient x="1" y="0" z="0"/>
|
||||
<Specular x="0.2" y="0" z="0"/>
|
||||
<PosOffset x="0" y="0" z="0"/>
|
||||
<Info Range="40" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="140.63963" y="-19.12134" z="208.22488"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0" z="0"/>
|
||||
<Ambient x="1" y="0" z="0"/>
|
||||
<Specular x="1" y="0" z="0"/>
|
||||
<PosOffset x="0" y="0" z="0"/>
|
||||
<Info Range="64" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="18.077103" y="-49.567036" z="147.19336"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0" z="0"/>
|
||||
<Ambient x="1" y="0" z="0"/>
|
||||
<Specular x="0.2" y="0" z="0"/>
|
||||
<PosOffset x="0" y="0" z="0"/>
|
||||
<Info Range="55" LightAttRange="1.5" LightAttSpeed="1" Pow="1"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-93.278625" y="26.359657" z="307.81937"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0" z="0"/>
|
||||
<Ambient x="1" y="0" z="0"/>
|
||||
<Specular x="0.2" y="0" z="0"/>
|
||||
<PosOffset x="0" y="0" z="0"/>
|
||||
<Info Range="106" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
</Object>
|
||||
</MapLightObjects>
|
||||
|
||||
@@ -18,7 +18,6 @@ CDummyDecal::CDummyDecal(const CDummyDecal& rhs)
|
||||
|
||||
HRESULT CDummyDecal::Initialize_Prototype()
|
||||
{
|
||||
|
||||
m_fWinSizeX = g_iWinSizeX;
|
||||
m_fWinSizeY = g_iWinSizeY;
|
||||
|
||||
@@ -33,11 +32,33 @@ HRESULT CDummyDecal::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
m_vMaskRed = _float4(1.f, 0.f, 0.f, 1.f);
|
||||
m_vMaskGreen = _float4(0.f, 0.f, 0.f, 0.f);
|
||||
m_vMaskBlue = _float4(1.f, 0.f, 0.f, 1.f);
|
||||
_float fMaxScale = 1.f;
|
||||
|
||||
m_vUVSpeed = _float2(0.1f, 0.1f);
|
||||
if (nullptr != pArg)
|
||||
{
|
||||
DUMMY_DECAL_DESC* pDesc = static_cast<DUMMY_DECAL_DESC*>(pArg);
|
||||
m_pTransformCom->Set_Scale(pDesc->vScale);
|
||||
m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z));
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
|
||||
|
||||
m_fUVTiling = pDesc->fUVTiling;
|
||||
m_vUVSpeed = pDesc->vUVSpeed;
|
||||
m_vMaskRed = pDesc->vMaskRed;
|
||||
m_vMaskGreen = pDesc->vMaskGreen;
|
||||
m_vMaskBlue = pDesc->vMaskBlue;
|
||||
|
||||
_float fBoxRadius = 0.86f; // 1,1,1 기준
|
||||
fMaxScale = max(pDesc->vScale.x, max(pDesc->vScale.y, pDesc->vScale.z));
|
||||
}
|
||||
else
|
||||
{
|
||||
m_vMaskRed = _float4(1.f, 0.f, 0.f, 1.f);
|
||||
m_vMaskGreen = _float4(0.f, 0.f, 0.f, 0.f);
|
||||
m_vMaskBlue = _float4(1.f, 0.f, 0.f, 1.f);
|
||||
m_vUVSpeed = _float2(0.05f, 0.05f);
|
||||
}
|
||||
|
||||
m_pTransformCom->Set_Radius(fMaxScale);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -52,14 +73,14 @@ void CDummyDecal::Update(_float fTimeDelta)
|
||||
m_fTimeAcc.x += fTimeDelta * m_vUVSpeed.x;
|
||||
m_fTimeAcc.y += fTimeDelta * m_vUVSpeed.y;
|
||||
|
||||
Describe_Entity();
|
||||
//Describe_Entity();
|
||||
}
|
||||
|
||||
void CDummyDecal::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
//if (m_pGameInstance->IsIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
|
||||
if (m_pGameInstance->IsIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::DECAL, this);
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CDummyDecal::Render()
|
||||
@@ -270,6 +291,80 @@ void CDummyDecal::Describe_Entity()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
HRESULT CDummyDecal::Save_XML(tinyxml2::XMLDocument& doc, tinyxml2::XMLElement* root)
|
||||
{
|
||||
tinyxml2::XMLElement* object = doc.NewElement("Object");
|
||||
object->SetAttribute("Type", 0);
|
||||
root->InsertEndChild(object);
|
||||
|
||||
|
||||
#pragma region TRANSFORM
|
||||
_float3 vPosition = {};
|
||||
XMStoreFloat3(&vPosition, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
|
||||
_float3 vScale = m_pTransformCom->Get_Scale();
|
||||
|
||||
_float3 vRotation = m_pTransformCom->Get_Rotation();
|
||||
|
||||
|
||||
tinyxml2::XMLElement* Position = doc.NewElement("Position");
|
||||
Position->SetAttribute("x", vPosition.x);
|
||||
Position->SetAttribute("y", vPosition.y);
|
||||
Position->SetAttribute("z", vPosition.z);
|
||||
object->InsertEndChild(Position);
|
||||
|
||||
tinyxml2::XMLElement* Scale = doc.NewElement("Scale");
|
||||
Scale->SetAttribute("x", vScale.x);
|
||||
Scale->SetAttribute("y", vScale.y);
|
||||
Scale->SetAttribute("z", vScale.z);
|
||||
object->InsertEndChild(Scale);
|
||||
|
||||
tinyxml2::XMLElement* Rotation = doc.NewElement("Rotation");
|
||||
Rotation->SetAttribute("x", vRotation.x);
|
||||
Rotation->SetAttribute("y", vRotation.y);
|
||||
Rotation->SetAttribute("z", vRotation.z);
|
||||
object->InsertEndChild(Rotation);
|
||||
#pragma endregion
|
||||
|
||||
#pragma region DECAL
|
||||
|
||||
/* Diffuse */
|
||||
tinyxml2::XMLElement* Shader_Value = doc.NewElement("Shader_Value");
|
||||
Shader_Value->SetAttribute("UVTiling", m_fUVTiling);
|
||||
Shader_Value->SetAttribute("UVSpeedX", m_vUVSpeed.x);
|
||||
Shader_Value->SetAttribute("UVSpeedY", m_vUVSpeed.y);
|
||||
object->InsertEndChild(Shader_Value);
|
||||
|
||||
/* MaskRed */
|
||||
tinyxml2::XMLElement* MaskRed = doc.NewElement("MaskRed");
|
||||
MaskRed->SetAttribute("r", m_vMaskRed.x);
|
||||
MaskRed->SetAttribute("g", m_vMaskRed.y);
|
||||
MaskRed->SetAttribute("b", m_vMaskRed.z);
|
||||
MaskRed->SetAttribute("a", m_vMaskRed.w);
|
||||
object->InsertEndChild(MaskRed);
|
||||
|
||||
/* MaskGreen */
|
||||
tinyxml2::XMLElement* MaskGreen = doc.NewElement("MaskGreen");
|
||||
MaskGreen->SetAttribute("r", m_vMaskGreen.x);
|
||||
MaskGreen->SetAttribute("g", m_vMaskGreen.y);
|
||||
MaskGreen->SetAttribute("b", m_vMaskGreen.z);
|
||||
MaskGreen->SetAttribute("a", m_vMaskGreen.w);
|
||||
object->InsertEndChild(MaskGreen);
|
||||
|
||||
/* MaskBlue */
|
||||
tinyxml2::XMLElement* MaskBlue = doc.NewElement("MaskBlue");
|
||||
MaskBlue->SetAttribute("r", m_vMaskBlue.x);
|
||||
MaskBlue->SetAttribute("g", m_vMaskBlue.y);
|
||||
MaskBlue->SetAttribute("b", m_vMaskBlue.z);
|
||||
MaskBlue->SetAttribute("a", m_vMaskBlue.w);
|
||||
object->InsertEndChild(MaskBlue);
|
||||
|
||||
#pragma endregion
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -92,6 +92,11 @@ HRESULT CInfoInstance::Load_PointLights(const _char* pFilePath)
|
||||
{
|
||||
return m_pMapInfo->Load_PointLights(pFilePath);
|
||||
}
|
||||
HRESULT CInfoInstance::Load_Decal(const _char* pFilePath)
|
||||
{
|
||||
return m_pMapInfo->Load_Decal(pFilePath);
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
#pragma region MAP_INFO
|
||||
|
||||
|
||||
@@ -121,12 +121,11 @@ HRESULT CLevel_MapViewer::Ready_Layer_Camera(const _wstring& strLayerTag)
|
||||
|
||||
HRESULT CLevel_MapViewer::Ready_Layer_Background(const _wstring& strLayerTag)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummyDecal>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummySkyBox>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -141,8 +141,8 @@ HRESULT CMainLight::Ready_Components()
|
||||
LightDesc.iLevel = NEXT_LEVEL;
|
||||
|
||||
#ifdef gimch
|
||||
LightDesc.vDiffuse = _float4(0.7f, 0.7f, 0.7f, 0.f);
|
||||
LightDesc.vAmbient = _float4(0.3f, 0.3f, 0.3f, 0.f);
|
||||
LightDesc.vDiffuse = _float4(0.745f, 0.797f, 0.8f, 0.f);
|
||||
LightDesc.vAmbient = _float4(0.417f, 0.533f, 0.544f, 0.f);
|
||||
#endif // gimch
|
||||
|
||||
|
||||
@@ -159,9 +159,9 @@ HRESULT CMainLight::Ready_Components()
|
||||
m_pGameInstance->Set_Fog(5.f, 30.f);
|
||||
|
||||
#ifdef gimch
|
||||
//vColor = _float4(0.2f, 0.2f, 0.2f, 1.f);
|
||||
//m_pGameInstance->Set_FogColor(vColor);
|
||||
//m_pGameInstance->Set_Fog(10.f, 5.f);
|
||||
vColor = _float4(0.2f, 0.246f, 0.256f, 1.f);
|
||||
m_pGameInstance->Set_FogColor(vColor);
|
||||
m_pGameInstance->Set_Fog(10.f, 10.f);
|
||||
#endif // gimch
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "MapElement_Interactable.h"
|
||||
#include "MapObject_LOD.h"
|
||||
#include "LightSpawner.h"
|
||||
#include "DummyDecal.h"
|
||||
|
||||
CMapInfo::CMapInfo()
|
||||
{
|
||||
@@ -318,6 +319,77 @@ HRESULT CMapInfo::Load_PointLights(const _char* pFilePath)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapInfo::Load_Decal(const _char* pFilePath)
|
||||
{
|
||||
tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
string strPath = "../Bin/Resources/Data/Map/Decal/" + string(pFilePath) + ".xml";
|
||||
|
||||
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||
return E_FAIL;
|
||||
|
||||
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Decal");
|
||||
|
||||
if (nullptr == root)
|
||||
{
|
||||
MSG_BOX("Failed to Find root");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
|
||||
{
|
||||
CDummyDecal::DUMMY_DECAL_DESC Desc = {};
|
||||
|
||||
/* Transform */
|
||||
auto* Rotation = Object->FirstChildElement("Scale");
|
||||
Rotation->QueryFloatAttribute("x", &Desc.vScale.x);
|
||||
Rotation->QueryFloatAttribute("y", &Desc.vScale.y);
|
||||
Rotation->QueryFloatAttribute("z", &Desc.vScale.z);
|
||||
|
||||
auto* Scale = Object->FirstChildElement("Rotation");
|
||||
Scale->QueryFloatAttribute("x", &Desc.vRotation.x);
|
||||
Scale->QueryFloatAttribute("y", &Desc.vRotation.y);
|
||||
Scale->QueryFloatAttribute("z", &Desc.vRotation.z);
|
||||
|
||||
auto* Position = Object->FirstChildElement("Position");
|
||||
Position->QueryFloatAttribute("x", &Desc.vPosition.x);
|
||||
Position->QueryFloatAttribute("y", &Desc.vPosition.y);
|
||||
Position->QueryFloatAttribute("z", &Desc.vPosition.z);
|
||||
|
||||
/* Decal Desc */
|
||||
auto* Shader_Value = Object->FirstChildElement("Shader_Value");
|
||||
Shader_Value->QueryFloatAttribute("UVTiling", &Desc.fUVTiling);
|
||||
Shader_Value->QueryFloatAttribute("UVSpeedX", &Desc.vUVSpeed.x);
|
||||
Shader_Value->QueryFloatAttribute("UVSpeedY", &Desc.vUVSpeed.y);
|
||||
|
||||
/* MaskRed */
|
||||
auto* MaskRed = Object->FirstChildElement("MaskRed");
|
||||
MaskRed->QueryFloatAttribute("r", &Desc.vMaskRed.x);
|
||||
MaskRed->QueryFloatAttribute("g", &Desc.vMaskRed.y);
|
||||
MaskRed->QueryFloatAttribute("b", &Desc.vMaskRed.z);
|
||||
MaskRed->QueryFloatAttribute("a", &Desc.vMaskRed.w);
|
||||
|
||||
/* MaskGreen */
|
||||
auto* MaskGreen = Object->FirstChildElement("MaskGreen");
|
||||
MaskGreen->QueryFloatAttribute("r", &Desc.vMaskGreen.x);
|
||||
MaskGreen->QueryFloatAttribute("g", &Desc.vMaskGreen.y);
|
||||
MaskGreen->QueryFloatAttribute("b", &Desc.vMaskGreen.z);
|
||||
MaskGreen->QueryFloatAttribute("a", &Desc.vMaskGreen.w);
|
||||
|
||||
/* MaskBlue */
|
||||
auto* MaskBlue = Object->FirstChildElement("MaskBlue");
|
||||
MaskBlue->QueryFloatAttribute("r", &Desc.vMaskBlue.x);
|
||||
MaskBlue->QueryFloatAttribute("g", &Desc.vMaskBlue.y);
|
||||
MaskBlue->QueryFloatAttribute("b", &Desc.vMaskBlue.z);
|
||||
MaskBlue->QueryFloatAttribute("a", &Desc.vMaskBlue.w);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummyDecal>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Decal"), &Desc)))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
HRESULT CMapInfo::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
|
||||
{
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include "MapElement_Light.h"
|
||||
#include "MapElement_Lake.h"
|
||||
#include "LightSpawner.h"
|
||||
#include "DummyDecal.h"
|
||||
|
||||
|
||||
CMapObject_Manager::CMapObject_Manager(ID3D11Device * pDevice, ID3D11DeviceContext * pContext)
|
||||
@@ -87,6 +88,8 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
|
||||
//if (FAILED(Load_InteractObject("E_INTER_TeaShopChair")))
|
||||
// return E_FAIL;
|
||||
|
||||
m_pInfoInstance->Load_Decal("Duengon_Decal_Data");
|
||||
m_pInfoInstance->Load_PointLights("Duengon_PointLight_Data");
|
||||
|
||||
#pragma region Light
|
||||
m_Light_Desc.eType = LIGHT::POINT;
|
||||
@@ -200,6 +203,7 @@ void CMapObject_Manager::Update(_float fTimeDelta)
|
||||
Update_Edit();
|
||||
|
||||
Update_LightSpawer();
|
||||
//Update_Decal();
|
||||
|
||||
Update_Unified();
|
||||
|
||||
@@ -1892,6 +1896,51 @@ HRESULT CMapObject_Manager::Save_PointLightObject(const _char* pFileName)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapObject_Manager::Save_Decal(const _char* pFileName)
|
||||
{
|
||||
CLayer* pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Decal"));
|
||||
|
||||
if (nullptr == pLayer)
|
||||
return S_OK;
|
||||
|
||||
tinyxml2::XMLDocument doc;
|
||||
string strPath = "../Bin/Resources/Data/Map/Decal/" + string(pFileName) + ".xml";
|
||||
|
||||
tinyxml2::XMLError loadResult = doc.LoadFile(strPath.c_str());
|
||||
|
||||
doc.Clear();
|
||||
doc.InsertFirstChild(doc.NewDeclaration());
|
||||
|
||||
tinyxml2::XMLElement* root = doc.NewElement("Decal");
|
||||
doc.InsertEndChild(root);
|
||||
|
||||
if (nullptr != pLayer)
|
||||
{
|
||||
const list<CGameObject*>* pList = pLayer->Get_Objects();
|
||||
|
||||
for (auto pGamObject : *pList)
|
||||
{
|
||||
CDummyDecal* pLightSpawner = dynamic_cast<CDummyDecal*>(pGamObject);
|
||||
|
||||
if (nullptr == pLightSpawner)
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(pLightSpawner->Save_XML(doc, root)))
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
if (doc.SaveFile(strPath.c_str()) != tinyxml2::XML_SUCCESS) {
|
||||
MSG_BOX("Failed to Save File");
|
||||
}
|
||||
else
|
||||
{
|
||||
MSG_BOX("Succeed to Save DummyDecals");
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMapObject_Manager::Update_PrototypeList()
|
||||
{
|
||||
GUI::Begin("Model Prototype List");
|
||||
@@ -2195,6 +2244,40 @@ void CMapObject_Manager::Update_LightSpawer()
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
void CMapObject_Manager::Update_Decal()
|
||||
{
|
||||
GUI::Begin("Map Decal");
|
||||
if (GUI::Button("Save Decals"))
|
||||
{
|
||||
Save_Decal("Duengon_Decal_Data");
|
||||
}
|
||||
if (GUI::Button("Load Decals"))
|
||||
{
|
||||
m_pInfoInstance->Load_Decal("Duengon_Decal_Data");
|
||||
}
|
||||
if (GUI::Button("Add Decals"))
|
||||
{
|
||||
m_pGameInstance->Add_GameObject_ToLayer<CDummyDecal>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Decal"));
|
||||
}
|
||||
|
||||
GUI::InputInt("Index : ", (_int*)&m_iSelectedIndex);
|
||||
CLayer* pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Decal"));
|
||||
|
||||
if (nullptr != pLayer)
|
||||
{
|
||||
_uint iIndex = {};
|
||||
for (auto& pLightSpawner : *pLayer->Get_Objects())
|
||||
{
|
||||
if (m_iSelectedIndex == iIndex)
|
||||
pLightSpawner->Describe_Entity();
|
||||
|
||||
++iIndex;
|
||||
}
|
||||
}
|
||||
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
void CMapObject_Manager::Create_PartObject(_wstring& strPrototypeTag)
|
||||
{
|
||||
vector<_uint> LodModelIndices;
|
||||
|
||||
@@ -12,6 +12,18 @@ NS_BEGIN(Editor)
|
||||
|
||||
class CDummyDecal final : public CGameObject
|
||||
{
|
||||
public:
|
||||
typedef struct tagDummyDecalDesc
|
||||
{
|
||||
_float3 vPosition = {};
|
||||
_float3 vRotation = {};
|
||||
_float3 vScale = { 1.f, 1.f, 1.f };
|
||||
_float fUVTiling = { 1.f };
|
||||
_float2 vUVSpeed = {};
|
||||
_float4 vMaskRed = {};
|
||||
_float4 vMaskGreen = {};
|
||||
_float4 vMaskBlue = {};
|
||||
}DUMMY_DECAL_DESC;
|
||||
private:
|
||||
CDummyDecal(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CDummyDecal(const CDummyDecal& rhs);
|
||||
@@ -26,6 +38,7 @@ class CDummyDecal final : public CGameObject
|
||||
private:
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CModel* m_pModelCom = { nullptr };
|
||||
|
||||
CTexture* m_pMaskTextureCom = { nullptr };
|
||||
CTexture* m_pNormalTextureCom = { nullptr };
|
||||
CTexture* m_pSurfaceTextureCom = { nullptr };
|
||||
@@ -56,6 +69,7 @@ class CDummyDecal final : public CGameObject
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
void Describe_Entity() override;
|
||||
HRESULT Save_XML(tinyxml2::XMLDocument& doc, tinyxml2::XMLElement* root);
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -42,6 +42,7 @@ class CInfoInstance final : public CBase
|
||||
#pragma region MAP_INFO
|
||||
HRESULT Load_MapObjects(const _char* pFilePath);
|
||||
HRESULT Load_PointLights(const _char* pFilePath);
|
||||
HRESULT Load_Decal(const _char* pFilePath);
|
||||
#pragma endregion
|
||||
#pragma region Spell_INFO
|
||||
HRESULT Load_SpellInfo(const _char* pFilePath);
|
||||
|
||||
@@ -19,6 +19,7 @@ class CMapInfo final : public CBase
|
||||
void Change_Level();
|
||||
HRESULT Load_MapObjects(const _char* pFilePath);
|
||||
HRESULT Load_PointLights(const _char* pFilePath);
|
||||
HRESULT Load_Decal(const _char* pFilePath);
|
||||
/*HRESULT Load_BuildingContainer(tinyxml2::XMLElement* Container, class CMapContainer** ppContainerObject);
|
||||
HRESULT Load_StreetContainer(tinyxml2::XMLElement* Container, class CMapContainer** ppContainerObject);
|
||||
HRESULT Load_MapRenderObjects(tinyxml2::XMLElement* Container, class CMapContainer* pContainerObject);
|
||||
|
||||
@@ -83,6 +83,7 @@ class CMapObject_Manager final : public CGameObject
|
||||
HRESULT Load_WaterObject(const _char* pFileName);
|
||||
|
||||
HRESULT Save_PointLightObject(const _char* pFileName);
|
||||
HRESULT Save_Decal(const _char* pFileName);
|
||||
#pragma endregion
|
||||
|
||||
void Update_PrototypeList();
|
||||
@@ -91,6 +92,7 @@ class CMapObject_Manager final : public CGameObject
|
||||
void Update_ContainerObject();
|
||||
void Update_Unified();
|
||||
void Update_LightSpawer();
|
||||
void Update_Decal();
|
||||
|
||||
void Create_PartObject(_wstring& strPrototypeTag);
|
||||
void Create_Elemnt(_wstring& strPrototypeTag);
|
||||
|
||||
@@ -112,6 +112,11 @@ HRESULT CTransform::Initialize(void* pArg)
|
||||
m_fRotationPerSec = pDesc->fRotationPerSec;
|
||||
m_fRadius = pDesc->fRadius;
|
||||
|
||||
#ifdef _DEBUG
|
||||
m_vRotation = _float3(0.f, 0.f, 0.f);
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -554,9 +559,6 @@ void CTransform::Describe_Entity()
|
||||
Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&vPosition), 1.f));
|
||||
|
||||
|
||||
XMStoreFloat3(&m_vRotation, Get_RollPitchYawVector());
|
||||
|
||||
|
||||
GUI::Text("----- Rotation ----");
|
||||
GUI::InputFloat("X##Rotation", &m_vRotation.x, 1.f, 15.f);
|
||||
GUI::InputFloat("Y##Rotation", &m_vRotation.y, 1.f, 15.f);
|
||||
|
||||
@@ -21,6 +21,7 @@ class ENGINE_DLL CTransform final :
|
||||
public:
|
||||
HRESULT Bind_ShaderResource(class CShader* pShader, const _char* pConstantName) const;
|
||||
|
||||
void Set_Radius(_float& fRadius) { m_fRadius = fRadius; }
|
||||
void Set_Scale(_float3& vScale);
|
||||
void Mult_Scale(_float3& vScale);
|
||||
void Set_State(STATE eState, _fvector vState) { XMStoreFloat4(reinterpret_cast<_float4*>(&m_WorldMatrix.m[ENUM_CLASS(eState)]), vState); }
|
||||
@@ -83,9 +84,12 @@ class ENGINE_DLL CTransform final :
|
||||
void LookAt_Horizontal(_fvector vAt);
|
||||
_float TargetDis(_fvector vTarget);
|
||||
|
||||
|
||||
void Add_SpeedPerSec(_float fSpeedPerSec);
|
||||
|
||||
#ifdef _DEBUG
|
||||
_float3& Get_Rotation() { return m_vRotation; }
|
||||
#endif // _DEBUG
|
||||
|
||||
private:
|
||||
_float m_fSpeedPerSec = {};
|
||||
_float m_fRotationPerSec = {};
|
||||
@@ -97,7 +101,7 @@ class ENGINE_DLL CTransform final :
|
||||
_float3 m_vBackMomentum = {}; // 다음 프레임에 계산될 이동량
|
||||
|
||||
#ifdef _DEBUG
|
||||
_float3 m_vRotation = {};
|
||||
_float3 m_vRotation = {0.f, 0.f, 0.f};
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
@@ -105,7 +109,6 @@ class ENGINE_DLL CTransform final :
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
|
||||
public:
|
||||
static CTransform* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override;
|
||||
|
||||
Reference in New Issue
Block a user