Commit b4fc0542 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum

[MERGE]

parents 114e16c3 0bb5bbcc
......@@ -198,21 +198,21 @@ void WMNavigationSlices::initOSG()
osg::ref_ptr< osg::Node > xSlice = wge::genFinitePlane( minV, osg::Vec3( 0.0, sizes[1], 0.0 ),
osg::Vec3( 0.0, 0.0, sizes[2] ) );
xSlice->setName( "Sagittal Slice" );
osg::Uniform* xSliceUniform = new osg::Uniform( "u_WorldTransform", osg::Matrix::identity() );
osg::Uniform* xSliceUniform = new osg::Uniform( "u_WorldTransform", osg::Matrixf::identity() );
xSlice->getOrCreateStateSet()->addUniform( xSliceUniform );
// Y Slice
osg::ref_ptr< osg::Node > ySlice = wge::genFinitePlane( minV, osg::Vec3( sizes[0], 0.0, 0.0 ),
osg::Vec3( 0.0, 0.0, sizes[2] ) );
ySlice->setName( "Coronal Slice" );
osg::Uniform* ySliceUniform = new osg::Uniform( "u_WorldTransform", osg::Matrix::identity() );
osg::Uniform* ySliceUniform = new osg::Uniform( "u_WorldTransform", osg::Matrixf::identity() );
ySlice->getOrCreateStateSet()->addUniform( ySliceUniform );
// Z Slice
osg::ref_ptr< osg::Node > zSlice = wge::genFinitePlane( minV, osg::Vec3( sizes[0], 0.0, 0.0 ),
osg::Vec3( 0.0, sizes[1], 0.0 ) );
zSlice->setName( "Axial Slice" );
osg::Uniform* zSliceUniform = new osg::Uniform( "u_WorldTransform", osg::Matrix::identity() );
osg::Uniform* zSliceUniform = new osg::Uniform( "u_WorldTransform", osg::Matrixf::identity() );
zSlice->getOrCreateStateSet()->addUniform( zSliceUniform );
// disable culling.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment