Rendering outlines on points

This commit is contained in:
Christian Adamsson
2020-06-30 15:23:30 +02:00
parent 79c64c850d
commit a99aebc295
2 changed files with 15 additions and 2 deletions
@@ -1077,7 +1077,8 @@ namespace openspace {
_lineCount.data(),
static_cast<GLsizei>(_lineStart.size())
);*/
_shaderProgram->setUniform("firstrender", true);
GLint temp = 0;
glDrawArrays(
GL_POINTS,
@@ -1085,6 +1086,13 @@ namespace openspace {
static_cast<GLsizei>(_vertexPositions.size())
);
_shaderProgram->setUniform("firstrender", false);
glDrawArrays(
GL_POINTS,
temp,
static_cast<GLsizei>(_vertexPositions.size())
);
glBindVertexArray(0);
_shaderProgram->deactivate();
}