[add] 클라언트 호수 추가
[add] Hogwart Terrain [add] Land_Model
This commit is contained in:
@@ -176,6 +176,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\HpBarBG.h" />
|
||||
<ClInclude Include="..\Public\Intro_BG.h" />
|
||||
<ClInclude Include="..\Public\Intro_Image.h" />
|
||||
<ClInclude Include="..\public\Land.h" />
|
||||
<ClInclude Include="..\Public\Levioso.h" />
|
||||
<ClInclude Include="..\Public\Loding_Panel.h" />
|
||||
<ClInclude Include="..\Public\Logo.h" />
|
||||
@@ -189,6 +190,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\LeviosoSide.h" />
|
||||
<ClInclude Include="..\public\MapElement.h" />
|
||||
<ClInclude Include="..\public\MapElement_Interactable.h" />
|
||||
<ClInclude Include="..\public\MapElement_Lake.h" />
|
||||
<ClInclude Include="..\public\MapElement_Light.h" />
|
||||
<ClInclude Include="..\Public\Mouse_Cursor.h" />
|
||||
<ClInclude Include="..\Public\Potion.h" />
|
||||
@@ -299,6 +301,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Troll_State_Rush.h" />
|
||||
<ClInclude Include="..\Public\Troll_Weapon.h" />
|
||||
<ClInclude Include="..\public\UI_Manager.h" />
|
||||
<ClInclude Include="..\public\Unified.h" />
|
||||
<ClInclude Include="..\Public\Wand.h" />
|
||||
<ClInclude Include="Client.h" />
|
||||
<ClInclude Include="framework.h" />
|
||||
@@ -325,6 +328,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\HpBarBG.cpp" />
|
||||
<ClCompile Include="..\Private\Intro_BG.cpp" />
|
||||
<ClCompile Include="..\Private\Intro_Image.cpp" />
|
||||
<ClCompile Include="..\private\Land.cpp" />
|
||||
<ClCompile Include="..\Private\Levioso.cpp" />
|
||||
<ClCompile Include="..\Private\Loding_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\Logo.cpp" />
|
||||
@@ -338,6 +342,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\LeviosoSide.cpp" />
|
||||
<ClCompile Include="..\private\MapElement.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Interactable.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Lake.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Light.cpp" />
|
||||
<ClCompile Include="..\Private\Mouse_Cursor.cpp" />
|
||||
<ClCompile Include="..\Private\Potion.cpp" />
|
||||
@@ -451,6 +456,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Troll_State_Rush.cpp" />
|
||||
<ClCompile Include="..\Private\Troll_Weapon.cpp" />
|
||||
<ClCompile Include="..\private\UI_Manager.cpp" />
|
||||
<ClCompile Include="..\private\Unified.cpp" />
|
||||
<ClCompile Include="..\Private\Wand.cpp" />
|
||||
<ClCompile Include="Client.cpp" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -436,6 +436,15 @@
|
||||
<ClInclude Include="..\Public\CallBack_Troll_Behavior.h">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\HitReport\Monster\Troll</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Land.h">
|
||||
<Filter>02.GameObjects\Environment\04.Land</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Unified.h">
|
||||
<Filter>02.GameObjects\Environment\05.Unified</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\MapElement_Lake.h">
|
||||
<Filter>02.GameObjects\Environment\03.MapElement\Lake</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -935,6 +944,15 @@
|
||||
<Filter Include="02.GameObjects\PhysX\CallBack\HitReport\Monster\Troll">
|
||||
<UniqueIdentifier>{e12337a6-7563-4615-a8d2-a2e2e1ba1ca8}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\04.Land">
|
||||
<UniqueIdentifier>{ec267143-0bc1-4765-b8dc-6cccc50385d7}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\05.Unified">
|
||||
<UniqueIdentifier>{c268eda1-0e52-4659-8c82-a88b074d9860}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\03.MapElement\Lake">
|
||||
<UniqueIdentifier>{a357d495-f74d-4aec-919e-0f6bac3e0e7b}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -1372,7 +1390,16 @@
|
||||
<ClCompile Include="..\Private\CallBack_Troll_Behavior.cpp">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\HitReport\Monster\Troll</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ClCompile Include="..\private\Land.cpp">
|
||||
<Filter>02.GameObjects\Environment\04.Land</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Unified.cpp">
|
||||
<Filter>02.GameObjects\Environment\05.Unified</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\MapElement_Lake.cpp">
|
||||
<Filter>02.GameObjects\Environment\03.MapElement\Lake</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="Client.rc">
|
||||
<Filter>99.Define\00.DEFAULT</Filter>
|
||||
|
||||
@@ -199,7 +199,7 @@ HRESULT CCamPosition_Shoulder::Ready_SubParts()
|
||||
CCamera_Gaze::CAMERA_GAZE_DESC CameraDesc{};
|
||||
CameraDesc.fFovy = XMConvertToRadians(60.0f);
|
||||
CameraDesc.fNear = 0.1f;
|
||||
CameraDesc.fFar = 300.f;
|
||||
CameraDesc.fFar = 500.f;
|
||||
CameraDesc.fSpeedPerSec = 5.f;
|
||||
CameraDesc.fRotationPerSec = XMConvertToRadians(90.f);
|
||||
CameraDesc.pFollowTarget = m_pTarget_FollowPart;
|
||||
|
||||
@@ -0,0 +1,150 @@
|
||||
#include "pch.h"
|
||||
#include "Land.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
|
||||
CLand::CLand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CLand::CLand(const CLand& rhs)
|
||||
: CGameObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
void CLand::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CLand::Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CLand::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_pGameInstance->isIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_fRaduis))
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
|
||||
HRESULT CLand::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelCom->Bind_Material(0, m_pShaderCom)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::LAND)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelCom->Render(0))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLand::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLand::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
m_fRaduis = m_pModelCom->Get_Radius();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLand::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
LAND_DESC* pDesc = static_cast<LAND_DESC*>(pArg);
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
|
||||
m_pTransformCom->Set_Scale(pDesc->vScale);
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pDesc->strModelComTag,
|
||||
reinterpret_cast<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 CLand::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CLand* CLand::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CLand* pInstance = new CLand(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CLand");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CLand::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CLand* pInstance = new CLand(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CLand");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
void CLand::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pModelCom);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CLand::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -14,6 +14,9 @@
|
||||
#include "Terrain.h"
|
||||
#include "EffectPool.h"
|
||||
#include "InstancedProp.h"
|
||||
#include "Land.h"
|
||||
#include "Unified.h"
|
||||
#include "MapElement_Lake.h"
|
||||
|
||||
#pragma region ACTOR
|
||||
#include "Player.h"
|
||||
@@ -149,17 +152,91 @@ HRESULT CLevel_GamePlay::Ready_Lights()
|
||||
|
||||
HRESULT CLevel_GamePlay::Ready_Background()
|
||||
{
|
||||
/* Terrain */
|
||||
CTerrain::TERRAIN_DESC Terrain_Desc = {};
|
||||
/* Hogsmeade Terrain */
|
||||
Terrain_Desc.vPosition = _float3(-194, 18.5f, -153.f);
|
||||
Terrain_Desc.strVIBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade");
|
||||
Terrain_Desc.strDiffuseTextureTag = TEXT("Terrain_Diffuse");
|
||||
Terrain_Desc.strNormalTextureTag = TEXT("Terrain_Normal");
|
||||
Terrain_Desc.strMROTextureTag = TEXT("Terrain_MRO");
|
||||
Terrain_Desc.strAlphaMapTextureTag = TEXT("HogsmeadeAlphaMap");
|
||||
Terrain_Desc.strAlphaMapTextureTag = TEXT("Hogsmeade_AlphaMap");
|
||||
Terrain_Desc.strRigidBody_MeshName = TEXT("Hogsmeade_HeightMap");
|
||||
Terrain_Desc.strRigidBody_ComponentTag = TEXT("Prototype_Component_RigidBody_Static_Terrain_Hogsmeade");
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CTerrain>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_BACKGROUND, &Terrain_Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* Hogwart Terrain */
|
||||
Terrain_Desc.vPosition = _float3(-451.f, 18.5f, -791.f);
|
||||
Terrain_Desc.strVIBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogwart");
|
||||
Terrain_Desc.strDiffuseTextureTag = TEXT("Terrain_Diffuse");
|
||||
Terrain_Desc.strNormalTextureTag = TEXT("Terrain_Normal");
|
||||
Terrain_Desc.strMROTextureTag = TEXT("Terrain_MRO");
|
||||
Terrain_Desc.strAlphaMapTextureTag = TEXT("Hogwart_AlphaMap");
|
||||
Terrain_Desc.strRigidBody_MeshName = TEXT("Hogwart_HeightMap");
|
||||
Terrain_Desc.strRigidBody_ComponentTag = TEXT("Prototype_Component_RigidBody_Static_Terrain_Hogwart");
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CTerrain>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_BACKGROUND, &Terrain_Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
CLand::LAND_DESC Land_Desc = {};
|
||||
|
||||
/* South_Hogwart_Land */
|
||||
Land_Desc.vPosition = _float3(290.5f, 59.5f, -347.f);
|
||||
Land_Desc.vScale = _float3(1.f, 1.25f, 1.f);
|
||||
Land_Desc.strModelComTag = L"Prototype_Component_South_Hogwart_Land_LOD1";
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
/* North_Hogwart_Land */
|
||||
Land_Desc.vPosition = _float3(-370.f, -37.5f, -21.4f);
|
||||
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
|
||||
Land_Desc.strModelComTag = L"Prototype_Component_North_Hogwart_Land_LOD1";
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
/* North_Hogwart2_Land */
|
||||
Land_Desc.vPosition = _float3(-378.f, -17.5f, 285.6f);
|
||||
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
|
||||
Land_Desc.strModelComTag = L"Prototype_Component_North_Hogwart2_Land_LOD1";
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
/* West_Hogwart_Land */
|
||||
Land_Desc.vPosition = _float3(-653.f, 20.f, -327.4f);
|
||||
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
|
||||
Land_Desc.strModelComTag = L"Prototype_Component_West_Hogwart_Land_LOD1";
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
/* East_Hogsmeade_Land */
|
||||
Land_Desc.vPosition = _float3(436.f, 55.f, 60.3f);
|
||||
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
|
||||
Land_Desc.strModelComTag = L"Prototype_Component_East_Hogsmeade_Land_LOD1";
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Land_Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CUnified>(g_iStaticLevel, NEXT_LEVEL, LAYER_UNIFIED)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
CMapElement_Lake::MAPOBJECT_LAKE_DESC Lake_Desc = {};
|
||||
|
||||
vector<_wstring> ModelPrototypeTags;
|
||||
ModelPrototypeTags.push_back(TEXT("Prototype_Component_Hogwart_Lake"));
|
||||
Lake_Desc.iMaxLodLevel = 0;
|
||||
Lake_Desc.iRenderType = 4;
|
||||
Lake_Desc.vPosition = _float3(-144.f, -61.9f, -115.f);
|
||||
Lake_Desc.vRotation = _float3(0.f, 0.f, 0.f);
|
||||
Lake_Desc.vScale = _float3(3.f, 3.f, 3.f);
|
||||
Lake_Desc.ModelPrototypeTags = ModelPrototypeTags;
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Lake>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Lake_Desc)))
|
||||
return E_FAIL;
|
||||
// ---------------------------------
|
||||
// >> M A P Configuration <<
|
||||
// 맵 로드할지 안할지 bool 설정
|
||||
@@ -301,7 +378,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Camera()
|
||||
CCamera_Debug::CAMERA_DEBUG_DESC Camera_Desc{};
|
||||
Camera_Desc.fFovy = XMConvertToRadians(60.0f);
|
||||
Camera_Desc.fNear = 0.1f;
|
||||
Camera_Desc.fFar = 200.f;
|
||||
Camera_Desc.fFar = 500.f;
|
||||
Camera_Desc.vEye = _float3(0.f, 10.f, -10.f);
|
||||
Camera_Desc.vAt = _float3(0.f, 0.f, 0.f);
|
||||
Camera_Desc.fSpeedPerSec = 5.f;
|
||||
|
||||
@@ -141,6 +141,9 @@
|
||||
#include "InstancedProp.h"
|
||||
#include "MapElement_Light.h"
|
||||
#include "MapElement_Interactable.h"
|
||||
#include "MapElement_Lake.h"
|
||||
#include "Land.h"
|
||||
#include "Unified.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
@@ -331,6 +334,12 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{ /* Hogwart LOD */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD/",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
|
||||
if (true == isLoad_Background)
|
||||
{
|
||||
@@ -1024,7 +1033,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
//#pragma endregion
|
||||
#pragma endregion
|
||||
|
||||
#pragma region TERRAIN_TEXTURE
|
||||
/* Terrain_Diffuse */
|
||||
@@ -1042,11 +1051,16 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Terrain/Terrain_MRO_%d.dds"), 4)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* Terrain_AlphaMap */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("HogsmeadeAlphaMap"),
|
||||
/* HogsmeadeAlphaMap */
|
||||
if(FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Hogsmeade_AlphaMap"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Terrain/Hogsmeade_AlphaMap.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* HogwartAlphaMap */
|
||||
if(FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Hogwart_AlphaMap"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Terrain/Hogwart_AlphaMap.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_Component_LightPost_Emissive */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("LightPost_Emissive"),
|
||||
@@ -1070,6 +1084,51 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
#pragma region LAKE_TEXTURE
|
||||
/* For.Prototype_Component_Water_Noise_D */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("T_Noises_D"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE,
|
||||
TEXT("../Bin/Resources/Models/Lake/T_Noises_D.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_Component_T_Water_Normal_Large_N */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("T_Water_Normal_Large_N"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE,
|
||||
TEXT("../Bin/Resources/Models/Lake/T_Water_Normal_Large_N.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_Component_T_Water_Normal_Subtle_N */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("T_Water_Normal_Subtle_N"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE,
|
||||
TEXT("../Bin/Resources/Models/Lake/T_Water_Normal_Subtle_N.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_Component_T_Caustics_D */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("T_Caustics_D"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE,
|
||||
TEXT("../Bin/Resources/Models/Lake/T_Caustics_D.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_Component_T_Water_N */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("T_Water_N"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE,
|
||||
TEXT("../Bin/Resources/Models/Lake/T_Water_N.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* Lake_Cube_D */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Lake_Cube_D"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Models/Lake/SkyCube.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* Lake_Cube_D */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Lake_Refraction"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Models/Lake/T_MudSmallRocks_A_D.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
|
||||
#pragma region EFFECT
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Textures/Effect/Trails", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
@@ -1699,10 +1758,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
|
||||
#pragma region MAP PROTOTYPE
|
||||
/* For.Prototype_Component_VIBuffer_Terrain */
|
||||
/* For.Prototype_Component_VIBuffer_Terrain_Hogsmeade */
|
||||
{
|
||||
CVIBuffer_Terrain* pTerrain = CVIBuffer_Terrain::Create(m_pDevice, m_pContext, "Hogsmeade_HeightMap.bin", 512, 512);
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain"), pTerrain))) {
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade"), pTerrain))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
pTerrain->ConvertToHeightField(TEXT("Hogsmeade_HeightMap"));
|
||||
@@ -1721,7 +1780,28 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
/* For.Prototype_Component_VIBuffer_Terrain_Hogwart */
|
||||
{
|
||||
CVIBuffer_Terrain* pTerrain = CVIBuffer_Terrain::Create(m_pDevice, m_pContext, "Hogwart_HeightMap.bin", 512, 640);
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain_Hogwart"), pTerrain))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
pTerrain->ConvertToHeightField(TEXT("Hogwart_HeightMap"));
|
||||
|
||||
CRigidBody_Static::RIGIDBODY_STATIC_PROTOTYPEDESC Desc{}; // 터레인 리지드 지형 추가
|
||||
{
|
||||
Desc.eType = ACTOR::HEIGHTFIELD;
|
||||
Desc.ePxRigidBodyFlags = {};
|
||||
Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
|
||||
Desc.ePxMaterialTypes = PXMATERIAL::DEFAULT;
|
||||
Desc.fContactOffset = 0.001f;
|
||||
Desc.vMatInfo = { 1.2f, 1.0f, 0.0f };
|
||||
}
|
||||
CRigidBody_Static* pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc);
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_RigidBody_Static_Terrain_Hogwart"), pRigid))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
#pragma region MAP_INSTANCE
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA */
|
||||
@@ -1799,6 +1879,40 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
#pragma endregion
|
||||
|
||||
/* For.Prototype_Component_South_Hogwart_Land_LOD1 */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_South_Hogwart_Land_LOD1"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BCLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_North_Hogwart_Land_LOD1 */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart_Land_LOD1"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AVLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_North_Hogwart2_Land_LOD1 */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart2_Land_LOD1"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AULOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_West_Hogwart_Land_LOD1 */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_West_Hogwart_Land_LOD1"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AZLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_East_Hogwart_Land_LOD1 */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_East_Hogsmeade_Land_LOD1"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AYLOD/SM_LandscapeStreamingProxy_0_LOD1.bin"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_Hogwart_Lake */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogwart_Lake"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Lake/SM_Lake_A_Collision_Deep.bin", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_Hogwart_LakeSurFace */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogwart_LakeSurFace"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Lake/SM_Lake_A_Collision_Shallow.bin", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Box */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Box"),
|
||||
@@ -1842,6 +1956,19 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMapElement_Interactable>(g_iStaticLevel, CMapElement_Interactable::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_Unified */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMapElement_Lake>(g_iStaticLevel, CMapElement_Lake::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_Land */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLand>(g_iStaticLevel, CLand::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_Unified */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CUnified>(g_iStaticLevel, CUnified::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
#pragma endregion // MAP PROTOTYPE
|
||||
|
||||
#pragma region ACTOR PROTOTYPE
|
||||
|
||||
@@ -0,0 +1,267 @@
|
||||
#include "pch.h"
|
||||
#include "MapElement_Lake.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
|
||||
#include "Terrain.h"
|
||||
#include "Layer.h"
|
||||
|
||||
CMapElement_Lake::CMapElement_Lake(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CMapElement{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CMapElement_Lake::CMapElement_Lake(const CMapElement_Lake& rhs)
|
||||
: CMapElement(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Lake::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Lake::Initialize(void* pArg)
|
||||
{
|
||||
MAPOBJECT_LAKE_DESC* pDesc = static_cast<MAPOBJECT_LAKE_DESC*>(pArg);
|
||||
|
||||
m_iMaxLodLevel = pDesc->iMaxLodLevel;
|
||||
|
||||
for (_uint i = 0; i < m_iMaxLodLevel + 1; i++)
|
||||
{
|
||||
m_ModelPrototypeTags.push_back(pDesc->ModelPrototypeTags[i]);
|
||||
//m_ModelPathIndices.push_back((*pDesc->pModelPathIndices)[i]);
|
||||
}
|
||||
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
|
||||
m_pTransformCom->Set_Scale(pDesc->vScale);
|
||||
m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z));
|
||||
m_vRefractionColor = _float4(1.f, 1.f, 1.f, 1.f);
|
||||
m_vSurfaceColor = _float4(1.f, 1.f, 1.f, 1.f);
|
||||
m_fUVValue = 0.01f;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMapElement_Lake::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CMapElement_Lake::Update(_float fTimeDelta)
|
||||
{
|
||||
m_fTimeAcc += fTimeDelta * m_fUVValue;
|
||||
//Describe_Entity();
|
||||
}
|
||||
|
||||
void CMapElement_Lake::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Lake::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources()))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::WATER)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelComs[0]->Render(0))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Lake::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
for (_uint i = 0; i < m_iMaxLodLevel + 1; ++i)
|
||||
{
|
||||
CModel* pModel = { nullptr };
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_ModelPrototypeTags[i],
|
||||
reinterpret_cast<CComponent**>(&pModel))))
|
||||
return E_FAIL;
|
||||
|
||||
m_pModelComs.push_back(pModel);
|
||||
}
|
||||
|
||||
/* Com_Shader */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
|
||||
reinterpret_cast<CComponent**>(&m_pShaderCom))))
|
||||
return E_FAIL;
|
||||
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("T_Noises_D"),
|
||||
reinterpret_cast<CComponent**>(&m_pNoiseTextureCom))))
|
||||
return E_FAIL;
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("T_Water_Normal_Large_N"),
|
||||
reinterpret_cast<CComponent**>(&m_pNormalLargeTextureCom))))
|
||||
return E_FAIL;
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("T_Water_Normal_Subtle_N"),
|
||||
reinterpret_cast<CComponent**>(&m_pNormalSubTextureCom))))
|
||||
return E_FAIL;
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("T_Caustics_D"),
|
||||
reinterpret_cast<CComponent**>(&m_pCausticsTextureCom))))
|
||||
return E_FAIL;
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("T_Water_N"),
|
||||
reinterpret_cast<CComponent**>(&m_pNormalTextureCom))))
|
||||
return E_FAIL;
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Lake_Cube_D"),
|
||||
reinterpret_cast<CComponent**>(&m_pCubeMapTextureCom))))
|
||||
return E_FAIL;
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Lake_Refraction"),
|
||||
reinterpret_cast<CComponent**>(&m_pRefractionTextureCom))))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Lake::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTimeAcc, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fNormalValue1", &m_fUVValue1, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fNormalValue2", &m_fUVValue2, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fNormalValue3", &m_fUVValue3, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fUVSpeed1", &m_fUVSpeed1, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fUVSpeed2", &m_fUVSpeed2, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fUVSpeed3", &m_fUVSpeed3, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fRefractionStrength", &m_fRefractionStrength, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fRefractionPow", &m_fRefractionPow, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fSpecularIntensity", &m_fSpecularIntensity, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float3)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vDiffuseColor", &m_vRefractionColor, sizeof(_float4)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vSurfaceColor", &m_vSurfaceColor, sizeof(_float4)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_DiffuseTexture", m_pRefractionTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_NormalTexture", m_pNormalTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_NormalLargeTexture", m_pNormalLargeTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_NormalSubTexture", m_pNormalSubTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_NoiseTexture", m_pNoiseTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pCubeMapTextureCom->Bind_ShaderResource(m_pShaderCom, "g_CubeTexture", 0))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CMapElement_Lake* CMapElement_Lake::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CMapElement_Lake* pInstance = new CMapElement_Lake(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CMapElement_Lake");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CMapElement_Lake::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CMapElement_Lake* pInstance = new CMapElement_Lake(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CMapElement_Lake");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CMapElement_Lake::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pRefractionTextureCom);
|
||||
SAFE_RELEASE(m_pCubeMapTextureCom);
|
||||
SAFE_RELEASE(m_pNormalTextureCom);
|
||||
SAFE_RELEASE(m_pNormalLargeTextureCom);
|
||||
SAFE_RELEASE(m_pNormalSubTextureCom);
|
||||
SAFE_RELEASE(m_pCausticsTextureCom);
|
||||
SAFE_RELEASE(m_pNoiseTextureCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
for (auto& pModel : m_pModelComs)
|
||||
SAFE_RELEASE(pModel);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CMapElement_Lake::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -33,16 +33,14 @@ HRESULT CTerrain::Initialize(void* pArg)
|
||||
}
|
||||
|
||||
m_fUsingSurfaceParams = 15.f / 27.f;
|
||||
//m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-194, 18.5f, -153.f, 1.f));
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
|
||||
|
||||
|
||||
{
|
||||
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc{};
|
||||
Desc.pMeshName = TEXT("Hogsmeade_HeightMap");
|
||||
Desc.pMeshName = pDesc->strRigidBody_MeshName.c_str();
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
|
||||
/* Com_RigidBody */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_RigidBody_Static_Terrain_Hogsmeade"),
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pDesc->strRigidBody_ComponentTag,
|
||||
reinterpret_cast<CComponent**>(&m_pRigidBody), &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -58,7 +56,7 @@ void CTerrain::Priority_Update(_float fTimeDelta)
|
||||
void CTerrain::Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
//Describe_Entity();
|
||||
#endif // DEBUG
|
||||
}
|
||||
|
||||
@@ -130,7 +128,7 @@ HRESULT CTerrain::Ready_Components(void* pArg)
|
||||
TERRAIN_DESC* pDesc = static_cast<TERRAIN_DESC*>(pArg);
|
||||
|
||||
/* Com_VIBuffer */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain"),
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pDesc->strVIBufferTag,
|
||||
reinterpret_cast<CComponent**>(&m_pVIBufferCom)))){
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,166 @@
|
||||
#include "pch.h"
|
||||
#include "Unified.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
|
||||
CUnified::CUnified(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CUnified::CUnified(const CUnified& rhs)
|
||||
: CGameObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
void CUnified::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CUnified::Update(_float fTimeDelta)
|
||||
{
|
||||
//Describe_Entity();
|
||||
}
|
||||
|
||||
void CUnified::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_isVisible)
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
|
||||
HRESULT CUnified::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
for (_uint i = 0; i < m_iNumMesh; ++i)
|
||||
{
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fUsingSurfaceParams", &m_fUsingSurfaceParams, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vSurfaceColor", &m_vSurfaceColor, sizeof(_float4))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::NONMRO)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CUnified::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CUnified::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
m_iNumMesh = m_pModelCom->Get_NumMeshes();
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-291.2f, 17.2f, -474.7f, 1.f));
|
||||
m_fUsingSurfaceParams = 2.f / 27.f;
|
||||
m_vSurfaceColor = _float4(1.f, 1.f, 1.f, 1.f);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CUnified::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_GameObject_SM_HW_HogwartsShell_B"),
|
||||
reinterpret_cast<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 CUnified::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CUnified* CUnified::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CUnified* pInstance = new CUnified(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CUnified");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CUnified::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CUnified* pInstance = new CUnified(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CUnified");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
void CUnified::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pModelCom);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CUnified::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("Unified");
|
||||
GUI::Checkbox("Visible ON / OFF", &m_isVisible);
|
||||
|
||||
GUI::End();
|
||||
}
|
||||
#endif // DEBUG
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Client
|
||||
enum class MAPOBJECT_RENDER_TYPE { NORMAL, DECAL, GLASS };
|
||||
|
||||
enum class SHADER_PASS_ANIM { DEFAULT, SHADOW, CAPTURE, BLUR, HAIR, EYELASH, OUTLINE_WRITE, OUTLINE_READ,SPECTOR, END };
|
||||
enum class SHADER_PASS_MESH { DEFAULT, SHADOW, SKYBOX, ALPHABLEND, EFFECT_ALPHABLEND, EFFECT_BLEND, EFFECT_ALPHABLEND_CULL, EFFECT_BLEND_CULL, CAPTURE, BLUR, EFFECT_ALPHABLEND_UVMOVE, MAPTOOL, GLASS, OUTLINE_WRITE, OUTLINE_READ, BLOOM, END };
|
||||
enum class SHADER_PASS_MESH { DEFAULT, SHADOW, SKYBOX, ALPHABLEND, EFFECT_ALPHABLEND, EFFECT_BLEND, EFFECT_ALPHABLEND_CULL, EFFECT_BLEND_CULL, CAPTURE, BLUR, EFFECT_ALPHABLEND_UVMOVE, MAPTOOL, GLASS, OUTLINE_WRITE, OUTLINE_READ, BLOOM, WATER, LAND, NONMRO, END };
|
||||
enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, ENV_TERRAIN_ANISO, SHADOW, END };
|
||||
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
|
||||
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLEND, TRAILWB_FOR_BLEND, TRAIL_BLUR, TRAIL_BLOOM, END };
|
||||
|
||||
@@ -59,6 +59,7 @@ namespace Client {
|
||||
#define LAYER_EFFECTPOOL TEXT("Layer_EffectPool")
|
||||
#define LAYER_LIGHT TEXT("Layer_Light")
|
||||
#define LAYER_INTERACTABLE TEXT("Layer_Interactable")
|
||||
#define LAYER_UNIFIED TEXT("Layer_Unified")
|
||||
|
||||
#define LAYER_MAPOBJECTMANAGER TEXT("Layer_MapObjectManager")
|
||||
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "GameObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CModel;
|
||||
class CShader;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CLand final : public CGameObject
|
||||
{
|
||||
public:
|
||||
typedef struct tagLandDesc
|
||||
{
|
||||
_float3 vPosition;
|
||||
_float3 vScale;
|
||||
_wstring strModelComTag;
|
||||
}LAND_DESC;
|
||||
private:
|
||||
CLand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CLand(const CLand& rhs);
|
||||
virtual ~CLand() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
|
||||
private:
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CModel* m_pModelCom = { nullptr };
|
||||
|
||||
_float m_fRaduis = {};
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
|
||||
public:
|
||||
static CLand* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,73 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "MapElement.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CTexture;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CMapElement_Lake final : public CMapElement
|
||||
{
|
||||
public:
|
||||
typedef struct tagMapObejct_Lake_Desc : public MAPELEMENT_DESC
|
||||
{
|
||||
vector<_wstring> SurfaceModelPrototypeTags;
|
||||
}MAPOBJECT_LAKE_DESC;
|
||||
|
||||
private:
|
||||
CMapElement_Lake(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CMapElement_Lake(const CMapElement_Lake& rhs);
|
||||
virtual ~CMapElement_Lake() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
|
||||
private:
|
||||
CTexture* m_pNormalTextureCom = { nullptr };
|
||||
CTexture* m_pNormalLargeTextureCom = { nullptr };
|
||||
CTexture* m_pNormalSubTextureCom = { nullptr };
|
||||
CTexture* m_pCausticsTextureCom = { nullptr };
|
||||
CTexture* m_pNoiseTextureCom = { nullptr };
|
||||
CTexture* m_pCubeMapTextureCom = { nullptr };
|
||||
CTexture* m_pRefractionTextureCom = { nullptr };
|
||||
|
||||
_float m_fRefractionStrength = { 0.18f };
|
||||
_float m_fRefractionPow = { 10.f };
|
||||
_float m_fTimeAcc = {};
|
||||
_float m_fUVValue = { 0.01f };
|
||||
_float m_fUVValue1 = { 30.f };
|
||||
_float m_fUVValue2 = { 20.f };
|
||||
_float m_fUVValue3 = { 10.f };
|
||||
|
||||
_float m_fSpecularIntensity = { 0.6f };
|
||||
|
||||
_float m_fUVSpeed1 = { -0.1f };
|
||||
_float m_fUVSpeed2 = { 0.05f };
|
||||
_float m_fUVSpeed3 = { 0.01f };
|
||||
|
||||
_float4 m_vRefractionColor = {};
|
||||
_float4 m_vSurfaceColor = {};
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
|
||||
public:
|
||||
static CMapElement_Lake* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -17,10 +17,13 @@ class CTerrain final : public CGameObject
|
||||
typedef struct TerrainDesc
|
||||
{
|
||||
_float3 vPosition;
|
||||
_wstring strVIBufferTag;
|
||||
_wstring strDiffuseTextureTag;
|
||||
_wstring strNormalTextureTag;
|
||||
_wstring strMROTextureTag;
|
||||
_wstring strAlphaMapTextureTag;
|
||||
_wstring strRigidBody_MeshName;
|
||||
_wstring strRigidBody_ComponentTag;
|
||||
}TERRAIN_DESC;
|
||||
private:
|
||||
CTerrain(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "GameObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CModel;
|
||||
class CShader;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CUnified final : public CGameObject
|
||||
{
|
||||
private:
|
||||
CUnified(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CUnified(const CUnified& rhs);
|
||||
virtual ~CUnified() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
|
||||
private:
|
||||
_bool m_isVisible = { true };
|
||||
_uint m_iNumMesh = {};
|
||||
_float m_fUsingSurfaceParams = {};
|
||||
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CModel* m_pModelCom = { nullptr };
|
||||
_float4 m_vSurfaceColor = {};
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
|
||||
public:
|
||||
static CUnified* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
|
After Width: | Height: | Size: 69 B |
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
|
After Width: | Height: | Size: 22 MiB |
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
|
After Width: | Height: | Size: 18 MiB |
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,205 @@
|
||||
<Material>
|
||||
<MI_Troll_ArmoredTroll_Body>
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Troll_ArmoredTroll_Body_D" Extension=".png"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_Troll_CMB_Mountain1_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="T_Troll_ArmoredTroll_Body_Corruption_A" Extension=".dds"/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="T_Troll_ArmoredTroll_Body_SRXO" Extension=".dds"/>
|
||||
</MI_Troll_ArmoredTroll_Body>
|
||||
<MI_Troll_Heads_Eye>
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Troll_Mountain01_Eye_D" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="BaseFlattenNormalMap" Extension=".png"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
|
||||
</MI_Troll_Heads_Eye>
|
||||
<MI_Troll_Heads_Teeth>
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Troll_Teeth_D" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_Troll_Teeth_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="T_Troll_Teeth_SRXO" Extension=".dds"/>
|
||||
</MI_Troll_Heads_Teeth>
|
||||
<MI_Troll_ArmoredTroll_Head>
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Troll_Mountain01_Head_D" Extension=".png"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_Troll_Mountain01_Head_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="T_Troll_ArmoredTroll_Head_Corruption_A" Extension=".dds"/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="T_Troll_Mountain01_Head_SRXO" Extension=".dds"/>
|
||||
</MI_Troll_ArmoredTroll_Head>
|
||||
<MI_Troll_ArmoredTroll_Metal>
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Troll_ArmoredTroll_Metal_D" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="T_Troll_ArmoredTroll_Metal_E" Extension=".dds"/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_Troll_ArmoredTroll_Metal_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="T_Troll_ArmoredTroll_Metal_MRO" Extension=".dds"/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
|
||||
</MI_Troll_ArmoredTroll_Metal>
|
||||
<MI_Troll_ArmoredTroll_Leather>
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Troll_ArmoredTroll_Leather_D" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_Troll_ArmoredTroll_Leather_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="T_Troll_ArmoredTroll_Leather_MRO" Extension=".dds"/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="T_Troll_ArmoredTroll_Leather_Corruption_A" Extension=".dds"/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
|
||||
</MI_Troll_ArmoredTroll_Leather>
|
||||
<MI_ClothSim>
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Troll_ArmoredTroll_Leather_D" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="T_Cav_Spid_ThickWeb_N" Extension=".dds"/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="VFX_T_SkinBurn_Emiss_BPF_D" Extension=".dds"/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="BaseFlattenNormalMap" Extension=".png"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="VFX_T_SkinBurn_Alpha_D" Extension=".dds"/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
|
||||
</MI_ClothSim>
|
||||
</Material>
|
||||
@@ -36,6 +36,7 @@ Texture2D g_EmissiveTexture;
|
||||
Texture2D g_AmbientTexture;
|
||||
Texture2D g_AmbientOcclusionTexture;
|
||||
Texture2D g_UnknownTexture;
|
||||
Texture2D g_NoiseTexture;
|
||||
|
||||
bool g_bBinded_Texture[AI_TEXTURE_TYPE_MAX * 27];
|
||||
|
||||
@@ -60,6 +61,7 @@ float g_fUVSpeed3;
|
||||
|
||||
float g_fBloomStrength;
|
||||
float g_fGlassRatio;
|
||||
float g_fSpecularIntensity;
|
||||
|
||||
float g_fRefractionStrength;
|
||||
float g_fRefractionPow;
|
||||
@@ -524,15 +526,17 @@ PS_OUT PS_LAKE(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
|
||||
float2 vUV = float2(In.vTexcoord.x, In.vTexcoord.y + g_fTime * g_fUVSpeed1) * g_fNormalValue1;
|
||||
float2 vUVLarge = float2(In.vTexcoord.x, In.vTexcoord.y - g_fTime * g_fUVSpeed2) * g_fNormalValue2;
|
||||
float4 vMtrlReflaction = g_DiffuseTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord * 30.f);
|
||||
|
||||
float2 vUV = float2(In.vTexcoord.x, In.vTexcoord.y + sin(g_fTime * g_fUVSpeed1)) * g_fNormalValue1;
|
||||
float2 vUVLarge = float2(In.vTexcoord.x, In.vTexcoord.y - (g_fTime * g_fUVSpeed2)) * g_fNormalValue2;
|
||||
float2 vUVSub = float2(In.vTexcoord.x - g_fTime * g_fUVSpeed3, In.vTexcoord.y - g_fTime * g_fUVSpeed3) * g_fNormalValue3;
|
||||
|
||||
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, AnisoTropy_BLUR_Sampler, vUV);
|
||||
float3 vNormalLarge = DecodeNormalFromRG(g_NormalLargeTexture, AnisoTropy_BLUR_Sampler, vUVLarge);
|
||||
float3 vNormalSub = DecodeNormalFromRG(g_NormalSubTexture, AnisoTropy_BLUR_Sampler, vUVSub);
|
||||
|
||||
vector vMtrlDiffuse = g_vDiffuseColor;
|
||||
vector vDiffuse = g_vDiffuseColor;
|
||||
vector vSurface = g_vSurfaceColor;
|
||||
|
||||
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
|
||||
@@ -541,14 +545,11 @@ PS_OUT PS_LAKE(PS_IN In)
|
||||
|
||||
float3 vReflaction = reflect(normalize(In.vWorldPos.xyz - g_vCamPosition.xyz), vNormal);
|
||||
|
||||
float fReflactionValue = dot(vReflaction, float3(0.f, 1.f, 0.f));
|
||||
float4 vMtrlDiffuse = g_CubeTexture.Sample(DefaultSampler, vReflaction);
|
||||
|
||||
vMtrlDiffuse = g_CubeTexture.Sample(DefaultSampler, vReflaction);
|
||||
|
||||
float fFresnelScala = g_fRefractionStrength + (1.f - g_fRefractionStrength) * pow(1.f - max(0.f, dot(normalize(g_vCamPosition.xyz - In.vWorldPos.xyz), vNormal)), g_fRefractionPow);
|
||||
|
||||
float fFresnelScala = g_fRefractionStrength + (1.f - g_fRefractionStrength) * pow(1.f - dot(normalize(g_vCamPosition.xyz - In.vWorldPos.xyz), vNormal), g_fRefractionPow);
|
||||
|
||||
Out.vAlbedo = float4(vMtrlDiffuse.xyz, 1.f) * fFresnelScala + g_vDiffuseColor * (1.f - fFresnelScala);
|
||||
Out.vAlbedo = float4(vMtrlDiffuse.xyz, 1.f) * fFresnelScala * g_fSpecularIntensity + vMtrlReflaction * g_vDiffuseColor * (1.f - fFresnelScala);
|
||||
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
|
||||
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
|
||||
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
|
||||
@@ -560,6 +561,68 @@ PS_OUT PS_LAKE(PS_IN In)
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT PS_LAND(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
|
||||
float4 vMtrlDiffuse = g_DiffuseTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord * 10.f);
|
||||
float4 vSurface = g_SurfaceParamsTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord * 10.f);
|
||||
|
||||
if (vMtrlDiffuse.a < 0.2f)
|
||||
{
|
||||
discard;
|
||||
}
|
||||
|
||||
|
||||
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, AnisoTropy_BLUR_Sampler, In.vTexcoord);
|
||||
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
|
||||
|
||||
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
|
||||
|
||||
Out.vAlbedo = vMtrlDiffuse;
|
||||
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
|
||||
float fSurfaceParam = g_fUsingSurfaceParams;
|
||||
if (true == AlmostEqual7(g_fUsingSurfaceParams, 0.f))
|
||||
{
|
||||
fSurfaceParam = 0;
|
||||
}
|
||||
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
|
||||
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
|
||||
fSurfaceParam, // 서페이스 파라미터
|
||||
1.f);
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = vSurface;
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT PS_NONMRO(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
|
||||
float4 vMtrlDiffuse = g_DiffuseTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord);
|
||||
|
||||
if (vMtrlDiffuse.a < 0.2f)
|
||||
{
|
||||
discard;
|
||||
}
|
||||
|
||||
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, AnisoTropy_BLUR_Sampler, In.vTexcoord);
|
||||
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
|
||||
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
|
||||
|
||||
Out.vAlbedo = vMtrlDiffuse;
|
||||
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
|
||||
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
|
||||
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
|
||||
g_fUsingSurfaceParams, // 서페이스 파라미터
|
||||
1.f);
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = g_vSurfaceColor;
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
technique11 MeshTechnique11
|
||||
{
|
||||
pass MeshPass // 0
|
||||
@@ -727,4 +790,24 @@ technique11 MeshTechnique11
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_LAKE();
|
||||
}
|
||||
|
||||
pass LandPass // 17
|
||||
{
|
||||
SetRasterizerState(RS_Default);
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_LAND();
|
||||
}
|
||||
|
||||
pass NonMROPass // 18
|
||||
{
|
||||
SetRasterizerState(RS_Default);
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_NONMRO();
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -121,8 +121,8 @@ void CAlphaMap::Load_ToFile(const _char* pFilePath)
|
||||
|
||||
m_pContext->Unmap(m_pTexture2D, 0);
|
||||
|
||||
//if (FAILED(SaveDDSTextureToFile(m_pContext, m_pTexture2D, L"../Bin/Resources/Data/Map/Hogsmeade_AlphaMap.dds")))
|
||||
// return;
|
||||
if (FAILED(SaveDDSTextureToFile(m_pContext, m_pTexture2D, L"../Bin/Resources/Data/Map/Hogwart_AlphaMap.dds")))
|
||||
return;
|
||||
}
|
||||
|
||||
HRESULT CAlphaMap::Initialize(_uint iSizeX, _uint iSizeY)
|
||||
|
||||
@@ -9,7 +9,7 @@ CLand::CLand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
}
|
||||
|
||||
CLand::CLand(const CLand& rhs)
|
||||
: CGameObject(rhs)
|
||||
: CGameObject(rhs), m_fUsingSurfaceParams{rhs.m_fUsingSurfaceParams}
|
||||
{
|
||||
}
|
||||
|
||||
@@ -19,32 +19,18 @@ void CLand::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CLand::Update(_float fTimeDelta)
|
||||
{
|
||||
//GUI::Begin("Land Debug");
|
||||
|
||||
//XMStoreFloat4(&m_vPosition, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
//GUI::InputFloat3("LandPos", (_float*)(&m_vPosition));
|
||||
//m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&m_vPosition));
|
||||
|
||||
//GUI::End();
|
||||
|
||||
_float3 vPos = {};
|
||||
if (m_pGameInstance->Mouse_Pressing(DIM_LBUTTON))
|
||||
{
|
||||
if (m_pGameInstance->isPicking(&vPos))
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
GUI::Begin("TEEEEE");
|
||||
GUI::InputFloat3("Pos", (_float*)(&vPos));
|
||||
GUI::End();
|
||||
if (m_bEdit)
|
||||
Describe_Entity();
|
||||
}
|
||||
|
||||
void CLand::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
_float4* vPos = (_float4*)(m_pTransformCom->Get_WorldMatrixPtr()->m[3]);
|
||||
//m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
if(m_pGameInstance->isIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pModelCom->Get_Radius()))
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
else
|
||||
{
|
||||
_uint i = 0;
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CLand::Render()
|
||||
@@ -57,10 +43,10 @@ HRESULT CLand::Render()
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom)))
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) {
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(17))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -79,14 +65,16 @@ HRESULT CLand::Initialize_Prototype()
|
||||
|
||||
HRESULT CLand::Initialize(void* pArg)
|
||||
{
|
||||
m_vScale = _float3(1.f, 1.f, 1.f);
|
||||
m_vRotation = _float3(0.f, 0.f, 0.f);
|
||||
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
//m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(66.f, 18.f, 96.f, 1.f));
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f,0.f, 1.f));
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
@@ -98,8 +86,14 @@ HRESULT CLand::Ready_Components(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
LAND_DESC* pDesc = static_cast<LAND_DESC*>(pArg);
|
||||
|
||||
m_bEdit = pDesc->bEdit;
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
|
||||
m_pTransformCom->Set_Scale(pDesc->vScale);
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_Land"),
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pDesc->strModelComTag,
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom))))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -167,4 +161,30 @@ void CLand::Free()
|
||||
|
||||
void CLand::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("Land Debug");
|
||||
|
||||
XMStoreFloat4(&m_vPosition, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
GUI::DragFloat3("LandPos", (_float*)(&m_vPosition));
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&m_vPosition));
|
||||
|
||||
|
||||
GUI::Text("----- Scale ----");
|
||||
GUI::InputFloat("X##Scale", &m_vScale.x, 0.1f, 1.f);
|
||||
GUI::InputFloat("Y##Scale", &m_vScale.y, 0.1f, 1.f);
|
||||
GUI::InputFloat("Z##Scale", &m_vScale.z, 0.1f, 1.f);
|
||||
|
||||
m_vScale.x = max(0.01f, m_vScale.x);
|
||||
m_vScale.y = max(0.01f, m_vScale.y);
|
||||
m_vScale.z = max(0.01f, m_vScale.z);
|
||||
|
||||
m_pTransformCom->Set_Scale(m_vScale);
|
||||
|
||||
GUI::Text("----- Rotation ----");
|
||||
GUI::InputFloat("X##Rotation", &m_vRotation.x, 10.f, 45.f);
|
||||
GUI::InputFloat("Y##Rotation", &m_vRotation.y, 10.f, 45.f);
|
||||
GUI::InputFloat("Z##Rotation", &m_vRotation.z, 10.f, 45.f);
|
||||
|
||||
m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z));
|
||||
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
@@ -48,6 +48,9 @@ HRESULT CLevel_MapViewer::Initialize()
|
||||
if (FAILED(Ready_Layer_Terrain(TEXT("Layer_Terrain")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Layer_Land(TEXT("Layer_Land")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/*if (FAILED(Ready_Layer_InstanceProp(TEXT("Layer_InstanceProp")))) {
|
||||
return E_FAIL;
|
||||
@@ -109,27 +112,24 @@ HRESULT CLevel_MapViewer::Ready_Layer_Background(const _wstring& strLayerTag)
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummySkyBox>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevel_MapViewer::Ready_Layer_Terrain(const _wstring& strLayerTag)
|
||||
{
|
||||
CTerrain::TERRAIN_DESC Desc = {};
|
||||
/* Hogsmeade */
|
||||
|
||||
Desc.isEdit = false;
|
||||
Desc.iAlphaSizeX = 2048;
|
||||
Desc.iAlphaSizeY = 2048;
|
||||
Desc.vPosition = _float3(-194, 18.5f, -153.f);
|
||||
Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade");
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CTerrain>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
|
||||
return E_FAIL;
|
||||
/* Hogsmeade */
|
||||
//Desc.isEdit = false;
|
||||
//Desc.iAlphaSizeX = 2048;
|
||||
//Desc.iAlphaSizeY = 2048;
|
||||
//Desc.vPosition = _float3(-194, 18.5f, -153.f);
|
||||
//Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade");
|
||||
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CTerrain>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
|
||||
// return E_FAIL;
|
||||
|
||||
/* Hogwart */
|
||||
Desc.isEdit = false;
|
||||
Desc.isEdit = true;
|
||||
Desc.iAlphaSizeX = 2048;
|
||||
Desc.iAlphaSizeY = 2560;
|
||||
Desc.vPosition = _float3(-451.f, 18.5f, -791.f);
|
||||
@@ -138,22 +138,22 @@ HRESULT CLevel_MapViewer::Ready_Layer_Terrain(const _wstring& strLayerTag)
|
||||
return E_FAIL;
|
||||
|
||||
/* North_Hogwart */
|
||||
Desc.isEdit = false;
|
||||
Desc.iAlphaSizeX = 1536;
|
||||
Desc.iAlphaSizeY = 1024;
|
||||
Desc.vPosition = _float3(-577.f, 18.5f, -153.f);
|
||||
Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_North_Hogwart");
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CTerrain>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
|
||||
return E_FAIL;
|
||||
//Desc.isEdit = false;
|
||||
//Desc.iAlphaSizeX = 1536;
|
||||
//Desc.iAlphaSizeY = 1024;
|
||||
//Desc.vPosition = _float3(-577.f, 18.5f, -153.f);
|
||||
//Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_North_Hogwart");
|
||||
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CTerrain>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
|
||||
// return E_FAIL;
|
||||
|
||||
/* South_Hogwart */
|
||||
Desc.isEdit = true;
|
||||
/*Desc.isEdit = true;
|
||||
Desc.iAlphaSizeX = 2048;
|
||||
Desc.iAlphaSizeY = 1, 536;
|
||||
Desc.vPosition = _float3(61.f, 18.5f, -535.f);
|
||||
Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_South_Hogwart");
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CTerrain>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
|
||||
return E_FAIL;
|
||||
return E_FAIL;*/
|
||||
|
||||
CMapElement_Lake::MAPOBJECT_LAKE_DESC Lake_Desc = {};
|
||||
|
||||
@@ -168,6 +168,59 @@ HRESULT CLevel_MapViewer::Ready_Layer_Terrain(const _wstring& strLayerTag)
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Lake>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Lake_Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevel_MapViewer::Ready_Layer_Land(const _wstring& strLayerTag)
|
||||
{
|
||||
CLand::LAND_DESC Land_Desc = {};
|
||||
|
||||
/* South_Hogwart_Land */
|
||||
Land_Desc.bEdit = false;
|
||||
Land_Desc.vPosition = _float3(290.5f, 59.5f, -347.f);
|
||||
Land_Desc.vScale = _float3(1.f, 1.25f, 1.f);
|
||||
Land_Desc.strModelComTag = L"Prototype_Component_South_Hogwart_Land_LOD1";
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Land_Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
/* North_Hogwart_Land */
|
||||
Land_Desc.bEdit = false;
|
||||
Land_Desc.vPosition = _float3(-370.f, -37.5f, -21.4f);
|
||||
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
|
||||
Land_Desc.strModelComTag = L"Prototype_Component_North_Hogwart_Land_LOD1";
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Land_Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
/* North_Hogwart2_Land */
|
||||
Land_Desc.bEdit = false;
|
||||
Land_Desc.vPosition = _float3(-378.f, -17.5f, 285.6f);
|
||||
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
|
||||
Land_Desc.strModelComTag = L"Prototype_Component_North_Hogwart2_Land_LOD1";
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Land_Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
/* West_Hogwart_Land */
|
||||
Land_Desc.bEdit = false;
|
||||
Land_Desc.vPosition = _float3(-653.f, 20.f, -327.4f);
|
||||
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
|
||||
Land_Desc.strModelComTag = L"Prototype_Component_West_Hogwart_Land_LOD1";
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Land_Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
/* East_Hogsmeade_Land */
|
||||
Land_Desc.bEdit = false;
|
||||
Land_Desc.vPosition = _float3(436.f, 55.f, 60.3f);
|
||||
Land_Desc.vScale = _float3(1.f, 1.2f, 1.f);
|
||||
Land_Desc.strModelComTag = L"Prototype_Component_East_Hogsmeade_Land_LOD1";
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLand>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Land_Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -2439,6 +2439,11 @@ HRESULT CLoader::Loading_For_MapViewer()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* Lake_Cube_D */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Lake_Refraction"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Models/Lake/T_MudSmallRocks_A_D.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strMessage = TEXT("모델를(을) 로딩 중 입니다.");
|
||||
|
||||
@@ -2447,11 +2452,37 @@ HRESULT CLoader::Loading_For_MapViewer()
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.fbx", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
#pragma region MAP_LANDS
|
||||
/* For.Prototype_Component_Hogsmead_Land */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_Land"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Land/Hogsmead_Land.fbx", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_South_Hogwart_Land_LOD1 */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_South_Hogwart_Land_LOD1"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BCLOD/SM_LandscapeStreamingProxy_0_LOD1.fbx"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_North_Hogwart_Land_LOD1 */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart_Land_LOD1"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_AVLOD/SM_LandscapeStreamingProxy_0_LOD1.fbx"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_North_Hogwart2_Land_LOD1 */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart2_Land_LOD1"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_AULOD/SM_LandscapeStreamingProxy_0_LOD1.fbx"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_West_Hogwart_Land_LOD1 */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_West_Hogwart_Land_LOD1"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_AZLOD/SM_LandscapeStreamingProxy_0_LOD1.fbx"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_East_Hogwart_Land_LOD1 */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_East_Hogsmeade_Land_LOD1"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_AYLOD/SM_LandscapeStreamingProxy_0_LOD1.fbx"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_Hogwart_Lake */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogwart_Lake"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Lake/SM_Lake_A_Collision_Deep.fbx", XMMatrixIdentity()))))
|
||||
@@ -2462,6 +2493,10 @@ HRESULT CLoader::Loading_For_MapViewer()
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Lake/SM_Lake_A_Collision_Shallow.fbx", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
#pragma endregion
|
||||
|
||||
|
||||
|
||||
vector<_wstring> ModelPrototypeTags = {};
|
||||
vector<filesystem::path> ModelPrototypePath = {};
|
||||
|
||||
|
||||
@@ -50,8 +50,8 @@ HRESULT CMapElement_Lake::Initialize(void* pArg)
|
||||
m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z));
|
||||
#endif // _DEBUG
|
||||
|
||||
m_vRefractionColor = _float4(0.29f, 0.375f, 0.4f, 1.f);
|
||||
m_vSurfaceColor = _float4(0.f, 1.f, 1.f, 1.f);
|
||||
m_vRefractionColor = _float4(1.f, 1.f, 1.f, 1.f);
|
||||
m_vSurfaceColor = _float4(1.f, 1.f, 1.f, 1.f);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -66,7 +66,7 @@ void CMapElement_Lake::Priority_Update(_float fTimeDelta)
|
||||
void CMapElement_Lake::Update(_float fTimeDelta)
|
||||
{
|
||||
m_fTimeAcc += fTimeDelta * m_fUVValue;
|
||||
//Describe_Entity();
|
||||
Describe_Entity();
|
||||
}
|
||||
|
||||
void CMapElement_Lake::Late_Update(_float fTimeDelta)
|
||||
@@ -144,6 +144,10 @@ HRESULT CMapElement_Lake::Ready_Components(void* pArg)
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Lake_Cube_D"),
|
||||
reinterpret_cast<CComponent**>(&m_pCubeMapTextureCom))))
|
||||
return E_FAIL;
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Lake_Refraction"),
|
||||
reinterpret_cast<CComponent**>(&m_pRefractionTextureCom))))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -194,6 +198,9 @@ HRESULT CMapElement_Lake::Bind_ShaderResources()
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fRefractionPow", &m_fRefractionPow, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fSpecularIntensity", &m_fSpecularIntensity, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -206,6 +213,9 @@ HRESULT CMapElement_Lake::Bind_ShaderResources()
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vSurfaceColor", &m_vSurfaceColor, sizeof(_float4)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_DiffuseTexture", m_pRefractionTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_NormalTexture", m_pNormalTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -215,6 +225,9 @@ HRESULT CMapElement_Lake::Bind_ShaderResources()
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_NormalSubTexture", m_pNormalSubTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_NoiseTexture", m_pNoiseTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pCubeMapTextureCom->Bind_ShaderResource(m_pShaderCom, "g_CubeTexture", 0))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -253,6 +266,7 @@ void CMapElement_Lake::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pRefractionTextureCom);
|
||||
SAFE_RELEASE(m_pCubeMapTextureCom);
|
||||
SAFE_RELEASE(m_pNormalTextureCom);
|
||||
SAFE_RELEASE(m_pNormalLargeTextureCom);
|
||||
@@ -282,6 +296,8 @@ void CMapElement_Lake::Describe_Entity()
|
||||
GUI::InputFloat("UV_Speed2", (&m_fUVSpeed2));
|
||||
GUI::InputFloat("UV_Speed3", (&m_fUVSpeed3));
|
||||
|
||||
GUI::InputFloat("m_fSpecularIntensity", (&m_fSpecularIntensity));
|
||||
|
||||
GUI::InputFloat("m_fRefractionStrength", (&m_fRefractionStrength));
|
||||
GUI::InputFloat("m_fRefractionPow", (&m_fRefractionPow));
|
||||
|
||||
|
||||
@@ -313,11 +313,11 @@ void CTerrain::Describe_Entity()
|
||||
GUI::DragFloat("Value", &m_fMaskValue, 0.01f, -1.0f, 1.f);
|
||||
if (GUI::Button("Save", ImVec2(100.f, 30.f)))
|
||||
{
|
||||
//m_pAlphaMap->Save_ToFile("Hogwart_AlphaMap.bin");
|
||||
m_pAlphaMap->Save_ToFile("Hogwart_AlphaMap.bin");
|
||||
}
|
||||
if (GUI::Button("Load", ImVec2(100.f, 30.f)))
|
||||
{
|
||||
//m_pAlphaMap->Load_ToFile("Hogwart_AlphaMap.bin");
|
||||
m_pAlphaMap->Load_ToFile("Hogwart_AlphaMap.bin");
|
||||
}
|
||||
|
||||
|
||||
@@ -344,9 +344,9 @@ void CTerrain::Describe_Entity()
|
||||
#pragma region HEIGHT MAP
|
||||
HRESULT hr = {};
|
||||
if(GUI::Button("Save HeightMap"))
|
||||
hr = m_pVIBufferCom->Save_HeightMap("Hogwart.bin");
|
||||
hr = m_pVIBufferCom->Save_HeightMap("Hogwart_Height.bin");
|
||||
if(GUI::Button("Load HeightMap"))
|
||||
hr = m_pVIBufferCom->Load_HeightMap("Hogwart.bin");
|
||||
hr = m_pVIBufferCom->Load_HeightMap("Hogwart_Height.bin");
|
||||
#pragma endregion
|
||||
|
||||
_float4 vPos = {};
|
||||
|
||||
@@ -12,6 +12,14 @@ NS_BEGIN(Editor)
|
||||
|
||||
class CLand final : public CGameObject
|
||||
{
|
||||
public:
|
||||
typedef struct tagLandDesc
|
||||
{
|
||||
_bool bEdit;
|
||||
_float3 vPosition;
|
||||
_float3 vScale;
|
||||
_wstring strModelComTag;
|
||||
}LAND_DESC;
|
||||
private:
|
||||
CLand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CLand(const CLand& rhs);
|
||||
@@ -28,15 +36,20 @@ class CLand final : public CGameObject
|
||||
|
||||
private:
|
||||
_bool m_bSelected = { false };
|
||||
_bool m_bEdit = {false};
|
||||
_uint m_iMaxLodLevel = {};
|
||||
_uint m_iLodIndex = {};
|
||||
|
||||
_float m_fUsingSurfaceParams = {};
|
||||
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CModel* m_pModelCom = { nullptr };
|
||||
_float4 m_vPosition = {};
|
||||
|
||||
_float4x4 m_ProjMatrix = {};
|
||||
_float4x4 m_ViewMatrix = {};
|
||||
_float4 m_vPosition = {};
|
||||
_float3 m_vScale = {};
|
||||
_float3 m_vRotation = {};
|
||||
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
@@ -21,6 +21,7 @@ class CLevel_MapViewer final : public CLevel
|
||||
HRESULT Ready_Layer_Camera(const _wstring& strLayerTag);
|
||||
HRESULT Ready_Layer_Background(const _wstring& strLayerTag);
|
||||
HRESULT Ready_Layer_Terrain(const _wstring& strLayerTag);
|
||||
HRESULT Ready_Layer_Land(const _wstring& strLayerTag);
|
||||
HRESULT Ready_Layer_InstanceProp(const _wstring& strLayerTag);
|
||||
HRESULT Ready_Layer_BuildingContainer(const _wstring& strLayerTag);
|
||||
HRESULT Ready_Layer_Unified(const _wstring& strLayerTag);
|
||||
|
||||
@@ -35,17 +35,20 @@ class CMapElement_Lake final : public CMapElement
|
||||
CTexture* m_pCausticsTextureCom = { nullptr };
|
||||
CTexture* m_pNoiseTextureCom = { nullptr };
|
||||
CTexture* m_pCubeMapTextureCom = { nullptr };
|
||||
CTexture* m_pRefractionTextureCom = { nullptr };
|
||||
|
||||
_float m_fRefractionStrength = {0.1f};
|
||||
_float m_fRefractionPow = {5.f};
|
||||
_float m_fRefractionStrength = {0.18f};
|
||||
_float m_fRefractionPow = {10.f};
|
||||
_float m_fTimeAcc = {};
|
||||
_float m_fUVValue = {0.05f};
|
||||
_float m_fUVValue1 = {10.f};
|
||||
_float m_fUVValue = {0.02f};
|
||||
_float m_fUVValue1 = {30.f};
|
||||
_float m_fUVValue2 = {20.f};
|
||||
_float m_fUVValue3 = {10.f};
|
||||
|
||||
_float m_fUVSpeed1 = { 0.01f };
|
||||
_float m_fUVSpeed2 = { 0.001f };
|
||||
_float m_fSpecularIntensity = {0.6f};
|
||||
|
||||
_float m_fUVSpeed1 = { -0.1f };
|
||||
_float m_fUVSpeed2 = { 0.05f };
|
||||
_float m_fUVSpeed3 = { 0.01f };
|
||||
|
||||
_float4 m_vRefractionColor = {};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "pch.h"
|
||||
#include "pch.h"
|
||||
#include "Material.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Shader.h"
|
||||
@@ -352,6 +352,9 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType
|
||||
else if (!strcmp(FileType.c_str(), "MROA")){
|
||||
eTexture = aiTextureType::aiTextureType_METALNESS;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "MRS")){
|
||||
eTexture = aiTextureType::aiTextureType_METALNESS;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "SRO")){
|
||||
eTexture = aiTextureType::aiTextureType_SPECULAR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user