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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user