[add] Light and Volumetric Setting

This commit is contained in:
Chanbin Kim
2025-12-28 14:43:24 +09:00
parent f0a9a22535
commit f0c056bd75
8 changed files with 96 additions and 27 deletions
+7
View File
@@ -220,7 +220,14 @@ void CLight::Describe_Entity()
GUI::Spacing();
if (m_LightDesc.eType == LIGHT::DIRECTIONAL)
{
GUI::Text("Direction:");
GUI::InputFloat3("##Direction", (_float*)m_LightDesc.pDirection);
}
m_pOwner->Get_Component<CTransform>()->Describe_Entity();
GUI::TreePop();
}
@@ -193,9 +193,9 @@ void CVolumetric::Describe_Entity()
_bool open = true;
GUI::Begin("SYSTEM", &open, IMGUI_GLOBAL_BEGIN_FLAG);
if (GUI::CollapsingHeader("VOLUMETRIC")) {
GUI::SliderFloat("Density", &m_fDensity,0.01f, 5.f);
GUI::SliderFloat("LightIntensity", &m_fLightIntensity, 0.01f, 5.f);
GUI::SliderFloat("AsymmetryParameter", &m_fAsymmetryParameter, 0.01f, 5.f);
GUI::SliderFloat("Density", &m_fDensity,0.001f, 5.f);
GUI::SliderFloat("LightIntensity", &m_fLightIntensity, 0.01f, 0.5f, "%.4f");
GUI::SliderFloat("AsymmetryParameter", &m_fAsymmetryParameter, -0.9f, 0.9f, "%.4f");
GUI::SliderFloat("DepthPackExponent", &m_fDepthPackExponent, 0.01f, 5.f);
}
GUI::End();
+4 -4
View File
@@ -71,10 +71,10 @@ class CVolumetric final : public CBase
ID3D11ComputeShader* m_pCSVolumeAccumulate = { nullptr };
ID3DBlob* m_pCSBlobAccumulate = { nullptr };
_float m_fDensity = { 0.5f };
_float m_fLightIntensity = { 1.f };
_float m_fAsymmetryParameter = { 0.2f };
_float m_fDepthPackExponent = { 2.f };
_float m_fDensity = { 0.953f }; // 밀도
_float m_fLightIntensity = { 0.01f }; // 광원 강도
_float m_fAsymmetryParameter = { 0.5344f }; // 이방성 계수 값이 클 수록 들어오는 방향으로 나가는 빛의 양이 많아짐
_float m_fDepthPackExponent = { 1.f }; // 깊이 비선형 분포 지수
#ifdef _DEBUG
class CRenderEventDebugger m_AnnotationHelper = {};