1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-04-10 14:36:43 +00:00

Use nv_default shader prefix for unhandled types

This commit is contained in:
elsid 2022-09-17 17:35:25 +02:00
parent 553fa8cc58
commit 63b51ead84
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625

View file

@ -1884,10 +1884,10 @@ namespace NifOsg
case Nif::BSShaderType::ShaderType_Lighting30:
case Nif::BSShaderType::ShaderType_Tile:
Log(Debug::Warning) << "Unhandled BSShaderType " << type << " in " << mFilename;
return std::string_view();
return "nv_default";
}
Log(Debug::Warning) << "Unknown BSShaderType " << type << " in " << mFilename;
return std::string_view();
return "nv_default";
}
std::string_view getBSLightingShaderPrefix(unsigned int type) const
@ -1916,10 +1916,10 @@ namespace NifOsg
case Nif::BSLightingShaderType::ShaderType_MultitexLandLODBlend:
case Nif::BSLightingShaderType::ShaderType_Dismemberment:
Log(Debug::Warning) << "Unhandled BSLightingShaderType " << type << " in " << mFilename;
return std::string_view();
return "nv_default";
}
Log(Debug::Warning) << "Unknown BSLightingShaderType " << type << " in " << mFilename;
return std::string_view();
return "nv_default";
}
void handleProperty(const Nif::Property *property,