mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 10:48:34 +02:00
+ | Backface culling choosing on quad so euclidian map + portal
This commit is contained in:
@ -91,6 +91,8 @@ void Scene::addObject(Object *obj)
|
||||
auto quad = static_cast<Quad *>(obj);
|
||||
gpu_obj.vertex1 = quad->getUp();
|
||||
gpu_obj.vertex2 = quad->getRight();
|
||||
gpu_obj.normal = quad->getNormal();
|
||||
gpu_obj.radius = quad->getSingleSided();
|
||||
}
|
||||
else if (obj->getType() == Object::Type::CUBE)
|
||||
{
|
||||
|
@ -132,7 +132,7 @@ void SceneParser::parseObj(std::stringstream &line)
|
||||
void SceneParser::parseTexture(std::stringstream &line)
|
||||
{
|
||||
std::string path;
|
||||
|
||||
|
||||
if (!(line >> path))
|
||||
throw std::runtime_error("Texture: Missing texture's path");
|
||||
|
||||
|
Reference in New Issue
Block a user