From 0bb73156816c64396eae4772de354564e9a9da0e Mon Sep 17 00:00:00 2001 From: TheRedShip Date: Sat, 1 Feb 2025 20:35:22 +0100 Subject: [PATCH] ~ | Small obj color fix --- srcs/class/ObjParser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/srcs/class/ObjParser.cpp b/srcs/class/ObjParser.cpp index d1165df..f790e85 100644 --- a/srcs/class/ObjParser.cpp +++ b/srcs/class/ObjParser.cpp @@ -252,6 +252,7 @@ void ObjParser::parseMtl(std::stringstream &input_line, Scene &scene) mat->refraction = 1.0f; mat->roughness = 1.0f; mat->metallic = 1.0f; + mat->color = glm::vec3(1.0f, 1.0f, 1.0f); continue; } if(!mat)