@@ -30,7 +30,7 @@ function Line( geometry, material, mode ) {
this.type = 'Line';
this.geometry = geometry !== undefined ? geometry : new BufferGeometry();
- this.material = material !== undefined ? material : new LineBasicMaterial( { color: Math.random() * 0xffffff } );
+ this.material = material !== undefined ? material : new LineBasicMaterial();
}
@@ -47,7 +47,7 @@ function Mesh( geometry, material ) {
this.type = 'Mesh';
- this.material = material !== undefined ? material : new MeshBasicMaterial( { color: Math.random() * 0xffffff } );
+ this.material = material !== undefined ? material : new MeshBasicMaterial();
this.updateMorphTargets();
@@ -22,7 +22,7 @@ function Points( geometry, material ) {
this.type = 'Points';
- this.material = material !== undefined ? material : new PointsMaterial( { color: Math.random() * 0xffffff } );
+ this.material = material !== undefined ? material : new PointsMaterial();