Show
Ignore:
Timestamp:
11/28/06 17:00:52 (8 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/osgtexture3D/osgtexture3D.cpp

    r5381 r5763  
    9090            osg::TexGen* texgen = new osg::TexGen; 
    9191            texgen->setMode(osg::TexGen::OBJECT_LINEAR); 
    92             texgen->setPlane(osg::TexGen::R, osg::Vec4(0.0f,0.0f,0.0f,0.2f)); 
     92            texgen->setPlane(osg::TexGen::R, osg::Plane(0.0f,0.0f,0.0f,0.2f)); 
    9393 
    9494            // create the StateSet to store the texture data