From 1c9ec60b129f28258c355231bafc4dcbdd795354 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Mon, 6 Mar 2017 12:27:12 -0500 Subject: [PATCH] Add opinionated alpha default --- scatter.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scatter.js b/scatter.js index 28dafe3..0dc083f 100644 --- a/scatter.js +++ b/scatter.js @@ -202,6 +202,9 @@ var proto = GLScatterFancy.prototype if (pick) return offset + pointCount else { if (!blend) gl.disable(gl.BLEND) + else { + gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA) + } } } })()