Ignore:
Timestamp:
09/03/08 01:57:45 (16 years ago)
Author:
mattausch
Message:

improved shadow mapping

File:
1 edited

Legend:

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

    r2895 r2897  
    2929                The shadow map has resolution size * size. 
    3030        */ 
    31         ShadowMap(int size, const AxisAlignedBox3 &sceneBox, Camera *cam); 
     31        ShadowMap(Light *light, int size, const AxisAlignedBox3 &sceneBox, Camera *cam); 
    3232 
    3333        ~ShadowMap(); 
    3434        /** Computes the shadow map 
    3535        */ 
    36         void ComputeShadowMap(Light *light, RenderTraverser *traverser); 
     36        void ComputeShadowMap(RenderTraverser *traverser); 
    3737        /** Returns computed shadow texture. 
    3838        */ 
     
    4949        */ 
    5050        int GetSize() const { return mSize; } 
     51 
     52        Camera *GetShadowCamera() const { return mShadowCam; } 
     53 
    5154 
    5255protected: 
Note: See TracChangeset for help on using the changeset viewer.