Skip to content

Commit 781c057

Browse files
committed
fixes
1 parent 24df0cf commit 781c057

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sources/simple/cameraEffects.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ void update()
6565
if (in.valid)
6666
eff.ssao.strength = toFloat(in.value);
6767
}
68-
{ // threshold
68+
{ // bias
6969
Entity *e = ents->get(baseName + 3);
7070
GuiInputComponent &in = e->value<GuiInputComponent>();
7171
if (in.valid)
72-
eff.ssao.threshold = toFloat(in.value);
72+
eff.ssao.bias = toFloat(in.value);
7373
}
7474
{ // power
7575
Entity *e = ents->get(baseName + 4);
@@ -353,7 +353,7 @@ void initializeGui()
353353
sint32 childIndex = 1;
354354
genInputFloat(table, childIndex, baseName, "Rays length:", 0.1, 3, 0.05, ScreenSpaceEffectsComponent().ssao.raysLength);
355355
genInputFloat(table, childIndex, baseName, "Strength:", 0, 3, 0.1, ScreenSpaceEffectsComponent().ssao.strength);
356-
genInputFloat(table, childIndex, baseName, "Threshold:", -0.5, 0.5, 0.01, ScreenSpaceEffectsComponent().ssao.threshold);
356+
genInputFloat(table, childIndex, baseName, "Bias:", -0.5, 0.5, 0.01, ScreenSpaceEffectsComponent().ssao.bias);
357357
genInputFloat(table, childIndex, baseName, "Power:", 0.1, 2, 0.02, ScreenSpaceEffectsComponent().ssao.power);
358358
genInputInt(table, childIndex, baseName, "Samples:", 1, 128, 1, ScreenSpaceEffectsComponent().ssao.samplesCount);
359359
genInputInt(table, childIndex, baseName, "Blur passes:", 0, 10, 1, ScreenSpaceEffectsComponent().ssao.blurPasses);

0 commit comments

Comments
 (0)