我在three js场景中添加了一个球形object3D。但是当我放大或缩小时,它的大小会发生变化。当我缩小时,它会变小,当我放大时,它会变大。我希望它的行为像地图上的标记一样。当我们缩放时,对象的大小不应该改变。我正在使用以下代码创建球体:
let sphereGeometry = new SphereGeometry(0.4, 10, 10);
let sphereMaterial = new MeshLambertMaterial({
//shading: THREE.SmoothShading,
color: 'red',
depthTest: false,
depthWrite: false
}
let sphere = new Mesh(sphereGeometry, sphereMaterial );
sphere.position.copy(SomeVector3Object);
sphere.material.color = new Color("#ffffff");
sphere.visible = true
scene.add(sphere);