| 35 | } |
| 36 | |
| 37 | Expected<file::Path> locateFile(const std::string& filename) |
| 38 | { |
| 39 | auto resolvedFilename = osgDB::Registry::instance()->findDataFile(filename, nullptr, osgDB::CASE_SENSITIVE); |
| 40 | if (resolvedFilename.empty()) |
| 41 | { |
| 42 | return UnexpectedMessage{ "Could not locate file: " + filename }; |
| 43 | } |
| 44 | return resolvedFilename; |
| 45 | }; |
| 46 | |
| 47 | static std::vector<std::string> transparentMaterialNames() { return { "transparentExt", "transparent" }; } //@deprecated. Set osg::Material diffuse alpha < 1 instead to treat geometry as transparent. |
| 48 | |