Skip to content

Commit eae46f4

Browse files
committed
GITechDemo:
* tuned some parameters, particularly for tonemapping * fixed a couple of memory leaks
1 parent 2068a18 commit eae46f4

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

GITechDemo/Code/AppMain/GITechDemo/GITechDemo.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ void GITechDemo::Release()
187187

188188
bExtraResInit = false;
189189

190+
ImGui::Shutdown();
190191
RenderScheme::ReleaseResources();
191192

192193
RenderResource::FreeAll();

GITechDemo/Code/AppMain/GITechDemo/Resources/AppResources.cpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ namespace GITechDemoApp
777777
"Directional light",
778778
RenderConfig::DirectionalLight::IrradianceFactor,
779779
0.1f,
780-
1.f);
780+
0.5f);
781781

782782
CREATE_ARTIST_PARAMETER_OBJECT(
783783
"Reflection factor",
@@ -1048,7 +1048,7 @@ namespace GITechDemoApp
10481048
"Reflective shadow map",
10491049
RenderConfig::ReflectiveShadowMap::KernelScale,
10501050
0.001f,
1051-
0.025f);
1051+
0.02f);
10521052

10531053
CREATE_ARTIST_PARAMETER_OBJECT(
10541054
"Upscale threshold",
@@ -1617,47 +1617,47 @@ namespace GITechDemoApp
16171617
"HDR tone mapping",
16181618
RenderConfig::PostProcessing::ToneMapping::ShoulderStrength,
16191619
0.1f,
1620-
0.5f);
1620+
0.15f);
16211621

16221622
CREATE_ARTIST_PARAMETER_OBJECT(
16231623
"Linear strength",
16241624
"Strength of the linear part of the filmic tone mapping curve",
16251625
"HDR tone mapping",
16261626
RenderConfig::PostProcessing::ToneMapping::LinearStrength,
16271627
0.1f,
1628-
0.58f);
1628+
0.5f);
16291629

16301630
CREATE_ARTIST_PARAMETER_OBJECT(
16311631
"Linear angle",
16321632
"Angle of the linear part of the filmic tone mapping curve",
16331633
"HDR tone mapping",
16341634
RenderConfig::PostProcessing::ToneMapping::LinearAngle,
16351635
0.1f,
1636-
0.35f);
1636+
0.1f);
16371637

16381638
CREATE_ARTIST_PARAMETER_OBJECT(
16391639
"Toe strength",
16401640
"Strength of the toe part of the filmic tone mapping curve",
16411641
"HDR tone mapping",
16421642
RenderConfig::PostProcessing::ToneMapping::ToeStrength,
16431643
0.1f,
1644-
0.48f);
1644+
0.2f);
16451645

16461646
CREATE_ARTIST_PARAMETER_OBJECT(
16471647
"Toe numerator",
16481648
"Numerator of the toe part of the filmic tone mapping curve",
16491649
"HDR tone mapping",
16501650
RenderConfig::PostProcessing::ToneMapping::ToeNumerator,
16511651
0.01f,
1652-
0.12f);
1652+
0.02f);
16531653

16541654
CREATE_ARTIST_PARAMETER_OBJECT(
16551655
"Toe denominator",
16561656
"Denominator of the toe part of the filmic tone mapping curve",
16571657
"HDR tone mapping",
16581658
RenderConfig::PostProcessing::ToneMapping::ToeDenominator,
16591659
0.1f,
1660-
0.58f);
1660+
0.3f);
16611661

16621662
CREATE_ARTIST_PARAMETER_OBJECT(
16631663
"Linear white",

GITechDemo/Code/AppMain/GITechDemo/Utilities/Poisson.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,10 @@ std::vector<sPoint> GeneratePoissonPoints( float MinDist, int NewPointsCount, si
214214

215215
//std::cout << std::endl << std::endl;
216216

217+
delete dis;
218+
delete gen;
219+
delete rd;
220+
217221
return SamplePoints;
218222
}
219223

0 commit comments

Comments
 (0)