How to add outline on child mesh in three js
问题 I'd like to add outline to meshes. I followed the example which created a new mesh using the same geometry, and scaled the mesh. var outlineMaterial = new THREE.MeshBasicMaterial({color: 0x00ffff, side: THREE.BackSide}); this.outlineMesh = new THREE.Mesh(target.geometry, outlineMaterial); this.outlineMesh.quaternion = target.quaternion; this.outlineMesh.position = target.position; this.outlineMesh.scale.copy(target.scale); this.outlineMesh.scale.multiplyScalar(1.05); this.scene.add(this