+ | Texture working on sphere

This commit is contained in:
TheRedShip
2025-01-26 22:42:37 +01:00
parent 07fd5870bf
commit d93a7342a1
7 changed files with 8061 additions and 13 deletions

View File

@ -114,7 +114,10 @@ void Scene::addObject(Object *obj)
gpu_triangle.normal = triangle->getNormal();
_gpu_triangles.push_back(gpu_triangle);
return ;
gpu_obj.vertex1 = triangle->getVertex2();
gpu_obj.vertex2 = triangle->getVertex3();
gpu_obj.normal = triangle->getNormal();
}
else if (obj->getType() == Object::Type::PORTAL)
{