stronger global blur
This commit is contained in:
parent
e3ecb7661b
commit
7d7af43808
@ -134,7 +134,10 @@ namespace spades {
|
|||||||
|
|
||||||
// fade the map
|
// fade the map
|
||||||
float fade = Clamp((time - 1.f) / 2.2f, 0.f, 1.f);
|
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.StartScene(sceneDef);
|
||||||
renderer.EndScene();
|
renderer.EndScene();
|
||||||
|
@ -397,6 +397,8 @@ namespace spades {
|
|||||||
float sin60 = sinf(static_cast<float>(M_PI) / 3.f);
|
float sin60 = sinf(static_cast<float>(M_PI) / 3.f);
|
||||||
|
|
||||||
maxCoc *= .7f + vignetteBlur * 0.5f;
|
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
|
// reduce resolution to make it faster
|
||||||
int divide = 1;
|
int divide = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user