stronger global blur

This commit is contained in:
yvt 2014-02-01 21:33:16 +09:00
parent e3ecb7661b
commit 7d7af43808
2 changed files with 6 additions and 1 deletions

View File

@ -134,7 +134,10 @@ namespace spades {
// fade the map
float fade = Clamp((time - 1.f) / 2.2f, 0.f, 1.f);
sceneDef.globalBlur = 1.f - fade;
sceneDef.globalBlur = Clamp((1.f - (time - 1.f) / 2.5f) * 4.f, 0.f, 1.f);
if(!mainMenu.IsEnabled) {
sceneDef.globalBlur = Max(sceneDef.globalBlur, 0.5f);
}
renderer.StartScene(sceneDef);
renderer.EndScene();

View File

@ -397,6 +397,8 @@ namespace spades {
float sin60 = sinf(static_cast<float>(M_PI) / 3.f);
maxCoc *= .7f + vignetteBlur * 0.5f;
maxCoc += 1.f + 5.f * globalBlur;
globalBlur = std::min(globalBlur * 5.f, 1.f);
// reduce resolution to make it faster
int divide = 1;