Figured it out finally. Need to use : stateSet -> addUniform( new osg::Uniform( "stTexture" , 0 ) ) ; stateSet -> setTextureAttributeAndModes( 1 , projTexture , osg::StateAttribute::ON ) ; stateSet -> addUniform( new osg::Uniform( "projectionTexture" , 1 ) ) ;
Instead of : stateSet -> addUniform( new osg::Uniform( osg::Uniform::SAMPLER_2D , "stTexture" , 1 ) ) ; stateSet -> setTextureAttributeAndModes( 1 , projTexture , osg::StateAttribute::ON ) ; stateSet -> addUniform( new osg::Uniform( osg::Uniform::SAMPLER_2D , "projectionTexture" , 1 ) ) ; Thank you! Cheers, searching for the Pivot of my Soul, PP !!! ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=32944#32944 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

