[add] Volumetric Fog
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include "Fog.h"
|
||||
#include "Resource_Manager.h"
|
||||
#include "Font_Manager.h"
|
||||
#include "Volumetric.h"
|
||||
|
||||
IMPLEMENT_SINGLETON(CGameInstance)
|
||||
|
||||
@@ -115,6 +116,11 @@ HRESULT CGameInstance::Initialize_Engine(const ENGINE_DESC& EngineDesc, ID3D11De
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pVolumetric = CVolumetric::Create(*ppDevice, *ppContext);
|
||||
if (nullptr == m_pVolumetric) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pFont_Manager = CFont_Manager::Create(*ppDevice, *ppContext);
|
||||
if (nullptr == m_pFont_Manager) {
|
||||
return E_FAIL;
|
||||
@@ -150,6 +156,8 @@ void CGameInstance::Update_Engine(_float fTimeDelta)
|
||||
|
||||
m_pObject_Manager->Late_Update(fExcuteTimeDelta);
|
||||
|
||||
m_pVolumetric->Dispatch();
|
||||
|
||||
m_pLevel_Manager->Update(fExcuteTimeDelta);
|
||||
m_pObject_Manager->Clear_DeadObj();
|
||||
|
||||
@@ -939,6 +947,10 @@ _float CGameInstance::Get_CameraFov()
|
||||
{
|
||||
return m_pCamera_Manager->Get_CameraFov();
|
||||
}
|
||||
_float CGameInstance::Get_CameraNear()
|
||||
{
|
||||
return m_pCamera_Manager->Get_CameraNear();
|
||||
}
|
||||
const _float* CGameInstance::Get_CurrentCameraFar()
|
||||
{
|
||||
return m_pCamera_Manager->Get_CurrentCameraFar();
|
||||
@@ -1284,6 +1296,16 @@ _float CGameInstance::FontSizeX(const _wstring& strFontTag, const _tchar* pText)
|
||||
return m_pFont_Manager->FontSizeX(strFontTag, pText);
|
||||
}
|
||||
|
||||
ID3D11ShaderResourceView* CGameInstance::Get_VolumeSRV()
|
||||
{
|
||||
return m_pVolumetric->Get_VolumeSRV();
|
||||
}
|
||||
|
||||
_float* CGameInstance::Get_DepthPackExponentPtr()
|
||||
{
|
||||
return m_pVolumetric->Get_DepthPackExponentPtr();
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
|
||||
void CGameInstance::Release_Engine()
|
||||
@@ -1302,6 +1324,7 @@ void CGameInstance::Release_Engine()
|
||||
SAFE_RELEASE(m_pKey_Manager);
|
||||
SAFE_RELEASE(m_pMouse_Manager);
|
||||
SAFE_RELEASE(m_pTimer_Manager);
|
||||
SAFE_RELEASE(m_pVolumetric);
|
||||
SAFE_RELEASE(m_pRenderer);
|
||||
SAFE_RELEASE(m_pObject_Manager);
|
||||
SAFE_RELEASE(m_pPhysX_Manager);
|
||||
|
||||
Reference in New Issue
Block a user