From 1d4e27d674c7680dd802fd40896b0d9d0f4d3580 Mon Sep 17 00:00:00 2001 From: "mipha.ly" Date: Fri, 1 Mar 2019 11:15:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4three=E4=B8=8D=E5=BF=85?= =?UTF-8?q?=E8=A6=81=E7=9A=84=E6=A8=A1=E5=9D=97basic=20material?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/layer.js | 4 ++-- src/core/three.js | 1 - src/layer/render/heatmap/heatmap.js | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/core/layer.js b/src/core/layer.js index dc0afbd99e..e416d1c1ba 100644 --- a/src/core/layer.js +++ b/src/core/layer.js @@ -84,8 +84,8 @@ export default class Layer extends Base { object.onBeforeRender = () => { const zoom = this.scene.getZoom(); - object.material.setUniformsValue('u_time', this.scene._engine.clock.getElapsedTime()); - object.material.setUniformsValue('u_zoom', zoom); + // object.material.setUniformsValue('u_time', this.scene._engine.clock.getElapsedTime()); + // object.material.setUniformsValue('u_zoom', zoom); this._preRender(); }; diff --git a/src/core/three.js b/src/core/three.js index 08674d38d3..1c2ca4bc80 100644 --- a/src/core/three.js +++ b/src/core/three.js @@ -23,7 +23,6 @@ export { Vector4 } from 'three/src/math/Vector4.js'; export { Vector3 } from 'three/src/math/Vector3.js'; export { Vector2 } from 'three/src/math/Vector2.js'; export { ShaderMaterial } from 'three/src/materials/ShaderMaterial.js'; -export { MeshBasicMaterial } from 'three/src/materials/MeshBasicMaterial.js'; export { DataTexture } from 'three/src/textures/DataTexture.js'; export { Color } from 'three/src/math/Color.js'; export { diff --git a/src/layer/render/heatmap/heatmap.js b/src/layer/render/heatmap/heatmap.js index 3386cbbd5e..07b7bb4cd4 100644 --- a/src/layer/render/heatmap/heatmap.js +++ b/src/layer/render/heatmap/heatmap.js @@ -72,7 +72,7 @@ function createIntensityPass(layer, bbox) { requestAnimationFrame(render); const zoom = scene.getZoom(); mesh.material.uniforms.u_zoom.value = zoom; - const passWidth = Math.min(10000, Math.pow(zoom, 2.0) * 200); + const passWidth = Math.min(10000, Math.pow(zoom, 2.0) * 300); const passHeight = passWidth * (bbox.height / bbox.width); renderpass.pass.setSize(passWidth, passHeight); renderpass.render();