 |
Blamite Game Engine - blam!
00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
2 #include "OGRE/OgrePrerequisites.h"
4 #include "OGRE/OgreGpuProgramParams.h"
5 #include "OGRE/OgreMatrix4.h"
11 Ogre::GpuProgramParametersSharedPtr mPsParams[2];
13 Ogre::Matrix4 mLastUvSpaceViewProjMatrix;
14 Ogre::Real mRsDepthRange;
18 Ogre::RenderSystem *renderSystem );
39 static void setupSSR(
bool useMsaa,
bool useHq, Ogre::CompositorManager2 *compositorManager );
100 double zThickness = 0.25,
101 double zThicknessBiasAmount = 2.0,
102 double zThicknessBiasStart = 10.0,
103 double zThicknessBiasEnd = 100.0,
104 float maxDistance = 10000.0f,
105 float reprojectionMaxDistanceError = 2.0f,
106 Ogre::uint16 pixelStride = 4,
107 Ogre::uint16 maxSteps = 200 );
const Ogre::Matrix4 PROJECTIONCLIPSPACE2DTOIMAGESPACE_PERSPECTIVE(0.5, 0, 0, 0.5, 0, -0.5, 0, 0.5, 0, 0, 1, 0, 0, 0, 0, 1)
Definition: ScreenSpaceReflections.h:9
ScreenSpaceReflections(Ogre::TextureGpu *globalCubemap, Ogre::RenderSystem *renderSystem)
Definition: ScreenSpaceReflections.cpp:22
Definition: BaseSystem.cpp:5
@ String
Represents a std::string.
Definition: globals.h:48
Definition: material.h:53
void update(Ogre::Camera *camera)
Definition: ScreenSpaceReflections.cpp:46
BlamDirector * camera
Definition: director.cpp:3
static void setupSSRValues(double equivalentMetersInCurrentUnit, double zThickness=0.25, double zThicknessBiasAmount=2.0, double zThicknessBiasStart=10.0, double zThicknessBiasEnd=100.0, float maxDistance=10000.0f, float reprojectionMaxDistanceError=2.0f, Ogre::uint16 pixelStride=4, Ogre::uint16 maxSteps=200)
SSR algorithm works by "voxelizing" the scene in screen space; and these voxels have a size in view s...
Definition: ScreenSpaceReflections.cpp:174
static void setupSSR(bool useMsaa, bool useHq, Ogre::CompositorManager2 *compositorManager)
Setups SSR materials and compositor nodes according to settings.
Definition: ScreenSpaceReflections.cpp:102