mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 10:48:34 +02:00
~ | minor change
This commit is contained in:
@ -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")
|
||||
{
|
||||
|
Reference in New Issue
Block a user