Skip to content

Commit 1a31f92

Browse files
committed
--fallback should be flat
1 parent 377d0e0 commit 1a31f92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/esp/assets/ResourceManager.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -2265,10 +2265,10 @@ void ResourceManager::initDefaultMaterials() {
22652265
fallbackMaterial.mutableAttribute<Mn::Color4>(
22662266
Mn::Trade::MaterialAttribute::SpecularColor) =
22672267
Mn::Color4{1.0f, 0.0f, 1.0f, 1.0f};
2268-
// Set expected user-defined attributes - specify Phong shader to use
2268+
// Set expected user-defined attributes - specify Flat shader to use since
2269+
// this indicates that the asset did not load a material for some reason.
22692270
fallbackMaterial = setMaterialDefaultUserAttributes(
2270-
fallbackMaterial, ObjectInstanceShaderType::Phong, false, false, -1,
2271-
true);
2271+
fallbackMaterial, ObjectInstanceShaderType::Flat, false, false, -1, true);
22722272
// Add to shaderManager as fallback material
22732273
shaderManager_.setFallback<Mn::Trade::MaterialData>(
22742274
std::move(fallbackMaterial));

0 commit comments

Comments
 (0)