Browse Source

cl2 基于设备状态和任务状态分步生成设备任务消息

master
yuliang 5 months ago
parent
commit
048989576d
  1. 17
      src/core/engine/SceneHelp.ts

17
src/core/engine/SceneHelp.ts

@ -81,14 +81,15 @@ export default class SceneHelp {
this.scene.add(hemisphereLight) this.scene.add(hemisphereLight)
// 完全不透明的地板 // 完全不透明的地板
// const geometry = new THREE.PlaneGeometry(gridOption.gridSize, gridOption.gridSize) const geometry = new THREE.PlaneGeometry(gridOption.gridSize, gridOption.gridSize)
// const material = new THREE.MeshBasicMaterial({ const material = new THREE.MeshBasicMaterial({
// color: '#ffffff', color: '#ffffff',
// side: THREE.BackSide side: THREE.BackSide
// }) })
// const ground = new THREE.Mesh(geometry, material) const ground = new THREE.Mesh(geometry, material)
// ground.rotation.x = -Math.PI / 2 ground.rotation.x = Math.PI / 2
// this.scene.add(ground) ground.position.y = -0.01
this.scene.add(ground)
// const directionalLight = new THREE.DirectionalLight(0xffffff, 1.5) // const directionalLight = new THREE.DirectionalLight(0xffffff, 1.5)
// directionalLight.position.set(5, 5, 5).multiplyScalar(3) // directionalLight.position.set(5, 5, 5).multiplyScalar(3)

Loading…
Cancel
Save