diff options
author | Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr> | 2018-07-31 16:22:25 +0200 |
---|---|---|
committer | Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr> | 2018-07-31 16:22:25 +0200 |
commit | 159ef14fb9e198bb0066ea14e6b980f065de63dd (patch) | |
tree | bc37c7d4ba09ee59deb708897fa0571709aec293 /silx/gui/plot3d/scene/primitives.py | |
parent | 270d5ddc31c26b62379e3caa9044dd75ccc71847 (diff) |
New upstream version 0.8.0+dfsg
Diffstat (limited to 'silx/gui/plot3d/scene/primitives.py')
-rw-r--r-- | silx/gui/plot3d/scene/primitives.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/silx/gui/plot3d/scene/primitives.py b/silx/gui/plot3d/scene/primitives.py index abf7dd4..af00b6d 100644 --- a/silx/gui/plot3d/scene/primitives.py +++ b/silx/gui/plot3d/scene/primitives.py @@ -27,7 +27,7 @@ from __future__ import absolute_import, division, unicode_literals __authors__ = ["T. Vincent"] __license__ = "MIT" -__date__ = "25/07/2016" +__date__ = "24/04/2018" import collections @@ -38,7 +38,7 @@ import string import numpy -from silx.gui.plot.Colors import rgba +from silx.gui.colors import rgba from ... import _glutils from ..._glutils import gl @@ -1246,12 +1246,12 @@ class _Points(Geometry): $clippingCall(vCameraPosition); float alpha = alphaSymbol(gl_PointCoord, vSize); - if (alpha == 0.0) { - discard; - } gl_FragColor = $valueToColorCall(vValue); gl_FragColor.a *= alpha; + if (gl_FragColor.a == 0.0) { + discard; + } } """)) |