Ignore:
Timestamp:
05/18/05 02:06:32 (19 years ago)
Author:
mattausch
Message:

fixed bug with shadow maps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/Ogre/include/OgrePlatformHierarchyInterface.h

    r94 r103  
    4444        void SetCullCamera(Camera *cullCam); 
    4545        /** Initialises this scene traverser for the current frame. 
    46         @param root root of the hierarchy 
    47                 @param cam current camera 
    48                 @param cullCam the camera used for culling. If null, the current camera is used 
    49                 @remark convenience method wich calls VisibilitySceneTraverser::initFrame, 
    50                 sets the current camera, and initialises the distance queue. 
     46                @remark This is a convenience method which resets the stats,  
     47                                sets the current camera, and initialises the distance queue. 
     48                @param root root of the hierarchy 
     49                @param cam the actual camera definding the view frustum 
     50                @param cullCam the camera used for culling.  
     51                @remark If null, the actual camera is used for both viewing and culling          
    5152        */ 
    5253        void InitFrame(GtpVisibility::HierarchyNode *root, Camera *cam, Camera *cullCam = NULL); 
     
    6061        */ 
    6162        void SetSceneManager(SceneManager *sm); 
    62         /** Sets pointer to the current render system  
     63        /** Sets pointer to the current render system . 
    6364                @param rsys the rendersystem  
    6465        */ 
     
    7778                GtpVisibility::HierarchyNode *node, const bool wasVisible); 
    7879 
     80        /** If true, the interface finds and renders only objects which are marked as shadow casters. 
     81                @remark This is important for the shadow texture pass 
     82        */ 
     83        void SetOnlyShadowCasters(bool onlyShadowCasters); 
     84 
    7985protected: 
     86        /** A pass that prepares an occlusion query. 
     87                @remark disables depth write, colour write, lighting, 
     88                vertex and fragment program. 
     89        */ 
     90        void SetOcclusionPass(); 
     91 
    8092        /** Deletes all occlusion queries. 
    8193        */ 
     
    8597        */ 
    8698        void RenderBoundingBox(AxisAlignedBox *box); 
    87         /** Returns pointer to current renderable half bounding box geometry 
    88         */ 
    89         //SolidHalfBoundingBox *GetSolidHalfBoundingBox(); 
     99 
    90100        /** Returns pointer to current renderable bounding box geometry 
    91101        */ 
    92102        SolidBoundingBox *GetSolidBoundingBox(); 
    93103 
    94         /** one renderable half of an aabb.  
     104        /** Returns pointer to current renderable half bounding box geometry 
     105        */ 
     106        //SolidHalfBoundingBox *GetSolidHalfBoundingBox(); 
     107 
     108        /** Renderable of an aabb 
    95109        */ 
    96110        SolidBoundingBox *mSolidBoundingBox; 
     
    105119         
    106120        std::vector<PlatformOcclusionQuery *> mOcclusionQueries; 
     121 
     122        bool mOnlyShadowCasters; 
    107123}; 
    108124 
Note: See TracChangeset for help on using the changeset viewer.