From ee332d0762881497fd01be4b827f74ac5895d076 Mon Sep 17 00:00:00 2001 From: Francisco Dans Date: Wed, 29 Apr 2015 16:24:30 +0200 Subject: [PATCH] doesn't colorize is alpha is 0 or less --- lib/torque/renderer/ball.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/torque/renderer/ball.js b/lib/torque/renderer/ball.js index 817be75..69134f9 100644 --- a/lib/torque/renderer/ball.js +++ b/lib/torque/renderer/ball.js @@ -275,7 +275,7 @@ BallRenderer.prototype = { for (var i = 0, len = this.pointLayer.length; i< len; i+=4){ alpha = this.pointLayer[i+3] * 4; // get gradient color from opacity value - if (alpha) { + if (alpha>0) { this.heatmapLayer[i] = grad[alpha]; // R this.heatmapLayer[i + 1] = grad[alpha + 1]; // G this.heatmapLayer[i + 2] = grad[alpha + 2]; // B