mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
+ | Offset bvh in the parsing
This commit is contained in:
@ -240,7 +240,7 @@ void ObjParser::parseMtl(std::stringstream &input_line, Scene &scene)
|
||||
file.close();
|
||||
}
|
||||
|
||||
void ObjParser::parse(Scene &scene)
|
||||
void ObjParser::parse(Scene &scene, glm::vec3 offset)
|
||||
{
|
||||
std::string line;
|
||||
std::string identifier;
|
||||
@ -275,6 +275,6 @@ void ObjParser::parse(Scene &scene)
|
||||
}
|
||||
}
|
||||
|
||||
scene.addBvh(_triangles);
|
||||
scene.addBvh(_triangles, offset);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user