Show
Ignore:
Timestamp:
10/21/14 17:10:27 (42 hours 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/osgUtil/LineSegmentIntersector

    r12237 r13376  
    6464            const osg::Vec3& getLocalIntersectNormal() const { return localIntersectionNormal; } 
    6565            osg::Vec3 getWorldIntersectNormal() const { return matrix.valid() ? osg::Matrix::transform3x3(osg::Matrix::inverse(*matrix),localIntersectionNormal) : localIntersectionNormal; } 
     66 
     67            /** convinience function for mapping the intersection point to any textures assigned to the objects intersected. 
     68             *  Returns the Texture pointer and texture coords of object hit when a texture is available on the object, returns NULL otherwise.*/ 
     69            osg::Texture* getTextureLookUp(osg::Vec3& tc) const; 
     70             
    6671        }; 
    6772