Changeset 2874 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SsaoShader.h
- Timestamp:
- 08/27/08 16:14:10 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SsaoShader.h
r2873 r2874 22 22 { 23 23 public: 24 /** constructor for a deferred shader taking the requested output image size,24 /** Constructor for a deferred shader taking the requested output image size, 25 25 the current camera, and a scaling factor. 26 26 … … 30 30 */ 31 31 SsaoShader(int w, int h, Camera *cam, float scaleFactor); 32 /** 33 34 The algorithm renders the scene given an fbo consists of 1 color buffer, 32 /** The algorithm renders the scene given an fbo consists of 1 color buffer, 35 33 1 position buffer, and 1 normal buffer. 36 34 We also need the projection view matrix of the last frame for reprojection, and … … 46 44 ~SsaoShader(); 47 45 46 void SetType(bool useGlobIllum, bool useTemporalCoherence); 47 48 48 protected: 49 49 50 void ComputeSsao(FrameBufferObject *fbo, float expFactor );50 void ComputeSsao(FrameBufferObject *fbo, float expFactor, const Matrix4x4 &oldProjViewMatrix); 51 51 52 void ComputeGlobIllum(FrameBufferObject *fbo, float expFactor );52 void ComputeGlobIllum(FrameBufferObject *fbo, float expFactor, const Matrix4x4 &oldProjViewMatrix); 53 53 54 54 void FirstPass(FrameBufferObject *fbo);
Note: See TracChangeset
for help on using the changeset viewer.