点光源帮助器起名字。

This commit is contained in:
liteng 2018-09-19 21:48:01 +08:00
parent 8e6d6902da
commit e475b6be13

View File

@ -8,6 +8,7 @@ function PointLight(color, intensity, distance, decay) {
var material = new THREE.MeshBasicMaterial({ color: color });
var mesh = new THREE.Mesh(geometry, material);
mesh.name = '小球';
mesh.userData.type = 'helper';
this.add(mesh);