Merge branch 'Develope' into Effect
This commit is contained in:
@@ -26,6 +26,7 @@ void CCutSceneInfo::Update(_float fTimeDelta)
|
||||
void CCutSceneInfo::Load_CutScenes()
|
||||
{
|
||||
LEVEL eLevel = (LEVEL)m_pGameInstance->Get_NextLevelID();
|
||||
Clear_AllEvents();
|
||||
switch (eLevel)
|
||||
{
|
||||
case LEVEL::GAMEPLAY:
|
||||
@@ -46,6 +47,7 @@ void CCutSceneInfo::Active_Event(_string& strKey)
|
||||
{
|
||||
map<_string, TimeLine*>::iterator iter = m_funcWaitEvents.find(strKey);
|
||||
if (iter != m_funcWaitEvents.end()) {
|
||||
SAFE_RELEASE(iter->second->m_pTriggerBox);
|
||||
m_funcActiveEvents.emplace(iter->first, iter->second);
|
||||
m_funcWaitEvents.erase(iter);
|
||||
}
|
||||
@@ -101,6 +103,7 @@ void CCutSceneInfo::Update_ActiveEvents(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
if (pSockets->empty()) {
|
||||
SAFE_RELEASE(iter->second->m_pTriggerBox);
|
||||
Safe_Delete((*iter).second);
|
||||
iter = m_funcActiveEvents.erase(iter);
|
||||
}
|
||||
@@ -151,11 +154,11 @@ HRESULT CCutSceneInfo::Clear_Events(map<_string, TimeLine*>& Events)
|
||||
{
|
||||
map<_string, TimeLine*>::iterator iter = Events.begin();
|
||||
for (; iter != Events.end();) {
|
||||
|
||||
for (list<CTimeSocket*>::iterator socketIter = (*iter).second->m_Sockets.begin();
|
||||
socketIter != (*iter).second->m_Sockets.end(); ++socketIter) {
|
||||
SAFE_RELEASE((*socketIter));
|
||||
}
|
||||
SAFE_RELEASE(iter->second->m_pTriggerBox);
|
||||
Safe_Delete((*iter).second);
|
||||
iter = Events.erase(iter);
|
||||
}
|
||||
@@ -171,14 +174,14 @@ HRESULT CCutSceneInfo::Clear_AllEvents()
|
||||
HRESULT CCutSceneInfo::Ready_GameplayCutScenes()
|
||||
{
|
||||
{
|
||||
//Load_CutSceneXML("../Bin/Resources/Data/CutScene/CarriageIntro.xml");
|
||||
Load_CutSceneXML("../Bin/Resources/Data/CutScene/CarriageIntro.xml");
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
HRESULT CCutSceneInfo::Ready_FieldCutScenes()
|
||||
{
|
||||
{
|
||||
//Load_CutSceneXML("../Bin/Resources/Data/CutScene/RanrokCutScene.xml");
|
||||
Load_CutSceneXML("../Bin/Resources/Data/CutScene/RanrokCutScene.xml");
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ void CInfoInstance::Change_Level()
|
||||
m_pInteractiveInfo->Change_Level();
|
||||
m_pEffectInfo->Change_Level();
|
||||
// UI_Event.clear();
|
||||
m_pCutSceneInfo->Load_CutScenes();
|
||||
m_pCutSceneInfo->Clear_AllEvents();
|
||||
}
|
||||
|
||||
CStat* CInfoInstance::Get_PlayerStatPtr()
|
||||
|
||||
@@ -63,8 +63,8 @@ HRESULT CLevel_Field::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Layer_Monster())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pInfoInstance->Load_CutScenes();
|
||||
ResetLevel_Environment();
|
||||
|
||||
|
||||
m_bLevel = true;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("UIManagerFadeIn"));
|
||||
@@ -84,7 +84,6 @@ void CLevel_Field::Update(_float fTimeDelta)
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
if (m_pGameInstance->Key_Up(DIK_F1))
|
||||
{
|
||||
//m_pGameInstance->Set_LevelToChange();
|
||||
@@ -179,9 +178,13 @@ HRESULT CLevel_Field::Ready_Lights()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_float4 vDiffuse = _float4(0.745f, 0.797f, 0.8f, 0.f);
|
||||
_float4 vAmbient = _float4(0.1f, 0.13f, 0.13f, 0.f);
|
||||
_float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f);
|
||||
// _float4 vDiffuse = _float4(0.745f, 0.797f, 0.8f, 0.f);
|
||||
// _float4 vAmbient = _float4(0.1f, 0.13f, 0.13f, 0.f);
|
||||
// _float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f);
|
||||
|
||||
_float4 vDiffuse = CMyTools::ColorRGBA_HEXtoFLOAT4(0x1E1C1B3C);
|
||||
_float4 vAmbient = CMyTools::ColorRGBA_HEXtoFLOAT4(0x1A191900);
|
||||
_float4 vSpecular = CMyTools::ColorRGBA_HEXtoFLOAT4(0x12121200);
|
||||
|
||||
#if gimch || 진우
|
||||
vDiffuse = _float4(0.361f, 0.451f, 0.451f, 0.204f);
|
||||
@@ -189,10 +192,10 @@ HRESULT CLevel_Field::Ready_Lights()
|
||||
vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f);
|
||||
#endif // gimch
|
||||
|
||||
|
||||
|
||||
m_pLight->Get_Component<CLight>()->Set_Color(vDiffuse, vAmbient, vSpecular);
|
||||
|
||||
|
||||
m_pLight->Get_Component<CTransform>()->RotationQ(XMVectorSet(-0.574f, -0.409f, 0.584f, -0.402f));
|
||||
m_pLight->Get_Component<CTransform>()->Translation(XMVectorSet(0.f, 0.f, 0.f, 1.f));
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -375,6 +378,15 @@ HRESULT CLevel_Field::Reday_Layer_EffectPool()
|
||||
|
||||
void CLevel_Field::ResetLevel_Environment()
|
||||
{
|
||||
_float4 vDiffuse = CMyTools::ColorRGBA_HEXtoFLOAT4(0x1E1C1B3C);
|
||||
_float4 vAmbient = CMyTools::ColorRGBA_HEXtoFLOAT4(0x1A191900);
|
||||
_float4 vSpecular = CMyTools::ColorRGBA_HEXtoFLOAT4(0x12121200);
|
||||
m_pLight->Get_Component<CLight>()->Set_Color(vDiffuse, vAmbient, vSpecular);
|
||||
m_pLight->Get_Component<CTransform>()->RotationQ(XMVectorSet(-0.574f, -0.409f, 0.584f, -0.402f));
|
||||
m_pLight->Get_Component<CTransform>()->Translation(XMVectorSet(0.f, 0.f, 0.f, 1.f));
|
||||
m_pGameInstance->Set_Environment(_float3(0.585f, 0.182f, 2.83f), _float(2.f), _float2(0.075f, 0.150f), _float2(2.300f, 10.000f), _float4(0.0360f, 0.0326f, 0.0057f, 0.0018f), _float4(2.0000f, 1.f, 1.f, 1.f), _float3(0.f, 0.f, -100.f), _float3(0.f, 0.f, 100.f));
|
||||
m_pGameInstance->Setting_Volumetirc(1.743f, 0.0001f, 0.2000f, 1.050f, 0.04862f);
|
||||
m_pLight->Capture_PreShadow();
|
||||
}
|
||||
|
||||
pair<CLevel*, function<void()>> CLevel_Field::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg)
|
||||
@@ -387,7 +399,7 @@ pair<CLevel*, function<void()>> CLevel_Field::Create(ID3D11Device* pDevice, ID3D
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return { pInstance, [pInstance]() { pInstance->Ready_Layer_Camera(); pInstance->Ready_Layer_Sound(); } };
|
||||
return { pInstance, [pInstance]() { pInstance->Ready_Layer_Camera(); pInstance->Ready_Layer_Sound(); pInstance->m_pInfoInstance->Load_CutScenes(); } };
|
||||
}
|
||||
|
||||
void CLevel_Field::Free()
|
||||
|
||||
@@ -126,7 +126,7 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
|
||||
_bool bLoadNPC = { true };
|
||||
#ifdef _DEBUG
|
||||
#ifdef 기무리
|
||||
bLoadNPC = false;
|
||||
bLoadNPC = true;
|
||||
#endif
|
||||
#endif // _DEBUG
|
||||
if (true == bLoadNPC) {
|
||||
@@ -168,10 +168,9 @@ HRESULT CLevel_GamePlay::Initialize()
|
||||
void CLevel_GamePlay::Update(_float fTimeDelta)
|
||||
{
|
||||
_bool bStartCinematic = { true };
|
||||
bStartCinematic = false;
|
||||
#ifdef _DEBUG
|
||||
#ifdef 기무리
|
||||
bStartCinematic = false;
|
||||
bStartCinematic = true;
|
||||
#elif 진우
|
||||
bStartCinematic = true;
|
||||
#elif Bin
|
||||
@@ -180,7 +179,6 @@ void CLevel_GamePlay::Update(_float fTimeDelta)
|
||||
bStartCinematic = false;
|
||||
#endif
|
||||
#endif // _DEBUG
|
||||
bStartCinematic = false;
|
||||
|
||||
if (bStartCinematic && false == m_bIntroCinematic) {
|
||||
m_bIntroCinematic = true;
|
||||
@@ -366,9 +364,9 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
isReady_Hogwart = false;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isReady_Background = false;
|
||||
isReady_Hogsmeade = false;
|
||||
isReady_Hogwart = false;
|
||||
isReady_Background = true;
|
||||
isReady_Hogsmeade = true;
|
||||
isReady_Hogwart = true;
|
||||
#endif //
|
||||
#ifdef 나
|
||||
isReady_Background = false;
|
||||
@@ -1143,8 +1141,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc()
|
||||
isLoad_NPC = false;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isLoad_NPC = false;
|
||||
isLoad_RandomNPC = false;
|
||||
isLoad_NPC = true;
|
||||
isLoad_RandomNPC = true;
|
||||
#endif //
|
||||
#ifdef 나
|
||||
isLoad_RandomNPC = true;
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "Intro_Image.h"
|
||||
#include "Intro_BG.h"
|
||||
#include "Loding_Panel.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CLevel_Loading::CLevel_Loading(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
|
||||
: CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
|
||||
@@ -31,6 +32,7 @@ HRESULT CLevel_Loading::Initialize(LEVEL eNextLevelID)
|
||||
}
|
||||
m_bNextLevel = false;
|
||||
m_fTimeDelta = 1.2f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -557,10 +557,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
isLoad_UI_SEQUANTIAL = false;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isLoad_Background = false;
|
||||
isLoad_Hogwart = false;
|
||||
isLoad_Background = true;
|
||||
isLoad_Hogwart = true;
|
||||
isLoad_UI_SEQUANTIAL = false;
|
||||
isLoad_NPC = false;
|
||||
isLoad_NPC = true;
|
||||
isLoad_Monster = true;
|
||||
#endif //
|
||||
#ifdef 나
|
||||
|
||||
@@ -69,6 +69,7 @@ void CMapElement_Static::Late_Update(_float fTimeDelta)
|
||||
if(m_bVisible)
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(XMLoadFloat3(&m_vWorldCenterPosition), m_fRadius));
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Static::Render()
|
||||
@@ -96,6 +97,32 @@ HRESULT CMapElement_Static::Render()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Static::Render_Shadow(SHADOW eType)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ViewMatrix", D3DTS::VIEW, eType))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ProjMatrix", D3DTS::PROJ, eType))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
_uint iNumMeshes = m_pModelComs[m_iLodIndex]->Get_NumMeshes();
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::SHADOW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelComs[m_iLodIndex]->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
HRESULT CMapElement_Static::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
|
||||
@@ -306,7 +306,7 @@ HRESULT CRanrok::Render_Shadow(SHADOW eType)
|
||||
return E_FAIL;
|
||||
}
|
||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::WINGS); i < ENUM_CLASS(RANROK_MESH_ORDER::END); ++i)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||
"g_OffsetMatrix",
|
||||
@@ -771,16 +771,16 @@ HRESULT CRanrok::Render_Nonblend()
|
||||
}*/
|
||||
|
||||
#ifdef _DEBUG
|
||||
if (true == m_pCharacter_Controller->IsActive()) {
|
||||
if (FAILED(m_pCharacter_Controller->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
else if (true == m_pRigidBody->IsActive()) {
|
||||
if (FAILED(m_pRigidBody->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
//if (true == m_pCharacter_Controller->IsActive()) {
|
||||
// if (FAILED(m_pCharacter_Controller->Render())) {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//}
|
||||
//else if (true == m_pRigidBody->IsActive()) {
|
||||
// if (FAILED(m_pRigidBody->Render())) {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//}
|
||||
#endif
|
||||
|
||||
if (0.f < m_fDeadRatio) {
|
||||
|
||||
@@ -17,6 +17,7 @@ class CMapElement_Static : public CMapElement
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
virtual HRESULT Render_Shadow(SHADOW eType)override;
|
||||
|
||||
private:
|
||||
_bool m_bReadyToCreatePhysX = { false };
|
||||
|
||||
@@ -739,6 +739,12 @@ HRESULT CGameInstance::Bind_PrevMatrix(CShader* pShader, const _char* pConstants
|
||||
return m_pRenderer->Bind_PrevMatrix(pShader, pConstants, eType);
|
||||
}
|
||||
|
||||
void CGameInstance::Set_Environment(_float3 vSSAO, _float fExposure, _float2 vNFBoxRatio, _float2 vSafeRadius, _float4 vShadowBias, _float4 vShadowRadius, _float3 vShadowBoxMarginMin, _float3 vShadowBoxMarginMax)
|
||||
{
|
||||
m_pRenderer->Set_Environment(vSSAO, fExposure);
|
||||
m_pPipeLine->Set_Environment(vNFBoxRatio, vSafeRadius, vShadowBias, vShadowRadius, vShadowBoxMarginMin, vShadowBoxMarginMax);
|
||||
}
|
||||
|
||||
void CGameInstance::Set_Transform(D3DTS eState, _fmatrix TransformStateMatrix)
|
||||
{
|
||||
m_pPipeLine->Set_Transform(eState, TransformStateMatrix);
|
||||
|
||||
@@ -13,6 +13,20 @@ CPipeLine::CPipeLine(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
SAFE_ADDREF(m_pGameInstance);
|
||||
}
|
||||
|
||||
void CPipeLine::Set_Environment(_float2 vNFBoxRatio, _float2 vSafeRadius, _float4 vShadowBias, _float4 vShadowRadius, _float3 vShadowBoxMarginMin, _float3 vShadowBoxMarginMax)
|
||||
{
|
||||
m_fShadowNearBoxRatio = vNFBoxRatio.x;
|
||||
m_fShadowFarBoxRatio = vNFBoxRatio.y;
|
||||
|
||||
m_fSafe_RadiusMultiplier = vSafeRadius.x;
|
||||
m_fSafe_RadiusMargin = vSafeRadius.y;
|
||||
|
||||
m_vShadowBias = vShadowBias;
|
||||
m_vShadowRadius = vShadowRadius;
|
||||
m_vShadowBoxMarginMin = vShadowBoxMarginMin;
|
||||
m_vShadowBoxMarginMax = vShadowBoxMarginMax;
|
||||
}
|
||||
|
||||
void CPipeLine::Set_Transform(D3DTS eState, _fmatrix TransformStateMatrix)
|
||||
{
|
||||
XMStoreFloat4x4(&m_TransformStateMatrices[ENUM_CLASS(eState)], TransformStateMatrix);
|
||||
|
||||
@@ -135,6 +135,17 @@ HRESULT CRenderer::Bind_PrevMatrix(class CShader* pShader, const _char* pConstan
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRenderer::Set_Environment(_float3 vSSAO, _float fExposure)
|
||||
{
|
||||
m_fSSAO_Radius = vSSAO.x;
|
||||
m_fSSAO_BIAS = vSSAO.y;
|
||||
m_fSSAOStrength = vSSAO.z;
|
||||
m_fExposure = fExposure;
|
||||
// m_fSSAO_Radius = 0.585f;
|
||||
// m_fSSAO_BIAS = 0.182f;
|
||||
// m_fSSAOStrength = 2.83f;
|
||||
}
|
||||
|
||||
void CRenderer::Bind_RawValue()
|
||||
{
|
||||
_uint iNumViewPort = { 1 };
|
||||
|
||||
@@ -103,10 +103,11 @@ class ENGINE_DLL CGameInstance final : public CBase
|
||||
|
||||
#pragma region RENDERER
|
||||
HRESULT Add_RenderGroup(RENDER eRenderGroup, class CGameObject* pRenderObject);
|
||||
void Render_PreShadow(const _float4x4& ViewMatrix, const _float4x4& ProjMatrix);
|
||||
RENDER Get_CurrentRenderPass();
|
||||
void Render_PreShadow(const _float4x4& ViewMatrix, const _float4x4& ProjMatrix);
|
||||
RENDER Get_CurrentRenderPass();
|
||||
HRESULT Bind_PreShadowMatrix(class CShader* pShader, const _char* pConstants, D3DTS eType);
|
||||
HRESULT Bind_PrevMatrix(class CShader* pShader, const _char* pConstants, D3DTS eType);
|
||||
void Set_Environment(_float3 vSSAO, _float fExposure, _float2 vNFBoxRatio, _float2 vSafeRadius, _float4 vShadowBias, _float4 vShadowRadius, _float3 vShadowBoxMarginMin, _float3 vShadowBoxMarginMax);
|
||||
#pragma endregion
|
||||
|
||||
#pragma region KEY_MANAGER
|
||||
|
||||
@@ -24,6 +24,7 @@ class CPipeLine final : public CBase
|
||||
CPipeLine(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual ~CPipeLine() = default;
|
||||
public:
|
||||
void Set_Environment(_float2 vNFBoxRatio, _float2 vSafeRadius, _float4 vShadowBias, _float4 vShadowRadius, _float3 vShadowBoxMarginMin, _float3 vShadowBoxMarginMax);
|
||||
void Set_Transform(D3DTS eState, _fmatrix TransformStateMatrix);
|
||||
const _float4x4* Get_Transform_Float4x4(D3DTS eState);
|
||||
_matrix Get_Transform_Matrix(D3DTS eState);
|
||||
|
||||
@@ -18,6 +18,7 @@ class CRenderer final : public CBase
|
||||
void Render_PreShadow(const _float4x4& ViewMatrix, const _float4x4& ProjMatrix);
|
||||
HRESULT Bind_PreShadowMatrix(class CShader* pShader, const _char* pConstants, D3DTS eType);
|
||||
HRESULT Bind_PrevMatrix(class CShader* pShader, const _char* pConstants, D3DTS eType);
|
||||
void Set_Environment(_float3 vSSAO, _float fExposure);
|
||||
|
||||
#ifdef _DEBUG
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user