From b52311fd906e94ba09ab35aa73ba6c0e9e65286b Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Tue, 18 Apr 2023 18:12:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/view/park/center.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/view/park/center.vue b/src/view/park/center.vue index 3da2cbb..2c9d3ce 100644 --- a/src/view/park/center.vue +++ b/src/view/park/center.vue @@ -206,7 +206,7 @@ import {SVGToBase64} from 'black-knight/lib/config/tools' var mesh=new THREE.Mesh(geometry,material) mesh.renderOrder=1 mesh.position.set(115*(-101.863986+v.lan),1.2,115*(-25.776215+v.lng)) - mesh.rotation.x=-Math.PI/8 + mesh.rotation.x=-Math.PI/6 //地名 labelName.value=v.name; await new Promise(result=>{ @@ -244,7 +244,17 @@ import {SVGToBase64} from 'black-knight/lib/config/tools' scene.add(bgMesh) } function addBG2(){ - + var bgGeometry=new THREE.PlaneGeometry(316/9.1,599/9.1) + var bgMaterial=new THREE.MeshBasicMaterial({ + transparent:true, + depthWrite:false, + side:THREE.DoubleSide, + map:new THREE.TextureLoader().load(require('@/assets/img/park-map-bg2.png')) + }) + var bgMesh=new THREE.Mesh(bgGeometry,bgMaterial) + bgMesh.position.set(-0.4,0.2,7.1) + bgMesh.rotation.x=-Math.PI/2 + scene.add(bgMesh) } function render(){ renderer.render(scene, camera);