mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-22 12:59:07 -06:00
Add boundingSphere for RenderablePrism
This commit is contained in:
@@ -329,7 +329,7 @@ void RenderablePrism::render(const RenderData& data, RendererTasks&) {
|
||||
_shader->deactivate();
|
||||
}
|
||||
|
||||
void RenderablePrism::update(const UpdateData&) {
|
||||
void RenderablePrism::update(const UpdateData& data) {
|
||||
if (_shader->isDirty()) {
|
||||
_shader->rebuildFromFile();
|
||||
ghoul::opengl::updateUniformLocations(*_shader, _uniformCache, UniformNames);
|
||||
@@ -337,6 +337,7 @@ void RenderablePrism::update(const UpdateData&) {
|
||||
if (_prismIsDirty) {
|
||||
updateVertexData();
|
||||
updateBufferData();
|
||||
setBoundingSphere(_length * glm::compMax(data.modelTransform.scale));
|
||||
_prismIsDirty = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user