|
|
@ -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)
|
|
|
|