~ | Better portals

This commit is contained in:
TheRedShip
2025-01-07 17:02:19 +01:00
parent 3515810c8b
commit 9df8b78d6d
7 changed files with 46 additions and 8 deletions

View File

@ -111,6 +111,8 @@ void Scene::updateGPUData()
auto portal = static_cast<const Portal *>(obj);
gpu_obj.vertex1 = portal->getEdge1();
gpu_obj.vertex2 = portal->getEdge2();
gpu_obj.normal = portal->getNormal();
gpu_obj.transform = glm::mat4(portal->getTransform());
gpu_obj.radius = portal->getLinkedPortalIndex();
}