diff --git a/demos/heatmap.html b/demos/heatmap.html index 62a929564f..b1be148909 100644 --- a/demos/heatmap.html +++ b/demos/heatmap.html @@ -43,6 +43,14 @@ scene.on('loaded', () => { } }) .render(); + /*scene.PointLayer({ + zIndex: 2 + }) + .source(data) + .shape('2d:circle') + .size(2) // weight映射通道 + .color('red') + .render();*/ }); }); diff --git a/src/core/engine/renderpass.js b/src/core/engine/renderpass.js index b39cb5de07..f6d3f0c0df 100644 --- a/src/core/engine/renderpass.js +++ b/src/core/engine/renderpass.js @@ -36,8 +36,10 @@ export default class RenderPass { } render() { + this.renderer.setClearColor(this.clearColor, this.clearAlpha); this.renderer.render(this.scene, this.camera, this.pass, true); + this.renderer.setRenderTarget(null); this.renderer.setClearColor(this.originClearColor, this.originClearAlpha); } } diff --git a/src/layer/heatmapLayer.js b/src/layer/heatmapLayer.js index 0a6931bfb2..4b4cc6e82b 100644 --- a/src/layer/heatmapLayer.js +++ b/src/layer/heatmapLayer.js @@ -58,7 +58,7 @@ export default class HeatMapLayer extends Layer { afterRender() { if (this.shapeType !== 'grid' && this.shapeType !== 'hexagon') { - updateIntensityPass(this); + // updateIntensityPass(this); } }