Skip to content

Commit

Permalink
Renderer|FX: Moved color filter later in the FX stack
Browse files Browse the repository at this point in the history
If color filter is applied before bloom, it can alter the resulting hue
and brightness of the filter quite much.

Also, as the color filter is used for pain/etc. effects (visualization
for things that the player senses) they should be applied after the
optical effects.
  • Loading branch information
skyjake committed Mar 16, 2014
1 parent a4fdfc5 commit 8f6a510
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doomsday/client/src/render/cameralensfx.cpp
Expand Up @@ -78,7 +78,7 @@ struct ConsoleEffectStack

static ConsoleEffectStack fxConsole[DDMAXPLAYERS];

#define IDX_LENS_FLARES 3
#define IDX_LENS_FLARES 2
#define IDX_POST_PROCESSING 4

D_CMD(PostFx)
Expand Down Expand Up @@ -123,10 +123,10 @@ void LensFx_Init()
for(int i = 0; i < DDMAXPLAYERS; ++i)
{
ConsoleEffectStack &stack = fxConsole[i];
stack.effects.append(new fx::ColorFilter(i));
stack.effects.append(new fx::Vignette(i));
stack.effects.append(new fx::Bloom(i));
stack.effects.append(new fx::LensFlares(i));
stack.effects.append(new fx::LensFlares(i)); // IDX_LENS_FLARES
stack.effects.append(new fx::ColorFilter(i));
stack.effects.append(new fx::PostProcessing(i)); // IDX_POST_PROCESSING
}
}
Expand Down

0 comments on commit 8f6a510

Please sign in to comment.