From 92ac4da5eb0a9ad9bcf922e064a03da0aefb862c 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 ab2611e20d..9a8db23873 100644 --- a/src/esp/assets/ResourceManager.cpp +++ b/src/esp/assets/ResourceManager.cpp @@ -2311,10 +2311,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));