Skip to content

Commit 60870c3

Browse files
committed
--fallback should be flat
1 parent a3ee7fa commit 60870c3

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
@@ -2263,10 +2263,10 @@ void ResourceManager::initDefaultMaterials() {
22632263
fallbackMaterial.mutableAttribute<Mn::Color4>(
22642264
Mn::Trade::MaterialAttribute::SpecularColor) =
22652265
Mn::Color4{1.0f, 0.0f, 1.0f, 1.0f};
2266-
// Set expected user-defined attributes - specify Phong shader to use
2266+
// Set expected user-defined attributes - specify Flat shader to use since
2267+
// this indicates that the asset did not load a material for some reason.
22672268
fallbackMaterial = setMaterialDefaultUserAttributes(
2268-
fallbackMaterial, ObjectInstanceShaderType::Phong, false, false, -1,
2269-
true);
2269+
fallbackMaterial, ObjectInstanceShaderType::Flat, false, false, -1, true);
22702270
// Add to shaderManager as fallback material
22712271
shaderManager_.setFallback<Mn::Trade::MaterialData>(
22722272
std::move(fallbackMaterial));

0 commit comments

Comments
 (0)