+ | Cube intersection but problem with quads

This commit is contained in:
TheRedShip
2025-01-07 00:16:47 +01:00
parent a06e1f80a8
commit 56d3a1394b
9 changed files with 204 additions and 11 deletions

View File

@ -37,6 +37,12 @@ SceneParser::SceneParser(Scene *scene) : _scene(scene)
try { return (new Triangle(ss)); }
catch (const std::exception &e) { throw; }
};
object_parsers["cu"] = [](std::stringstream &ss) -> Object *
{
try { return (new Cube(ss)); }
catch (const std::exception &e) { throw; }
};
}
void SceneParser::parseMaterial(std::stringstream &line)