From f5454262f74111c5eeac77a2e1fd1dfda65fa0cf Mon Sep 17 00:00:00 2001 From: John Turner <7strbass@gmail.com> Date: Wed, 29 Nov 2023 09:29:35 -0500 Subject: [PATCH] --fallback should be flat --- src/esp/assets/ResourceManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/esp/assets/ResourceManager.cpp b/src/esp/assets/ResourceManager.cpp index b251df5e63..da7634cda1 100644 --- a/src/esp/assets/ResourceManager.cpp +++ b/src/esp/assets/ResourceManager.cpp @@ -2265,10 +2265,10 @@ void ResourceManager::initDefaultMaterials() { fallbackMaterial.mutableAttribute( 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( std::move(fallbackMaterial));