From Marco Jez, added Image/ path to image files to help find them from the OpenSceneGraph-Data directory.

This commit is contained in:
Robert Osfield 2005-11-02 14:24:29 +00:00
parent 682b867e4f
commit 7e858b15f1
2 changed files with 2 additions and 2 deletions

View File

@ -468,7 +468,7 @@ int main(int argc, char** argv)
if (withBaseTexture)
{
shadowed_scene->getOrCreateStateSet()->setTextureAttributeAndModes( 0, new osg::Texture2D(osgDB::readImageFile("lz.rgb")), osg::StateAttribute::ON);
shadowed_scene->getOrCreateStateSet()->setTextureAttributeAndModes( 0, new osg::Texture2D(osgDB::readImageFile("Images/lz.rgb")), osg::StateAttribute::ON);
shadowedScene = createShadowedScene(shadowed_scene.get(),light_transform.get(),1);
}
else

View File

@ -249,7 +249,7 @@ int main(int argc, char *argv[])
std::string shader("simple");
while(arguments.read("-s",shader)) {}
std::string textureFileName("lz.rgb");
std::string textureFileName("Images/lz.rgb");
while(arguments.read("-t",textureFileName)) {}
std::string terrainFileName("");