Show
Ignore:
Timestamp:
07/16/08 00:30:51 (6 years ago)
Author:
robert
Message:

From Jeremy Moles, Updated file references to reflect new data in OpenSceneGraph-Data

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgwidgetshader/osgwidgetshader.cpp

    r8600 r8602  
    22// $Id: osgwidgetshader.cpp 28 2008-03-26 15:26:48Z cubicool $ 
    33 
     4#include <osgDB/FileUtils> 
    45#include <osgWidget/Util> 
    56#include <osgWidget/WindowManager> 
     
    6162    program->addShader(osg::Shader::readShaderFile( 
    6263        osg::Shader::VERTEX, 
    63         "osgWidget/osgwidgetshader-vert.glsl" 
     64        osgDB::findDataFile("osgWidget/osgwidgetshader-vert.glsl") 
    6465    )); 
    6566     
    6667    program->addShader(osg::Shader::readShaderFile( 
    6768        osg::Shader::FRAGMENT, 
    68         "osgWidget/osgwidgetshader-frag.glsl" 
     69        osgDB::findDataFile("osgWidget/osgwidgetshader-frag.glsl") 
    6970    )); 
    7071