From Wojciech Lewandowski, "ref_ptr usage changes made on 9th of June broke VirtualProgram used in osgShaderCompositor example. Taking the opportunity I modified the code a little to use earth sphere as default model. Cow.osg used previously was not looking good in advanced example. I also changed default to advanced example, because its more informative with labels describing virtual programs used to render the objects."
This commit is contained in:
@@ -11,12 +11,10 @@
|
||||
using osgCandidate::VirtualProgram;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
osg::Node * CreateSimpleHierarchy( const char * file )
|
||||
osg::Node * CreateSimpleHierarchy( osg::Node * node )
|
||||
{
|
||||
osg::Node * node = osgDB::readNodeFile( file );
|
||||
if( !node ) return NULL;
|
||||
float r = node->getBound().radius(); // diameter
|
||||
|
||||
osg::Group * root = new osg::Group();
|
||||
osg::Group * group = new osg::Group();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user