Skip to content

Commit

Permalink
Add missing downsampling effect setup in graphicsfeatureunit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Duttenheim committed Oct 24, 2023
1 parent cf32857 commit 2065c3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/addons/graphicsfeature/graphicsfeatureunit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "terrain/terraincontext.h"
#include "vegetation/vegetationcontext.h"
#include "posteffects/histogramcontext.h"
#include "posteffects/downsamplingcontext.h"
#include "particles/particlecontext.h"

#include "graphics/globalconstants.h"
Expand Down Expand Up @@ -153,11 +154,13 @@ GraphicsFeatureUnit::OnActivate()
PostEffects::BloomContext::Create();
PostEffects::SSAOContext::Create();
PostEffects::HistogramContext::Create();
PostEffects::DownsamplingContext::Create();

PostEffects::BloomContext::Setup(frameScript);
PostEffects::SSAOContext::Setup(frameScript);
PostEffects::HistogramContext::Setup(frameScript);
PostEffects::HistogramContext::SetWindow({ 0.0f, 0.0f }, { 1.0f, 1.0f }, 1);
PostEffects::DownsamplingContext::Setup(frameScript);

Graphics::SetupBufferConstants(frameScript);

Expand Down

0 comments on commit 2065c3e

Please sign in to comment.