mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 10:48:34 +02:00
~ | Fixing emissive texture
This commit is contained in:
@ -333,6 +333,7 @@ void ObjParser::parseMtl(std::stringstream &input_line, Scene &scene)
|
||||
throw std::runtime_error("OBJ: syntax error while getting material texture");
|
||||
|
||||
mat->emission_texture_index = scene.getEmissionTextures().size();
|
||||
std::cout << "path " << mat->emission_texture_index << " : " << getFilePath(_filename) + path << std::endl;
|
||||
scene.addEmissionTexture(getFilePath(_filename) + path);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user