#pragma once #include "Base.h" NS_BEGIN(Engine) class CRenderer final : public CBase { private: CRenderer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual ~CRenderer() = default; public: void Render(); HRESULT Add_RenderGroup(RENDER eRenderGroup, class CGameObject* pRenderObject); void Render_PreShadow(); #ifdef _DEBUG private: HRESULT Add_DebugComponent(class CComponent* pDebugCom); #endif private: ID3D11Device* m_pDevice = { nullptr }; ID3D11DeviceContext* m_pContext = { nullptr }; class CGameInstance* m_pGameInstance = { nullptr }; list m_RenderObjects[ENUM_CLASS(RENDER::END)]; #ifdef _DEBUG private: list m_DebugComponents; #endif private: class CShader* m_pShader = { nullptr }; class CShader* m_pLastColorShader = { nullptr }; class CShader* m_pWeightBlendShader = { nullptr }; class CVIBuffer_Rect* m_pVIBuffer = { nullptr }; private: _float4x4 m_WorldMatrix = {}; _float4x4 m_ViewMatrix = {}; _float4x4 m_ProjMatrix = {}; ID3D11DepthStencilView* m_pShadowDSV = { nullptr }; ID3D11DepthStencilView* m_pPreShadowDSV = { nullptr }; SHADOW_LIGHT_DESC m_PreShadowDesc = {}; _float4x4 m_PreShadowMatrices[ENUM_CLASS(D3DTS::END)] = {}; /* TunningParam */ _int m_iToneMappingType = { 2 }; _float m_fExposure = { 0.7f }; _int m_iBloomEmbossingPass = { 0 }; _float m_fBloomThreshold = { 1.26f }; _float m_fDOF_ENV_CutThreshold = { 0.1350f }; _float m_fDOF_ENV_FocusDistance = { 31.1f }; _float m_fDOF_ENV_StartDistance = { 53.1f }; _float m_fDOF_ENV_MaxEnd = { 360.f }; _float m_fDOF_ENV_AmountRadius = { 1.f }; private: void Render_Occlusion(); void Render_Priority(); void Render_Shadow(); void Render_NonBlend(); void Render_LightAcc(); void Render_Blur(); void Render_SSAO(); void Render_SSAO_BLUR(); void Render_SSAO_Lighting(); void Render_Combined(); void Render_EnvironmentPostProcess(); void Render_Fog(); void Render_Effect(); void Render_WeightBlend(); void Render_NonLight(); void Render_Blend(); void Render_Bloom(); void Render_LastColor(); void Render_Tone_Mapping(); void Render_UI(); #ifdef _DEBUG private: void Render_Debug(); #endif private: HRESULT Ready_ShadowDepthStencilView(_uint iSizeX, _uint iSizeY); private: HRESULT Initialize(); public: static CRenderer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual void Free(); #ifdef _DEBUG virtual void Describe_Entitiy(); #endif // _DEBUG }; NS_END