Show
Ignore:
Timestamp:
10/21/14 17:10:27 (3 days ago)
Author:
robert
Message:

Added shaders to support experimental shader based displacement mapping technique osgTerrain::ShaderTerrain?.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osgViewer/Viewer

    r13041 r13376  
    9494        virtual void updateTraversal(); 
    9595 
    96         void setCameraWithFocus(osg::Camera* camera) { _cameraWithFocus = camera; } 
    97         osg::Camera* getCameraWithFocus() { return _cameraWithFocus.get(); } 
    98         const osg::Camera* getCameraWithFocus() const { return _cameraWithFocus.get(); } 
    99  
    10096        virtual void getCameras(Cameras& cameras, bool onlyActive=true); 
    10197 
     
    120116        virtual void viewerInit() { init(); } 
    121117 
    122         osg::observer_ptr<osg::Camera>              _cameraWithFocus; 
    123  
     118        void generateSlavePointerData(osg::Camera* camera, osgGA::GUIEventAdapter& event); 
     119        void generatePointerData(osgGA::GUIEventAdapter& event); 
     120        void reprojectPointerData(osgGA::GUIEventAdapter& source_event, osgGA::GUIEventAdapter& dest_event); 
    124121 
    125122};