From Marco Jez, added Image/ path to image files to help find them from the OpenSceneGraph-Data directory.
This commit is contained in:
parent
682b867e4f
commit
7e858b15f1
@ -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
|
||||
|
@ -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("");
|
||||
|
Loading…
Reference in New Issue
Block a user