Ignore:
Timestamp:
08/21/08 20:17:46 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SsaoShader.h

    r2859 r2860  
    1212 
    1313class FrameBufferObject; 
     14class Vector3; 
     15class Camera; 
    1416 
    1517 
     
    2123public: 
    2224        /** 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. 
    2831        */ 
    29         SsaoShader(int w, int h, float expFactor, float scaleFactor); 
     32        SsaoShader(int w, int h, Camera *cam, float expFactor, float scaleFactor); 
    3033        /** The algorithm renders the scene given an fbo. 
    3134                The fbo must have color buffer, position buffer, normal buffer. 
     
    5558        /// this is just a scale factor for the scene depth in order to get better float precision in the shader 
    5659        float mScaleFactor; 
     60 
     61        Camera *mCamera; 
     62 
     63 
     64private: 
     65 
     66        void CreateNoiseTex2D(); 
     67        void ComputeViewVectors(Vector3 &tl, Vector3 &tr, Vector3 &bl, Vector3 &br); 
     68 
    5769}; 
    5870 
Note: See TracChangeset for help on using the changeset viewer.