mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-28 23:09:32 -05:00
Rendering outlines on points
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user