我想将图像添加到我的Sphere。我查找了加载图像的许多版本,但似乎我的版本应该正确。注释掉map: new THREE.TextureLoader().load('earth.jpg'),
后,该球体是可见的,但是当尝试加载图像时,它会消失。
this.sphere = new THREE.Mesh(
new THREE.SphereGeometry(this.radius, this.segments, this.segments),
new THREE.MeshBasicMaterial({
map: new THREE.TextureLoader().load('earth.jpg'),
side: THREE.BackSide
}))