[add] Light and Volumetric Setting
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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 = {};
|
||||
|
||||
Reference in New Issue
Block a user