diff --git a/modules/softwareintegration/rendering/renderablepointscloud.cpp b/modules/softwareintegration/rendering/renderablepointscloud.cpp index b66c242128..cf0e0b4ef0 100644 --- a/modules/softwareintegration/rendering/renderablepointscloud.cpp +++ b/modules/softwareintegration/rendering/renderablepointscloud.cpp @@ -162,7 +162,6 @@ namespace openspace { glBlendEquation(GL_FUNC_ADD); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnable(GL_PROGRAM_POINT_SIZE); // Enable gl_PointSize in vertex - glEnable(GL_POINT_SMOOTH); glBindVertexArray(_vaoID); glDrawArrays(GL_POINTS, 0, static_cast(_varray.size())); diff --git a/modules/softwareintegration/shaders/point_fs.glsl b/modules/softwareintegration/shaders/point_fs.glsl index a1f6ae8e19..3ba74d89e9 100644 --- a/modules/softwareintegration/shaders/point_fs.glsl +++ b/modules/softwareintegration/shaders/point_fs.glsl @@ -37,6 +37,10 @@ Fragment getFragment() { frag.depth = vs_depthClipSpace; frag.gPosition = vs_positionViewSpace; + vec2 temp = gl_PointCoord - vec2(0.5); + float f = dot(temp, temp); + if (f>0.25) discard; + // There is no normal here frag.gNormal = vec4(0.0, 0.0, -1.0, 1.0);