Skip to content

Commit

Permalink
[change] modify default non-night mode effect
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelbua committed Dec 5, 2012
1 parent e5703bf commit 1b288c8
Showing 1 changed file with 7 additions and 3 deletions.
Expand Up @@ -170,7 +170,7 @@ public void reset () {
if (bloom != null) {
bloomThreshold = (nightMode ? 0.27f : bloomThreshold);
Bloom.Settings bloomSettings = new Bloom.Settings("subtle", Config.PostProcessing.BlurType,
Config.PostProcessing.BlurNumPasses, 1.5f, bloomThreshold, 1f, 0.5f, 1f, 1.5f);
Config.PostProcessing.BlurNumPasses, 1.5f, bloomThreshold, 1f, 0.5f, 1f, 1.3f + (nightMode ? 0.2f : 0));
bloom.setSettings(bloomSettings);
}

Expand Down Expand Up @@ -297,12 +297,15 @@ public void update (float zoomCamera) {

if (bloom != null) {

bloom.setBaseSaturation(AMath.lerp(1f, 0.1f, timeModFactor));
float sat = 0.8f;
if (nightMode) sat += 0.2f;

// bloom.setThreshold(0.27f);
bloom.setBaseSaturation(AMath.lerp(sat, 0.1f, timeModFactor));

// bloom.setBloomSaturation(1.5f - timeModFactor * 0.15f);
// if (!nightMode) {
// bloom.setThreshold(bloomThreshold - (bloomThreshold / 2) * timeModFactor);
// bloom.setThreshold(0.27f);

// bloom.setBloomIntesity(1f + timeModFactor * 0.5f);
// }
Expand Down Expand Up @@ -338,6 +341,7 @@ public void update (float zoomCamera) {
} else {
vignette.setIntensity(0.7f);
}

vignette.setLutIndexOffset(wrongWayAmount.value);
}

Expand Down

0 comments on commit 1b288c8

Please sign in to comment.