mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-22 11:18:22 -05:00
Add bounding spheres to a bunch of renderable types (#1957)
* RenderabeDUMeshes (And reimplement reading of vertex info from speck, to make it easier to compute sphere. The plan is to phase out this renderable anyways) * RenderablePoints * Grids: RenderableGrid, RenderableBoxGrid, RenderableRadialGrid & RenderableSphericalGrid * RenderableGalaxy
This commit is contained in:
@@ -243,6 +243,8 @@ void RenderableGrid::update(const UpdateData&) {
|
||||
_varray[nr++] = { halfSize.x, y1, 0.f };
|
||||
}
|
||||
|
||||
setBoundingSphere(static_cast<double>(glm::length(halfSize)));
|
||||
|
||||
glBindVertexArray(_vaoID);
|
||||
glBindBuffer(GL_ARRAY_BUFFER, _vBufferID);
|
||||
glBufferData(
|
||||
|
||||
Reference in New Issue
Block a user