Nebula
Loading...
Searching...
No Matches
ssaocontext.cc File Reference
#include "frame/framesubgraph.h"
#include "frame/framecode.h"
#include "coregraphics/graphicsdevice.h"
#include "coregraphics/resourcetable.h"
#include "coregraphics/sampler.h"
#include "coregraphics/shadersemantics.h"
#include "graphics/cameracontext.h"
#include "graphics/graphicsserver.h"
#include "graphics/view.h"
#include "ssaocontext.h"
#include "system_shaders/hbao_cs.h"
#include "system_shaders/hbaoblur_cs.h"
#include "frame/default.h"

Namespaces

namespace  PostEffects
 Bloom post effect.
 

Macros

#define MAX_RADIUS_PIXELS   0.5f
 
#define INV_LN2   1.44269504f
 
#define SQRT_LN2   0.832554611f
 
#define BLUR_RADIUS   33
 
#define BLUR_SHARPNESS   8.0f
 

Functions

 PostEffects::__ImplementPluginContext (PostEffects::SSAOContext)
 

Variables

struct { 
 
   CoreGraphics::ShaderId   PostEffects::hbaoShader 
 
   CoreGraphics::ShaderId   PostEffects::blurShader 
 
   CoreGraphics::ShaderProgramId   PostEffects::xDirectionHBAO 
 
   CoreGraphics::ShaderProgramId   PostEffects::yDirectionHBAO 
 
   CoreGraphics::ShaderProgramId   PostEffects::xDirectionBlur 
 
   CoreGraphics::ShaderProgramId   PostEffects::yDirectionBlur 
 
   Util::FixedArray< CoreGraphics::ResourceTableId >   PostEffects::hbaoTable 
 
   Util::FixedArray< CoreGraphics::ResourceTableId >   PostEffects::blurTableX 
 
   Util::FixedArray< CoreGraphics::ResourceTableId >   PostEffects::blurTableY 
 
   IndexT   PostEffects::uvToViewAVar 
 
   IndexT   PostEffects::uvToViewBVar 
 
   IndexT   PostEffects::r2Var 
 
   IndexT   PostEffects::aoResolutionVar 
 
   IndexT   PostEffects::invAOResolutionVar 
 
   IndexT   PostEffects::strengthVar 
 
   IndexT   PostEffects::tanAngleBiasVar 
 
   IndexT   PostEffects::powerExponentVar 
 
   IndexT   PostEffects::blurFalloff 
 
   IndexT   PostEffects::blurDepthThreshold 
 
   CoreGraphics::TextureId   PostEffects::internalTargets [2] 
 
   struct AOVariables
 
      float   PostEffects::width 
 
      float   PostEffects::height 
 
      float   PostEffects::downsample 
 
      float   PostEffects::nearZ 
 
      float   PostEffects::farZ 
 
      float   PostEffects::sceneScale 
 
      Math::vec2   PostEffects::uvToViewA 
 
      Math::vec2   PostEffects::uvToViewB 
 
      float   PostEffects::radius 
 
      float   PostEffects::r 
 
      float   PostEffects::r2 
 
      float   PostEffects::negInvR2 
 
      Math::vec2   PostEffects::focalLength 
 
      Math::vec2   PostEffects::aoResolution 
 
      Math::vec2   PostEffects::invAOResolution 
 
      float   PostEffects::maxRadiusPixels 
 
      float   PostEffects::strength 
 
      float   PostEffects::tanAngleBias 
 
      float   PostEffects::blurThreshold 
 
      float   PostEffects::blurFalloff 
 
   }   PostEffects::vars 
 
PostEffects::ssaoState 
 

Macro Definition Documentation

◆ BLUR_RADIUS

#define BLUR_RADIUS   33

◆ BLUR_SHARPNESS

#define BLUR_SHARPNESS   8.0f

◆ INV_LN2

#define INV_LN2   1.44269504f

◆ MAX_RADIUS_PIXELS

#define MAX_RADIUS_PIXELS   0.5f

◆ SQRT_LN2

#define SQRT_LN2   0.832554611f