Skip to content

Commit

Permalink
Fixed #6580, blending in boost caused barely visible markers in scatt…
Browse files Browse the repository at this point in the history
…er charts.
  • Loading branch information
TorsteinHonsi committed Apr 18, 2017
1 parent 87058ee commit 865783e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions js/modules/boost.src.js
Expand Up @@ -1037,7 +1037,7 @@ function GLRenderer(postRenderCallback) {
/*
* Clear the depth and color buffer
*/
function clear() {
function clear() {
gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);
}

Expand Down Expand Up @@ -1660,8 +1660,9 @@ function GLRenderer(postRenderCallback) {
gl.blendEquation(gl.FUNC_MIN);

} else {
gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA);//, gl.ONE, gl.ZERO);
gl.blendEquation(gl.FUNC_ADD);
//gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA);//, gl.ONE, gl.ZERO);
//gl.blendEquation(gl.FUNC_ADD);
gl.blendFuncSeparate(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA, gl.ONE, gl.ONE_MINUS_SRC_ALPHA);
}

shader.reset();
Expand Down Expand Up @@ -1819,7 +1820,7 @@ function GLRenderer(postRenderCallback) {
circleTexture.width = 512;
circleTexture.height = 512;

circleCtx.fillStyle = '#FFF';
circleCtx.fillStyle = '#FFF';
circleCtx.beginPath();
circleCtx.arc(256, 256, 256, 0, 2 * Math.PI);
circleCtx.fill();
Expand Down

0 comments on commit 865783e

Please sign in to comment.