Skip to content

Commit

Permalink
--fallback should be flat
Browse files Browse the repository at this point in the history
  • Loading branch information
jturner65 committed Nov 11, 2024
1 parent 543554b commit af3c243
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/esp/assets/ResourceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2261,10 +2261,10 @@ void ResourceManager::initDefaultMaterials() {
fallbackMaterial.mutableAttribute<Mn::Color4>(
Mn::Trade::MaterialAttribute::SpecularColor) =
Mn::Color4{1.0f, 0.0f, 1.0f, 1.0f};
// Set expected user-defined attributes - specify Phong shader to use
// Set expected user-defined attributes - specify Flat shader to use since
// this indicates that the asset did not load a material for some reason.
fallbackMaterial = setMaterialDefaultUserAttributes(
fallbackMaterial, ObjectInstanceShaderType::Phong, false, false, -1,
true);
fallbackMaterial, ObjectInstanceShaderType::Flat, false, false, -1, true);
// Add to shaderManager as fallback material
shaderManager_.setFallback<Mn::Trade::MaterialData>(
std::move(fallbackMaterial));
Expand Down

0 comments on commit af3c243

Please sign in to comment.