Fix issue with constellation labels and selection, closes #2382

This commit is contained in:
Malin E
2023-03-14 15:46:00 +01:00
parent 5fec405b70
commit 148f010a9a
4 changed files with 24 additions and 4 deletions
+4
View File
@@ -237,6 +237,10 @@ void LabelsComponent::render(const RenderData& data,
glm::vec4 textColor = glm::vec4(glm::vec3(_color), _opacity * fadeInVariable);
for (const speck::Labelset::Entry& e : _labelset.entries) {
if (!e.isEnabled) {
continue;
}
glm::vec3 scaledPos(e.position);
scaledPos *= scale;
ghoul::fontrendering::FontRenderer::defaultProjectionRenderer().render(