Show
Ignore:
Timestamp:
11/28/06 17:00:52 (7 years ago)
Author:
robert
Message:

Added support for float or double osg::Plane, and the default osg::Plane to double.
Performance tests on big models did not indicate any performance penalty in using doubles over floats,
so the move to doubles should mainly impact precision improvements for whole earth databases.

Also made improvements to osgUtil::PlaneIntersector? and osgSim::ElevationSlice? classes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgtexture1D/osgtexture1D.cpp

    r5381 r5763  
    6464    osg::TexGen* texgen = new osg::TexGen; 
    6565    texgen->setMode(osg::TexGen::OBJECT_LINEAR); 
    66     texgen->setPlane(osg::TexGen::S,osg::Vec4(0.0f,0.0f,zScale,-zBase)); 
     66    texgen->setPlane(osg::TexGen::S,osg::Plane(0.0f,0.0f,zScale,-zBase)); 
    6767     
    6868    osg::Material* material = new osg::Material;