Skip to content

Commit a99b01f

Browse files
committed
--fallback should be flat
1 parent b7e5eb3 commit a99b01f

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
@@ -2268,10 +2268,10 @@ void ResourceManager::initDefaultMaterials() {
22682268
fallbackMaterial.mutableAttribute<Mn::Color4>(
22692269
Mn::Trade::MaterialAttribute::SpecularColor) =
22702270
Mn::Color4{1.0f, 0.0f, 1.0f, 1.0f};
2271-
// Set expected user-defined attributes - specify Phong shader to use
2271+
// Set expected user-defined attributes - specify Flat shader to use since
2272+
// this indicates that the asset did not load a material for some reason.
22722273
fallbackMaterial = setMaterialDefaultUserAttributes(
2273-
fallbackMaterial, ObjectInstanceShaderType::Phong, false, false, -1,
2274-
true);
2274+
fallbackMaterial, ObjectInstanceShaderType::Flat, false, false, -1, true);
22752275
// Add to shaderManager as fallback material
22762276
shaderManager_.setFallback<Mn::Trade::MaterialData>(
22772277
std::move(fallbackMaterial));

0 commit comments

Comments
 (0)