Fixed opacity issue

This commit is contained in:
aniisaaden
2020-10-22 17:38:34 +02:00
parent d632ea48a5
commit 7b1ae50918
2 changed files with 4 additions and 1 deletions

View File

@@ -251,6 +251,7 @@ namespace openspace {
// Changes GL state:
glEnablei(GL_BLEND, 0);
glDepthMask(false);
glBlendEquation(GL_FUNC_ADD);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_PROGRAM_POINT_SIZE); // Enable gl_PointSize in vertex
@@ -264,6 +265,7 @@ namespace openspace {
// Restores GL State
global::renderEngine.openglStateCache().resetBlendState();
global::renderEngine.openglStateCache().resetDepthState();
}
}