Skip to content

Commit

Permalink
Renderer|FX: Bloom tweaks
Browse files Browse the repository at this point in the history
Only render bloom when a map is loaded. Also, raised the bloom
threshold a little bit.
  • Loading branch information
skyjake committed Mar 15, 2014
1 parent 5fde643 commit 3fb4ce9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion doomsday/client/src/render/fx/bloom.cpp
Expand Up @@ -29,7 +29,7 @@ namespace fx {

static int bloomEnabled = true;
static float bloomIntensity = .65f;
static float bloomThreshold = .3f;
static float bloomThreshold = .35f;
static float bloomDispersion = 1.75f;

DENG2_PIMPL(Bloom)
Expand Down Expand Up @@ -222,6 +222,11 @@ void Bloom::glDeinit()

void Bloom::draw()
{
if(!ClientApp::worldSystem().hasMap())
{
return;
}

if(!bloomEnabled || bloomIntensity <= 0)
{
return;
Expand Down
2 changes: 1 addition & 1 deletion doomsday/client/src/render/rendersystem.cpp
Expand Up @@ -159,7 +159,7 @@ DENG2_PIMPL(RenderSystem)

.define(SReg::IntCVar, "rend-bloom", 1)
.define(SReg::FloatCVar, "rend-bloom-intensity", .65f)
.define(SReg::FloatCVar, "rend-bloom-threshold", .3f)
.define(SReg::FloatCVar, "rend-bloom-threshold", .35f)
.define(SReg::FloatCVar, "rend-bloom-dispersion", 1.75f)

.define(SReg::IntCVar, "rend-fakeradio", 1)
Expand Down

0 comments on commit 3fb4ce9

Please sign in to comment.