Skip to content

Commit 5a592c3

Browse files
committed
--fallback should be flat
1 parent cc52ebb commit 5a592c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/esp/assets/ResourceManager.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2269,10 +2269,10 @@ void ResourceManager::initDefaultMaterials() {
22692269
fallbackMaterial.mutableAttribute<Mn::Color4>(
22702270
Mn::Trade::MaterialAttribute::SpecularColor) =
22712271
Mn::Color4{1.0f, 0.0f, 1.0f, 1.0f};
2272-
// Set expected user-defined attributes - specify Phong shader to use
2272+
// Set expected user-defined attributes - specify Flat shader to use since
2273+
// this indicates that the asset did not load a material for some reason.
22732274
fallbackMaterial = setMaterialDefaultUserAttributes(
2274-
fallbackMaterial, ObjectInstanceShaderType::Phong, false, false, -1,
2275-
true);
2275+
fallbackMaterial, ObjectInstanceShaderType::Flat, false, false, -1, true);
22762276
// Add to shaderManager as fallback material
22772277
shaderManager_.setFallback<Mn::Trade::MaterialData>(
22782278
std::move(fallbackMaterial));

0 commit comments

Comments
 (0)