Hi, Use the osgDB::findDataFile() function to find the file in the current osg file path. Example:
std::string fullPath = osgDB::findDataFile(filename); osg::Shader::loadShaderSourceFromFile(fullPath); -Farshid On 8/4/06, Terry Welsh <[EMAIL PROTECTED]> wrote:
Is there a simple fix to make Shader::loadShaderSourceFromFile() look in directories contained in OSG_FILE_PATH? Or is there a bunch of code I should start writing if I want that feature? Suggestions welcomed..... -- Terry Welsh - mogumbo 'at' gmail.com www.reallyslick.com | www.mogumbo.com _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
