Changeset 2860 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SsaoShader.h
- Timestamp:
- 08/21/08 20:17:46 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SsaoShader.h
r2859 r2860 12 12 13 13 class FrameBufferObject; 14 class Vector3; 15 class Camera; 14 16 15 17 … … 21 23 public: 22 24 /** constructor for a deferred shader taking the requested output image size, 23 the exponential smoothing factor for temporal reprojection. 24 25 The last parameter is a just a scale factor 26 for the scene depth in order to get better floating point precision in the shader 27 This must be reciprocal value of the scale factor used in the mrt shader. 25 the current camera, the exponential smoothing factor for temporal reprojection, 26 and a scaling factor. 27 28 The parameter scaleFactor must be reciprocal value of the 29 scale factor used for creating the positions texture. It is used recover the 30 exact scene size that was scaled in order to improve floating point precision. 28 31 */ 29 SsaoShader(int w, int h, float expFactor, float scaleFactor);32 SsaoShader(int w, int h, Camera *cam, float expFactor, float scaleFactor); 30 33 /** The algorithm renders the scene given an fbo. 31 34 The fbo must have color buffer, position buffer, normal buffer. … … 55 58 /// this is just a scale factor for the scene depth in order to get better float precision in the shader 56 59 float mScaleFactor; 60 61 Camera *mCamera; 62 63 64 private: 65 66 void CreateNoiseTex2D(); 67 void ComputeViewVectors(Vector3 &tl, Vector3 &tr, Vector3 &bl, Vector3 &br); 68 57 69 }; 58 70
Note: See TracChangeset
for help on using the changeset viewer.