This commit is contained in:
GiJungSUk
2025-12-28 11:07:51 +09:00
parent 941fdf5884
commit cc1b13c8db
8 changed files with 29 additions and 8 deletions
@@ -1313,7 +1313,7 @@ technique11 DefaultTechnique
pass DebugPass // 0
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetDepthStencilState(DSS_None, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
@@ -102,6 +102,7 @@ HRESULT CLevel_EffectViewer::Initialize()
//m_PlaneData.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
//m_pGameInstance->Add_Editor_Plane(m_PlaneData);
m_pGameInstance->Setting_Volumetirc(0.5f, 0.064f, 0.902f, 2.0f);
return S_OK;
}
@@ -155,7 +156,7 @@ HRESULT CLevel_EffectViewer::Ready_Layer_Light()
return E_FAIL;
}
_float4 vDiffuse = _float4(0.745f, 0.797f, 0.8f, 0.f);
_float4 vDiffuse = _float4(0.607f, 0.658f, 0.698f, 0.f);
_float4 vAmbient = _float4(0.1f, 0.13f, 0.13f, 0.f);
_float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f);
@@ -1313,7 +1313,7 @@ technique11 DefaultTechnique
pass DebugPass // 0
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetDepthStencilState(DSS_None, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
@@ -1296,6 +1296,11 @@ _float CGameInstance::FontSizeX(const _wstring& strFontTag, const _tchar* pText)
return m_pFont_Manager->FontSizeX(strFontTag, pText);
}
#pragma endregion
#pragma region VOLUMETRIC
ID3D11ShaderResourceView* CGameInstance::Get_VolumeSRV()
{
return m_pVolumetric->Get_VolumeSRV();
@@ -1306,8 +1311,12 @@ _float* CGameInstance::Get_DepthPackExponentPtr()
return m_pVolumetric->Get_DepthPackExponentPtr();
}
#pragma endregion
void CGameInstance::Setting_Volumetirc(_float fDensity, _float fLightIntensity, _float fAsymmetryParameter, _float fDepthPackExponent)
{
m_pVolumetric->Setting_Volumetirc(fDensity , fLightIntensity , fAsymmetryParameter, fDepthPackExponent);
}
#pragma endregion
void CGameInstance::Release_Engine()
{
SAFE_RELEASE(m_pThreadHolder);
@@ -142,6 +142,14 @@ HRESULT CVolumetric::Dispatch()
}
void CVolumetric::Setting_Volumetirc(_float fDensity, _float fLightIntensity, _float fAsymmetryParameter, _float fDepthPackExponent)
{
m_fDensity = fDensity;
m_fLightIntensity = fLightIntensity;
m_fAsymmetryParameter = fAsymmetryParameter;
m_fDepthPackExponent = fDepthPackExponent;
}
CVolumetric* CVolumetric::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CVolumetric* pInstance = new CVolumetric(pDevice, pContext);
+3 -2
View File
@@ -267,8 +267,9 @@ class ENGINE_DLL CGameInstance final : public CBase
#pragma endregion
#pragma region VOLUMETRIC
ID3D11ShaderResourceView* Get_VolumeSRV();
_float* Get_DepthPackExponentPtr();
ID3D11ShaderResourceView* Get_VolumeSRV();
_float* Get_DepthPackExponentPtr();
void Setting_Volumetirc(_float fDensity, _float fLightIntensity, _float fAsymmetryParameter, _float fDepthPackExponent);
#pragma endregion
@@ -47,6 +47,8 @@ class CVolumetric final : public CBase
ID3D11ShaderResourceView* Get_VolumeSRV() { return m_pAccVolumeSRV; }
_float* Get_DepthPackExponentPtr() { return &m_fDepthPackExponent; }
void Setting_Volumetirc(_float fDensity , _float fLightIntensity, _float fAsymmetryParameter , _float fDepthPackExponent);
private:
class CGameInstance* m_pGameInstance = { nullptr };
ID3D11Device* m_pDevice = { nullptr };