修复:复合实体矩形灯拷贝错误

pull/3021/MERGE
ChenX 1 month ago
parent 5a68034cc9
commit 5f6ad34c26

@ -69,6 +69,13 @@ export class RectAreaLightHelper extends Line
this.add(new Mesh(geometry2, new MeshBasicMaterial({ side: BackSide, fog: false, transparent: true, opacity: 0.8 }))); this.add(new Mesh(geometry2, new MeshBasicMaterial({ side: BackSide, fog: false, transparent: true, opacity: 0.8 })));
} }
copy(source: this, recursive?: boolean): this
{
this.light = source.light.clone();
this.color = source.color.clone();
return super.copy(source, recursive);
}
updateMatrixWorld() updateMatrixWorld()
{ {
this.scale.set(0.5 * this.light.width, 0.5 * this.light.height, 1); this.scale.set(0.5 * this.light.width, 0.5 * this.light.height, 1);

Loading…
Cancel
Save