~ | minor change

This commit is contained in:
TheRedShip
2025-01-31 17:18:17 +01:00
parent 49bc86433f
commit 2ea01daf4b
5 changed files with 48 additions and 15 deletions

View File

@ -284,9 +284,7 @@ void ObjParser::parseMtl(std::stringstream &input_line, Scene &scene)
float x, y, z;
if(!(lineStream >> x >> y >> z))
throw std::runtime_error("OBJ: syntax error while getting material emission");
mat->emission = (x + y + z);
// if (mat->emission > 0.0)
// mat->color = glm::vec3(x, y, z);
mat->emission = (x + y + z) / 3;
}
else if(identifier == "Ni")
{