Three.Legacy.js 45.5 KB
Newer Older
M
Mr.doob 已提交
1 2 3 4
/**
 * @author mrdoob / http://mrdoob.com/
 */

5 6 7
import { Audio } from './audio/Audio.js';
import { AudioAnalyser } from './audio/AudioAnalyser.js';
import { PerspectiveCamera } from './cameras/PerspectiveCamera.js';
M
Mugen87 已提交
8
import { FlatShading } from './constants.js';
9 10 11 12 13 14 15 16 17 18 19 20
import {
	Float64BufferAttribute,
	Float32BufferAttribute,
	Uint32BufferAttribute,
	Int32BufferAttribute,
	Uint16BufferAttribute,
	Int16BufferAttribute,
	Uint8ClampedBufferAttribute,
	Uint8BufferAttribute,
	Int8BufferAttribute,
	BufferAttribute
} from './core/BufferAttribute.js';
21 22
import { BufferGeometry } from './core/BufferGeometry.js';
import { Face3 } from './core/Face3.js';
23
import { Geometry } from './core/Geometry.js';
24
import { Object3D } from './core/Object3D.js';
25
import { Uniform } from './core/Uniform.js';
26
import { Curve } from './extras/core/Curve.js';
M
Mugen87 已提交
27
import { CurvePath } from './extras/core/CurvePath.js';
M
Mugen87 已提交
28
import { Path } from './extras/core/Path.js';
L
looeee 已提交
29
import { CatmullRomCurve3 } from './extras/curves/CatmullRomCurve3.js';
W
WestLangley 已提交
30
import { AxesHelper } from './helpers/AxesHelper.js';
31
import { BoxHelper } from './helpers/BoxHelper.js';
M
Mr.doob 已提交
32
import { GridHelper } from './helpers/GridHelper.js';
33
import { SkeletonHelper } from './helpers/SkeletonHelper.js';
34
import { BoxGeometry } from './geometries/BoxGeometry.js';
35
import { EdgesGeometry } from './geometries/EdgesGeometry.js';
36
import { ExtrudeGeometry } from './geometries/ExtrudeGeometry.js';
M
Mugen87 已提交
37
import { ExtrudeBufferGeometry } from './geometries/ExtrudeGeometry.js';
38
import { ShapeGeometry } from './geometries/ShapeGeometry.js';
39
import { WireframeGeometry } from './geometries/WireframeGeometry.js';
40
import { Light } from './lights/Light.js';
41 42
import { Loader } from './loaders/Loader.js';
import { LoaderUtils } from './loaders/LoaderUtils.js';
M
Mr.doob 已提交
43
import { FileLoader } from './loaders/FileLoader.js';
44 45
import { AudioLoader } from './loaders/AudioLoader.js';
import { CubeTextureLoader } from './loaders/CubeTextureLoader.js';
L
Lewy Blue 已提交
46
import { DataTextureLoader } from './loaders/DataTextureLoader.js';
47 48
import { TextureLoader } from './loaders/TextureLoader.js';
import { Material } from './materials/Material.js';
49
import { LineBasicMaterial } from './materials/LineBasicMaterial.js';
50 51 52 53 54 55
import { MeshPhongMaterial } from './materials/MeshPhongMaterial.js';
import { PointsMaterial } from './materials/PointsMaterial.js';
import { ShaderMaterial } from './materials/ShaderMaterial.js';
import { Box2 } from './math/Box2.js';
import { Box3 } from './math/Box3.js';
import { Color } from './math/Color.js';
56
import { Line3 } from './math/Line3.js';
L
looeee 已提交
57
import { _Math } from './math/Math.js';
58 59 60 61 62
import { Matrix3 } from './math/Matrix3.js';
import { Matrix4 } from './math/Matrix4.js';
import { Plane } from './math/Plane.js';
import { Quaternion } from './math/Quaternion.js';
import { Ray } from './math/Ray.js';
M
Mugen87 已提交
63
import { Triangle } from './math/Triangle.js';
64
import { Vector2 } from './math/Vector2.js';
65
import { Vector3 } from './math/Vector3.js';
66
import { Vector4 } from './math/Vector4.js';
67
import { LineSegments } from './objects/LineSegments.js';
68 69 70
import { LOD } from './objects/LOD.js';
import { Points } from './objects/Points.js';
import { Sprite } from './objects/Sprite.js';
71
import { Skeleton } from './objects/Skeleton.js';
72 73 74
import { WebGLRenderer } from './renderers/WebGLRenderer.js';
import { WebGLRenderTarget } from './renderers/WebGLRenderTarget.js';
import { WebGLShadowMap } from './renderers/webgl/WebGLShadowMap.js';
75
import { WebVRManager } from './renderers/webvr/WebVRManager.js';
76
import { ImageUtils } from './extras/ImageUtils.js';
77
import { Shape } from './extras/core/Shape.js';
W
WestLangley 已提交
78
import { CubeCamera } from './cameras/CubeCamera.js';
79 80 81

export { BoxGeometry as CubeGeometry };

82 83
export function Face4( a, b, c, d, normal, color, materialIndex ) {

84 85
	console.warn( 'THREE.Face4 has been removed. A THREE.Face3 will be created instead.' );
	return new Face3( a, b, c, normal, color, materialIndex );
86

87 88
}

M
Mr.doob 已提交
89
export var LineStrip = 0;
90

M
Mr.doob 已提交
91
export var LinePieces = 1;
92

93 94
export function MeshFaceMaterial( materials ) {

M
Mr.doob 已提交
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
	console.warn( 'THREE.MeshFaceMaterial has been removed. Use an Array instead.' );
	return materials;

}

export function MultiMaterial( materials ) {

	if ( materials === undefined ) materials = [];

	console.warn( 'THREE.MultiMaterial has been removed. Use an Array instead.' );
	materials.isMultiMaterial = true;
	materials.materials = materials;
	materials.clone = function () {

		return materials.slice();

	};
	return materials;
113 114 115 116

}

export function PointCloud( geometry, material ) {
117 118 119

	console.warn( 'THREE.PointCloud has been renamed to THREE.Points.' );
	return new Points( geometry, material );
120 121 122 123 124

}

export function Particle( material ) {

M
Mr.doob 已提交
125
	console.warn( 'THREE.Particle has been renamed to THREE.Sprite.' );
126 127
	return new Sprite( material );

128 129
}

130
export function ParticleSystem( geometry, material ) {
131 132 133

	console.warn( 'THREE.ParticleSystem has been renamed to THREE.Points.' );
	return new Points( geometry, material );
134

135 136
}

137 138
export function PointCloudMaterial( parameters ) {

139 140
	console.warn( 'THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial.' );
	return new PointsMaterial( parameters );
141

142 143
}

144 145
export function ParticleBasicMaterial( parameters ) {

146 147
	console.warn( 'THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial.' );
	return new PointsMaterial( parameters );
148

149 150
}

151 152
export function ParticleSystemMaterial( parameters ) {

153 154
	console.warn( 'THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial.' );
	return new PointsMaterial( parameters );
155

156 157
}

158 159
export function Vertex( x, y, z ) {

160 161
	console.warn( 'THREE.Vertex has been removed. Use THREE.Vector3 instead.' );
	return new Vector3( x, y, z );
162

163
}
M
Mr.doob 已提交
164 165 166

//

167
export function DynamicBufferAttribute( array, itemSize ) {
168

169 170
	console.warn( 'THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setDynamic( true ) instead.' );
	return new BufferAttribute( array, itemSize ).setDynamic( true );
171

172 173 174
}

export function Int8Attribute( array, itemSize ) {
175

176 177
	console.warn( 'THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead.' );
	return new Int8BufferAttribute( array, itemSize );
178

179 180 181
}

export function Uint8Attribute( array, itemSize ) {
182

183 184
	console.warn( 'THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead.' );
	return new Uint8BufferAttribute( array, itemSize );
185

186 187 188
}

export function Uint8ClampedAttribute( array, itemSize ) {
189

190 191
	console.warn( 'THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead.' );
	return new Uint8ClampedBufferAttribute( array, itemSize );
192

193 194 195
}

export function Int16Attribute( array, itemSize ) {
196

197 198
	console.warn( 'THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead.' );
	return new Int16BufferAttribute( array, itemSize );
199

200 201 202
}

export function Uint16Attribute( array, itemSize ) {
203

204 205
	console.warn( 'THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead.' );
	return new Uint16BufferAttribute( array, itemSize );
206

207 208 209
}

export function Int32Attribute( array, itemSize ) {
210

211 212
	console.warn( 'THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead.' );
	return new Int32BufferAttribute( array, itemSize );
213

214 215 216
}

export function Uint32Attribute( array, itemSize ) {
217

218 219
	console.warn( 'THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead.' );
	return new Uint32BufferAttribute( array, itemSize );
220

221 222 223
}

export function Float32Attribute( array, itemSize ) {
224

225 226
	console.warn( 'THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead.' );
	return new Float32BufferAttribute( array, itemSize );
227

228 229 230
}

export function Float64Attribute( array, itemSize ) {
231

232 233
	console.warn( 'THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead.' );
	return new Float64BufferAttribute( array, itemSize );
234

235 236 237 238
}

//

239 240 241 242 243 244 245 246 247 248 249 250 251 252
Curve.create = function ( construct, getPoint ) {

	console.log( 'THREE.Curve.create() has been deprecated' );

	construct.prototype = Object.create( Curve.prototype );
	construct.prototype.constructor = construct;
	construct.prototype.getPoint = getPoint;

	return construct;

};

//

M
Mugen87 已提交
253 254 255 256
Object.assign( CurvePath.prototype, {

	createPointsGeometry: function ( divisions ) {

257
		console.warn( 'THREE.CurvePath: .createPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.' );
M
Mugen87 已提交
258 259 260 261 262 263 264 265 266 267

		// generate geometry from path points (for Line or Points objects)

		var pts = this.getPoints( divisions );
		return this.createGeometry( pts );

	},

	createSpacedPointsGeometry: function ( divisions ) {

268
		console.warn( 'THREE.CurvePath: .createSpacedPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.' );
M
Mugen87 已提交
269 270 271 272 273 274 275 276 277 278

		// generate geometry from equidistant sampling along the path

		var pts = this.getSpacedPoints( divisions );
		return this.createGeometry( pts );

	},

	createGeometry: function ( points ) {

279
		console.warn( 'THREE.CurvePath: .createGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.' );
M
Mugen87 已提交
280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297

		var geometry = new Geometry();

		for ( var i = 0, l = points.length; i < l; i ++ ) {

			var point = points[ i ];
			geometry.vertices.push( new Vector3( point.x, point.y, point.z || 0 ) );

		}

		return geometry;

	}

} );

//

M
Mugen87 已提交
298 299 300 301 302 303 304 305 306 307 308 309 310
Object.assign( Path.prototype, {

	fromPoints: function ( points ) {

		console.warn( 'THREE.Path: .fromPoints() has been renamed to .setFromPoints().' );
		this.setFromPoints( points );

	}

} );

//

L
looeee 已提交
311
export function ClosedSplineCurve3( points ) {
L
looeee 已提交
312

M
Mr.doob 已提交
313
	console.warn( 'THREE.ClosedSplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead.' );
L
looeee 已提交
314 315 316 317 318 319 320 321 322

	CatmullRomCurve3.call( this, points );
	this.type = 'catmullrom';
	this.closed = true;

}

ClosedSplineCurve3.prototype = Object.create( CatmullRomCurve3.prototype );

M
Mugen87 已提交
323 324 325 326
//

export function SplineCurve3( points ) {

M
Mugen87 已提交
327
	console.warn( 'THREE.SplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead.' );
M
Mugen87 已提交
328 329 330 331 332 333 334

	CatmullRomCurve3.call( this, points );
	this.type = 'catmullrom';

}

SplineCurve3.prototype = Object.create( CatmullRomCurve3.prototype );
L
looeee 已提交
335

M
Mugen87 已提交
336 337 338 339 340 341 342 343 344 345 346 347 348 349 350
//

export function Spline( points ) {

	console.warn( 'THREE.Spline has been removed. Use THREE.CatmullRomCurve3 instead.' );

	CatmullRomCurve3.call( this, points );
	this.type = 'catmullrom';

}

Spline.prototype = Object.create( CatmullRomCurve3.prototype );

Object.assign( Spline.prototype, {

M
Mugen87 已提交
351
	initFromArray: function ( /* a */ ) {
M
Mugen87 已提交
352

353
		console.error( 'THREE.Spline: .initFromArray() has been removed.' );
M
Mugen87 已提交
354 355

	},
M
Mugen87 已提交
356
	getControlPointsArray: function ( /* optionalTarget */ ) {
M
Mugen87 已提交
357

358
		console.error( 'THREE.Spline: .getControlPointsArray() has been removed.' );
M
Mugen87 已提交
359 360

	},
M
Mugen87 已提交
361
	reparametrizeByArcLength: function ( /* samplingCoef */ ) {
M
Mugen87 已提交
362

363
		console.error( 'THREE.Spline: .reparametrizeByArcLength() has been removed.' );
M
Mugen87 已提交
364 365 366 367 368

	}

} );

L
looeee 已提交
369
//
M
Mr.doob 已提交
370

W
WestLangley 已提交
371 372 373 374 375 376 377
export function AxisHelper( size ) {

	console.warn( 'THREE.AxisHelper has been renamed to THREE.AxesHelper.' );
	return new AxesHelper( size );

}

M
Mr.doob 已提交
378 379
export function BoundingBoxHelper( object, color ) {

L
looeee 已提交
380 381 382
	console.warn( 'THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead.' );
	return new BoxHelper( object, color );

M
Mr.doob 已提交
383
}
L
looeee 已提交
384

385
export function EdgesHelper( object, hex ) {
386

387 388
	console.warn( 'THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead.' );
	return new LineSegments( new EdgesGeometry( object.geometry ), new LineBasicMaterial( { color: hex !== undefined ? hex : 0xffffff } ) );
389

390 391
}

M
Mr.doob 已提交
392
GridHelper.prototype.setColors = function () {
393

M
Mr.doob 已提交
394
	console.error( 'THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.' );
395

M
Mr.doob 已提交
396
};
L
looeee 已提交
397

398 399 400
SkeletonHelper.prototype.update = function () {

	console.error( 'THREE.SkeletonHelper: update() no longer needs to be called.' );
401

402 403
};

404
export function WireframeHelper( object, hex ) {
405

406 407
	console.warn( 'THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead.' );
	return new LineSegments( new WireframeGeometry( object.geometry ), new LineBasicMaterial( { color: hex !== undefined ? hex : 0xffffff } ) );
408

409 410 411 412
}

//

413 414 415 416 417 418 419 420 421 422 423
Object.assign( Loader.prototype, {

	extractUrlBase: function ( url ) {

		console.warn( 'THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead.' );
		return LoaderUtils.extractUrlBase( url );

	}

} );

M
Mr.doob 已提交
424
export function XHRLoader( manager ) {
425

M
Mr.doob 已提交
426 427
	console.warn( 'THREE.XHRLoader has been renamed to THREE.FileLoader.' );
	return new FileLoader( manager );
428

M
Mr.doob 已提交
429 430
}

L
Lewy Blue 已提交
431 432 433 434 435 436 437
export function BinaryTextureLoader( manager ) {

	console.warn( 'THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader.' );
	return new DataTextureLoader( manager );

}

M
Mr.doob 已提交
438 439
//

440
Object.assign( Box2.prototype, {
441

442
	center: function ( optionalTarget ) {
443

444 445
		console.warn( 'THREE.Box2: .center() has been renamed to .getCenter().' );
		return this.getCenter( optionalTarget );
446

447
	},
M
Mr.doob 已提交
448
	empty: function () {
449

M
Mr.doob 已提交
450 451
		console.warn( 'THREE.Box2: .empty() has been renamed to .isEmpty().' );
		return this.isEmpty();
452

453
	},
M
Mr.doob 已提交
454
	isIntersectionBox: function ( box ) {
455

M
Mr.doob 已提交
456 457
		console.warn( 'THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox().' );
		return this.intersectsBox( box );
458

459 460
	},
	size: function ( optionalTarget ) {
461

462 463
		console.warn( 'THREE.Box2: .size() has been renamed to .getSize().' );
		return this.getSize( optionalTarget );
464

M
Mr.doob 已提交
465 466 467
	}
} );

468
Object.assign( Box3.prototype, {
469

470
	center: function ( optionalTarget ) {
471

472 473
		console.warn( 'THREE.Box3: .center() has been renamed to .getCenter().' );
		return this.getCenter( optionalTarget );
474

475
	},
M
Mr.doob 已提交
476
	empty: function () {
477

M
Mr.doob 已提交
478 479
		console.warn( 'THREE.Box3: .empty() has been renamed to .isEmpty().' );
		return this.isEmpty();
480

481
	},
M
Mr.doob 已提交
482
	isIntersectionBox: function ( box ) {
483

M
Mr.doob 已提交
484 485
		console.warn( 'THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox().' );
		return this.intersectsBox( box );
486

M
Mr.doob 已提交
487
	},
M
Mr.doob 已提交
488
	isIntersectionSphere: function ( sphere ) {
489

M
Mr.doob 已提交
490 491
		console.warn( 'THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere().' );
		return this.intersectsSphere( sphere );
492

493 494
	},
	size: function ( optionalTarget ) {
495

496 497
		console.warn( 'THREE.Box3: .size() has been renamed to .getSize().' );
		return this.getSize( optionalTarget );
498

M
Mr.doob 已提交
499 500 501
	}
} );

M
Mr.doob 已提交
502
Line3.prototype.center = function ( optionalTarget ) {
503

M
Mr.doob 已提交
504 505
	console.warn( 'THREE.Line3: .center() has been renamed to .getCenter().' );
	return this.getCenter( optionalTarget );
506

M
Mr.doob 已提交
507
};
508

509
Object.assign( _Math, {
510

511
	random16: function () {
512

513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532
		console.warn( 'THREE.Math: .random16() has been deprecated. Use Math.random() instead.' );
		return Math.random();

	},

	nearestPowerOfTwo: function ( value ) {

		console.warn( 'THREE.Math: .nearestPowerOfTwo() has been renamed to .floorPowerOfTwo().' );
		return _Math.floorPowerOfTwo( value );

	},

	nextPowerOfTwo: function ( value ) {

		console.warn( 'THREE.Math: .nextPowerOfTwo() has been renamed to .ceilPowerOfTwo().' );
		return _Math.ceilPowerOfTwo( value );

	}

} );
L
looeee 已提交
533

534
Object.assign( Matrix3.prototype, {
M
Mr.doob 已提交
535

536
	flattenToArrayOffset: function ( array, offset ) {
537

538 539
		console.warn( "THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead." );
		return this.toArray( array, offset );
540

541
	},
M
Mr.doob 已提交
542
	multiplyVector3: function ( vector ) {
543

M
Mr.doob 已提交
544 545
		console.warn( 'THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead.' );
		return vector.applyMatrix3( this );
546

M
Mr.doob 已提交
547
	},
M
Mugen87 已提交
548
	multiplyVector3Array: function ( /* a */ ) {
549

M
Mugen87 已提交
550
		console.error( 'THREE.Matrix3: .multiplyVector3Array() has been removed.' );
551

552
	},
M
Mugen87 已提交
553
	applyToBuffer: function ( buffer /*, offset, length */ ) {
554

555 556
		console.warn( 'THREE.Matrix3: .applyToBuffer() has been removed. Use matrix.applyToBufferAttribute( attribute ) instead.' );
		return this.applyToBufferAttribute( buffer );
557

558
	},
M
Mugen87 已提交
559
	applyToVector3Array: function ( /* array, offset, length */ ) {
560 561 562

		console.error( 'THREE.Matrix3: .applyToVector3Array() has been removed.' );

M
Mr.doob 已提交
563
	}
M
Mr.doob 已提交
564

M
Mr.doob 已提交
565 566
} );

567
Object.assign( Matrix4.prototype, {
M
Mr.doob 已提交
568

M
Mr.doob 已提交
569
	extractPosition: function ( m ) {
570

M
Mr.doob 已提交
571 572
		console.warn( 'THREE.Matrix4: .extractPosition() has been renamed to .copyPosition().' );
		return this.copyPosition( m );
573

M
Mr.doob 已提交
574
	},
575 576
	flattenToArrayOffset: function ( array, offset ) {

577
		console.warn( "THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead." );
578
		return this.toArray( array, offset );
579

580
	},
L
looeee 已提交
581 582 583 584 585
	getPosition: function () {

		var v1;

		return function getPosition() {
586

L
looeee 已提交
587 588 589
			if ( v1 === undefined ) v1 = new Vector3();
			console.warn( 'THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead.' );
			return v1.setFromMatrixColumn( this, 3 );
590

L
looeee 已提交
591 592 593
		};

	}(),
M
Mr.doob 已提交
594
	setRotationFromQuaternion: function ( q ) {
595

M
Mr.doob 已提交
596 597
		console.warn( 'THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion().' );
		return this.makeRotationFromQuaternion( q );
598

M
Mr.doob 已提交
599 600 601 602 603
	},
	multiplyToArray: function () {

		console.warn( 'THREE.Matrix4: .multiplyToArray() has been removed.' );

M
Mr.doob 已提交
604
	},
M
Mr.doob 已提交
605
	multiplyVector3: function ( vector ) {
606

F
Franklin Ta 已提交
607 608
		console.warn( 'THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead.' );
		return vector.applyMatrix4( this );
609

M
Mr.doob 已提交
610
	},
M
Mr.doob 已提交
611
	multiplyVector4: function ( vector ) {
612

M
Mr.doob 已提交
613 614
		console.warn( 'THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead.' );
		return vector.applyMatrix4( this );
615

M
Mr.doob 已提交
616
	},
M
Mugen87 已提交
617
	multiplyVector3Array: function ( /* a */ ) {
618

M
Mugen87 已提交
619
		console.error( 'THREE.Matrix4: .multiplyVector3Array() has been removed.' );
620

M
Mr.doob 已提交
621
	},
M
Mr.doob 已提交
622
	rotateAxis: function ( v ) {
623

M
Mr.doob 已提交
624 625
		console.warn( 'THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead.' );
		v.transformDirection( this );
626

M
Mr.doob 已提交
627
	},
M
Mr.doob 已提交
628
	crossVector: function ( vector ) {
629

M
Mr.doob 已提交
630 631
		console.warn( 'THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead.' );
		return vector.applyMatrix4( this );
632

M
Mr.doob 已提交
633
	},
M
Mr.doob 已提交
634
	translate: function () {
635

M
Mr.doob 已提交
636
		console.error( 'THREE.Matrix4: .translate() has been removed.' );
637

M
Mr.doob 已提交
638
	},
M
Mr.doob 已提交
639
	rotateX: function () {
640

M
Mr.doob 已提交
641
		console.error( 'THREE.Matrix4: .rotateX() has been removed.' );
642

M
Mr.doob 已提交
643
	},
M
Mr.doob 已提交
644
	rotateY: function () {
645

M
Mr.doob 已提交
646
		console.error( 'THREE.Matrix4: .rotateY() has been removed.' );
647

M
Mr.doob 已提交
648
	},
M
Mr.doob 已提交
649
	rotateZ: function () {
650

M
Mr.doob 已提交
651
		console.error( 'THREE.Matrix4: .rotateZ() has been removed.' );
652

M
Mr.doob 已提交
653
	},
M
Mr.doob 已提交
654
	rotateByAxis: function () {
655

M
Mr.doob 已提交
656
		console.error( 'THREE.Matrix4: .rotateByAxis() has been removed.' );
657

658
	},
M
Mugen87 已提交
659
	applyToBuffer: function ( buffer /*, offset, length */ ) {
660

661 662
		console.warn( 'THREE.Matrix4: .applyToBuffer() has been removed. Use matrix.applyToBufferAttribute( attribute ) instead.' );
		return this.applyToBufferAttribute( buffer );
663

664
	},
M
Mugen87 已提交
665
	applyToVector3Array: function ( /* array, offset, length */ ) {
666 667 668

		console.error( 'THREE.Matrix4: .applyToVector3Array() has been removed.' );

669
	},
M
Mugen87 已提交
670
	makeFrustum: function ( left, right, bottom, top, near, far ) {
671

672
		console.warn( 'THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead.' );
673
		return this.makePerspective( left, right, top, bottom, near, far );
674

M
Mr.doob 已提交
675
	}
M
Mr.doob 已提交
676

M
Mr.doob 已提交
677 678
} );

M
Mr.doob 已提交
679
Plane.prototype.isIntersectionLine = function ( line ) {
680

M
Mr.doob 已提交
681 682
	console.warn( 'THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine().' );
	return this.intersectsLine( line );
683

M
Mr.doob 已提交
684
};
M
Mr.doob 已提交
685

M
Mr.doob 已提交
686
Quaternion.prototype.multiplyVector3 = function ( vector ) {
687

M
Mr.doob 已提交
688 689
	console.warn( 'THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead.' );
	return vector.applyQuaternion( this );
690

M
Mr.doob 已提交
691
};
M
Mr.doob 已提交
692

693
Object.assign( Ray.prototype, {
M
Mr.doob 已提交
694

M
Mr.doob 已提交
695
	isIntersectionBox: function ( box ) {
696

M
Mr.doob 已提交
697 698
		console.warn( 'THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox().' );
		return this.intersectsBox( box );
699

M
Mr.doob 已提交
700
	},
M
Mr.doob 已提交
701
	isIntersectionPlane: function ( plane ) {
702

M
Mr.doob 已提交
703 704
		console.warn( 'THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane().' );
		return this.intersectsPlane( plane );
705

M
Mr.doob 已提交
706
	},
M
Mr.doob 已提交
707
	isIntersectionSphere: function ( sphere ) {
708

M
Mr.doob 已提交
709 710
		console.warn( 'THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere().' );
		return this.intersectsSphere( sphere );
711

M
Mr.doob 已提交
712
	}
M
Mr.doob 已提交
713

M
Mr.doob 已提交
714 715
} );

M
Mugen87 已提交
716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767
Object.assign( Triangle.prototype, {

	area: function () {

		console.warn( 'THREE.Triangle: .area() has been renamed to .getArea().' );
		return this.getArea();

	},
	barycoordFromPoint: function ( point, target ) {

		console.warn( 'THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord().' );
		return this.getBarycoord( point, target );

	},
	midpoint: function ( target ) {

		console.warn( 'THREE.Triangle: .midpoint() has been renamed to .getMidpoint().' );
		return this.getMidpoint( target );

	},
	normal: function ( target ) {

		console.warn( 'THREE.Triangle: .normal() has been renamed to .getNormal().' );
		return this.getNormal( target );

	},
	plane: function ( target ) {

		console.warn( 'THREE.Triangle: .plane() has been renamed to .getPlane().' );
		return this.getPlane( target );

	}

} );

Object.assign( Triangle, {

	barycoordFromPoint: function ( point, a, b, c, target ) {

		console.warn( 'THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord().' );
		return Triangle.getBarycoord( point, a, b, c, target );

	},
	normal: function ( a, b, c, target ) {

		console.warn( 'THREE.Triangle: .normal() has been renamed to .getNormal().' );
		return Triangle.getNormal( a, b, c, target );

	}

} );

768
Object.assign( Shape.prototype, {
M
Mr.doob 已提交
769

M
Mugen87 已提交
770 771 772 773 774 775
	extractAllPoints: function ( divisions ) {

		console.warn( 'THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead.' );
		return this.extractPoints( divisions );

	},
776
	extrude: function ( options ) {
777

778 779
		console.warn( 'THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead.' );
		return new ExtrudeGeometry( this, options );
780

781 782
	},
	makeGeometry: function ( options ) {
783

784 785
		console.warn( 'THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead.' );
		return new ShapeGeometry( this, options );
786

787
	}
M
Mr.doob 已提交
788

789 790
} );

791 792 793 794
Object.assign( Vector2.prototype, {

	fromAttribute: function ( attribute, index, offset ) {

795
		console.warn( 'THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute().' );
796 797
		return this.fromBufferAttribute( attribute, index, offset );

798 799 800 801 802 803
	},
	distanceToManhattan: function ( v ) {

		console.warn( 'THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo().' );
		return this.manhattanDistanceTo( v );

804 805 806 807 808 809
	},
	lengthManhattan: function () {

		console.warn( 'THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength().' );
		return this.manhattanLength();

810 811 812 813
	}

} );

814
Object.assign( Vector3.prototype, {
M
Mr.doob 已提交
815

M
Mr.doob 已提交
816
	setEulerFromRotationMatrix: function () {
817

M
Mr.doob 已提交
818
		console.error( 'THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.' );
819

M
Mr.doob 已提交
820
	},
M
Mr.doob 已提交
821
	setEulerFromQuaternion: function () {
822

M
Mr.doob 已提交
823
		console.error( 'THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.' );
824

M
Mr.doob 已提交
825
	},
M
Mr.doob 已提交
826
	getPositionFromMatrix: function ( m ) {
827

M
Mr.doob 已提交
828 829
		console.warn( 'THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition().' );
		return this.setFromMatrixPosition( m );
830

M
Mr.doob 已提交
831
	},
M
Mr.doob 已提交
832
	getScaleFromMatrix: function ( m ) {
833

M
Mr.doob 已提交
834 835
		console.warn( 'THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale().' );
		return this.setFromMatrixScale( m );
836

M
Mr.doob 已提交
837
	},
M
Mr.doob 已提交
838
	getColumnFromMatrix: function ( index, matrix ) {
839

M
Mr.doob 已提交
840 841
		console.warn( 'THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn().' );
		return this.setFromMatrixColumn( matrix, index );
842

843 844 845 846 847 848
	},
	applyProjection: function ( m ) {

		console.warn( 'THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead.' );
		return this.applyMatrix4( m );

849
	},
850 851
	fromAttribute: function ( attribute, index, offset ) {

852
		console.warn( 'THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute().' );
853 854
		return this.fromBufferAttribute( attribute, index, offset );

855 856 857 858 859 860
	},
	distanceToManhattan: function ( v ) {

		console.warn( 'THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo().' );
		return this.manhattanDistanceTo( v );

861 862 863 864 865 866
	},
	lengthManhattan: function () {

		console.warn( 'THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength().' );
		return this.manhattanLength();

867 868 869 870 871 872 873 874
	}

} );

Object.assign( Vector4.prototype, {

	fromAttribute: function ( attribute, index, offset ) {

875
		console.warn( 'THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute().' );
876 877
		return this.fromBufferAttribute( attribute, index, offset );

878 879 880 881 882 883
	},
	lengthManhattan: function () {

		console.warn( 'THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength().' );
		return this.manhattanLength();

M
Mr.doob 已提交
884
	}
M
Mr.doob 已提交
885

M
Mr.doob 已提交
886 887 888 889
} );

//

890
Object.assign( Geometry.prototype, {
891

892
	computeTangents: function () {
L
looeee 已提交
893

894 895 896 897 898 899 900 901 902 903
		console.error( 'THREE.Geometry: .computeTangents() has been removed.' );

	},
	computeLineDistances: function () {

		console.error( 'THREE.Geometry: .computeLineDistances() has been removed. Use THREE.Line.computeLineDistances() instead.' );

	}

} );
L
looeee 已提交
904

905
Object.assign( Object3D.prototype, {
M
Mr.doob 已提交
906

M
Mr.doob 已提交
907
	getChildByName: function ( name ) {
908

M
Mr.doob 已提交
909 910
		console.warn( 'THREE.Object3D: .getChildByName() has been renamed to .getObjectByName().' );
		return this.getObjectByName( name );
911

M
Mr.doob 已提交
912
	},
M
Mr.doob 已提交
913
	renderDepth: function () {
914

M
Mr.doob 已提交
915
		console.warn( 'THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.' );
916

M
Mr.doob 已提交
917 918
	},
	translate: function ( distance, axis ) {
919

M
Mr.doob 已提交
920 921
		console.warn( 'THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead.' );
		return this.translateOnAxis( axis, distance );
922

W
WestLangley 已提交
923 924 925 926 927
	},
	getWorldRotation: function () {

		console.error( 'THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.' );

M
Mr.doob 已提交
928
	}
M
Mr.doob 已提交
929

M
Mr.doob 已提交
930
} );
M
Mr.doob 已提交
931

932
Object.defineProperties( Object3D.prototype, {
M
Mr.doob 已提交
933

M
Mr.doob 已提交
934 935
	eulerOrder: {
		get: function () {
936

M
Mr.doob 已提交
937 938
			console.warn( 'THREE.Object3D: .eulerOrder is now .rotation.order.' );
			return this.rotation.order;
939

M
Mr.doob 已提交
940 941
		},
		set: function ( value ) {
942

M
Mr.doob 已提交
943 944
			console.warn( 'THREE.Object3D: .eulerOrder is now .rotation.order.' );
			this.rotation.order = value;
945

M
Mr.doob 已提交
946 947 948 949
		}
	},
	useQuaternion: {
		get: function () {
950

M
Mr.doob 已提交
951
			console.warn( 'THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.' );
952

M
Mr.doob 已提交
953
		},
M
Mr.doob 已提交
954
		set: function () {
955

M
Mr.doob 已提交
956
			console.warn( 'THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.' );
957

M
Mr.doob 已提交
958 959
		}
	}
M
Mr.doob 已提交
960

M
Mr.doob 已提交
961 962
} );

963
Object.defineProperties( LOD.prototype, {
M
Mr.doob 已提交
964

M
Mr.doob 已提交
965 966
	objects: {
		get: function () {
967

M
Mr.doob 已提交
968 969
			console.warn( 'THREE.LOD: .objects has been renamed to .levels.' );
			return this.levels;
970

M
Mr.doob 已提交
971 972
		}
	}
M
Mr.doob 已提交
973

M
Mr.doob 已提交
974 975
} );

976 977 978 979 980 981 982 983 984 985 986 987 988 989 990
Object.defineProperty( Skeleton.prototype, 'useVertexTexture', {

	get: function () {

		console.warn( 'THREE.Skeleton: useVertexTexture has been removed.' );

	},
	set: function () {

		console.warn( 'THREE.Skeleton: useVertexTexture has been removed.' );

	}

} );

M
Mugen87 已提交
991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007
Object.defineProperty( Curve.prototype, '__arcLengthDivisions', {

	get: function () {

		console.warn( 'THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions.' );
		return this.arcLengthDivisions;

	},
	set: function ( value ) {

		console.warn( 'THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions.' );
		this.arcLengthDivisions = value;

	}

} );

M
Mr.doob 已提交
1008 1009
//

1010
PerspectiveCamera.prototype.setLens = function ( focalLength, filmGauge ) {
1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021

	console.warn( "THREE.PerspectiveCamera.setLens is deprecated. " +
			"Use .setFocalLength and .filmGauge for a photographic setup." );

	if ( filmGauge !== undefined ) this.filmGauge = filmGauge;
	this.setFocalLength( focalLength );

};

//

1022
Object.defineProperties( Light.prototype, {
M
Mr.doob 已提交
1023
	onlyShadow: {
M
Mr.doob 已提交
1024
		set: function () {
1025

M
Mr.doob 已提交
1026
			console.warn( 'THREE.Light: .onlyShadow has been removed.' );
1027

M
Mr.doob 已提交
1028 1029 1030 1031
		}
	},
	shadowCameraFov: {
		set: function ( value ) {
1032

1033
			console.warn( 'THREE.Light: .shadowCameraFov is now .shadow.camera.fov.' );
M
Mr.doob 已提交
1034
			this.shadow.camera.fov = value;
1035

M
Mr.doob 已提交
1036 1037 1038 1039
		}
	},
	shadowCameraLeft: {
		set: function ( value ) {
1040

1041
			console.warn( 'THREE.Light: .shadowCameraLeft is now .shadow.camera.left.' );
M
Mr.doob 已提交
1042
			this.shadow.camera.left = value;
1043

M
Mr.doob 已提交
1044 1045 1046 1047
		}
	},
	shadowCameraRight: {
		set: function ( value ) {
1048

1049
			console.warn( 'THREE.Light: .shadowCameraRight is now .shadow.camera.right.' );
M
Mr.doob 已提交
1050
			this.shadow.camera.right = value;
1051

M
Mr.doob 已提交
1052 1053 1054 1055
		}
	},
	shadowCameraTop: {
		set: function ( value ) {
1056

1057
			console.warn( 'THREE.Light: .shadowCameraTop is now .shadow.camera.top.' );
M
Mr.doob 已提交
1058
			this.shadow.camera.top = value;
1059

M
Mr.doob 已提交
1060 1061 1062 1063
		}
	},
	shadowCameraBottom: {
		set: function ( value ) {
1064

1065
			console.warn( 'THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom.' );
M
Mr.doob 已提交
1066
			this.shadow.camera.bottom = value;
1067

M
Mr.doob 已提交
1068 1069 1070 1071
		}
	},
	shadowCameraNear: {
		set: function ( value ) {
1072

1073
			console.warn( 'THREE.Light: .shadowCameraNear is now .shadow.camera.near.' );
M
Mr.doob 已提交
1074
			this.shadow.camera.near = value;
1075

M
Mr.doob 已提交
1076 1077 1078 1079
		}
	},
	shadowCameraFar: {
		set: function ( value ) {
1080

1081
			console.warn( 'THREE.Light: .shadowCameraFar is now .shadow.camera.far.' );
M
Mr.doob 已提交
1082
			this.shadow.camera.far = value;
1083

M
Mr.doob 已提交
1084 1085 1086
		}
	},
	shadowCameraVisible: {
M
Mr.doob 已提交
1087
		set: function () {
1088

1089
			console.warn( 'THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.' );
1090

M
Mr.doob 已提交
1091 1092 1093 1094
		}
	},
	shadowBias: {
		set: function ( value ) {
1095

1096
			console.warn( 'THREE.Light: .shadowBias is now .shadow.bias.' );
M
Mr.doob 已提交
1097
			this.shadow.bias = value;
1098

M
Mr.doob 已提交
1099 1100 1101
		}
	},
	shadowDarkness: {
M
Mr.doob 已提交
1102
		set: function () {
1103

M
Mr.doob 已提交
1104
			console.warn( 'THREE.Light: .shadowDarkness has been removed.' );
1105

M
Mr.doob 已提交
1106 1107 1108 1109
		}
	},
	shadowMapWidth: {
		set: function ( value ) {
1110

1111
			console.warn( 'THREE.Light: .shadowMapWidth is now .shadow.mapSize.width.' );
M
Mr.doob 已提交
1112
			this.shadow.mapSize.width = value;
1113

M
Mr.doob 已提交
1114 1115 1116 1117
		}
	},
	shadowMapHeight: {
		set: function ( value ) {
1118

1119
			console.warn( 'THREE.Light: .shadowMapHeight is now .shadow.mapSize.height.' );
M
Mr.doob 已提交
1120
			this.shadow.mapSize.height = value;
1121

M
Mr.doob 已提交
1122 1123 1124 1125 1126
		}
	}
} );

//
M
Mr.doob 已提交
1127

1128
Object.defineProperties( BufferAttribute.prototype, {
M
Mr.doob 已提交
1129

M
Mr.doob 已提交
1130 1131
	length: {
		get: function () {
1132

M
Mr.doob 已提交
1133
			console.warn( 'THREE.BufferAttribute: .length has been deprecated. Use .count instead.' );
M
Mr.doob 已提交
1134
			return this.array.length;
1135

M
Mr.doob 已提交
1136
		}
M
Mugen87 已提交
1137 1138 1139 1140 1141
	},
	copyIndicesArray: function ( /* indices */ ) {

		console.error( 'THREE.BufferAttribute: .copyIndicesArray() has been removed.' );

M
Mr.doob 已提交
1142
	}
M
Mr.doob 已提交
1143

M
Mr.doob 已提交
1144 1145
} );

1146
Object.assign( BufferGeometry.prototype, {
M
Mr.doob 已提交
1147

M
Mr.doob 已提交
1148
	addIndex: function ( index ) {
1149

M
Mr.doob 已提交
1150 1151
		console.warn( 'THREE.BufferGeometry: .addIndex() has been renamed to .setIndex().' );
		this.setIndex( index );
1152

M
Mr.doob 已提交
1153 1154
	},
	addDrawCall: function ( start, count, indexOffset ) {
1155

M
Mr.doob 已提交
1156
		if ( indexOffset !== undefined ) {
1157

M
Mr.doob 已提交
1158
			console.warn( 'THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset.' );
1159

M
Mr.doob 已提交
1160 1161 1162
		}
		console.warn( 'THREE.BufferGeometry: .addDrawCall() is now .addGroup().' );
		this.addGroup( start, count );
1163

M
Mr.doob 已提交
1164 1165
	},
	clearDrawCalls: function () {
1166

M
Mr.doob 已提交
1167 1168
		console.warn( 'THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups().' );
		this.clearGroups();
1169

M
Mr.doob 已提交
1170 1171
	},
	computeTangents: function () {
1172

M
Mr.doob 已提交
1173
		console.warn( 'THREE.BufferGeometry: .computeTangents() has been removed.' );
1174

M
Mr.doob 已提交
1175 1176
	},
	computeOffsets: function () {
1177

M
Mr.doob 已提交
1178
		console.warn( 'THREE.BufferGeometry: .computeOffsets() has been removed.' );
1179

M
Mr.doob 已提交
1180
	}
M
Mr.doob 已提交
1181

M
Mr.doob 已提交
1182 1183
} );

1184
Object.defineProperties( BufferGeometry.prototype, {
M
Mr.doob 已提交
1185

1186 1187
	drawcalls: {
		get: function () {
1188

1189 1190
			console.error( 'THREE.BufferGeometry: .drawcalls has been renamed to .groups.' );
			return this.groups;
1191

1192 1193 1194 1195
		}
	},
	offsets: {
		get: function () {
1196

1197 1198
			console.warn( 'THREE.BufferGeometry: .offsets has been renamed to .groups.' );
			return this.groups;
1199

1200 1201
		}
	}
M
Mr.doob 已提交
1202

1203 1204
} );

M
Mr.doob 已提交
1205 1206
//

M
Mugen87 已提交
1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230
Object.assign( ExtrudeBufferGeometry.prototype, {

	getArrays: function () {

		console.error( 'THREE.ExtrudeBufferGeometry: .getArrays() has been removed.' );

	},

	addShapeList: function () {

		console.error( 'THREE.ExtrudeBufferGeometry: .addShapeList() has been removed.' );

	},

	addShape: function () {

		console.error( 'THREE.ExtrudeBufferGeometry: .addShape() has been removed.' );

	}

} );

//

M
Mr.doob 已提交
1231
Object.defineProperties( Uniform.prototype, {
M
Mr.doob 已提交
1232

M
Mr.doob 已提交
1233
	dynamic: {
M
Mr.doob 已提交
1234
		set: function () {
1235

M
Mr.doob 已提交
1236
			console.warn( 'THREE.Uniform: .dynamic has been removed. Use object.onBeforeRender() instead.' );
1237

M
Mr.doob 已提交
1238 1239 1240 1241
		}
	},
	onUpdate: {
		value: function () {
1242

M
Mr.doob 已提交
1243 1244
			console.warn( 'THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead.' );
			return this;
1245

M
Mr.doob 已提交
1246 1247
		}
	}
M
Mr.doob 已提交
1248

M
Mr.doob 已提交
1249 1250 1251 1252
} );

//

1253
Object.defineProperties( Material.prototype, {
M
Mr.doob 已提交
1254

M
Mr.doob 已提交
1255 1256
	wrapAround: {
		get: function () {
1257

M
Mr.doob 已提交
1258
			console.warn( 'THREE.Material: .wrapAround has been removed.' );
1259

M
Mr.doob 已提交
1260
		},
M
Mr.doob 已提交
1261
		set: function () {
1262

M
Mr.doob 已提交
1263
			console.warn( 'THREE.Material: .wrapAround has been removed.' );
1264

M
Mr.doob 已提交
1265 1266 1267 1268
		}
	},
	wrapRGB: {
		get: function () {
1269

M
Mr.doob 已提交
1270
			console.warn( 'THREE.Material: .wrapRGB has been removed.' );
1271
			return new Color();
1272

1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284
		}
	},

	shading: {
		get: function () {

			console.error( 'THREE.' + this.type + ': .shading has been removed. Use the boolean .flatShading instead.' );

		},
		set: function ( value ) {

			console.warn( 'THREE.' + this.type + ': .shading has been removed. Use the boolean .flatShading instead.' );
D
Daniel Hritzkiv 已提交
1285
			this.flatShading = ( value === FlatShading );
1286

M
Mr.doob 已提交
1287 1288
		}
	}
M
Mr.doob 已提交
1289

M
Mr.doob 已提交
1290 1291
} );

1292
Object.defineProperties( MeshPhongMaterial.prototype, {
M
Mr.doob 已提交
1293

1294 1295
	metal: {
		get: function () {
1296

1297
			console.warn( 'THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead.' );
1298
			return false;
1299

1300
		},
M
Mr.doob 已提交
1301
		set: function () {
1302

1303
			console.warn( 'THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead' );
1304

1305 1306
		}
	}
M
Mr.doob 已提交
1307

1308 1309
} );

1310
Object.defineProperties( ShaderMaterial.prototype, {
M
Mr.doob 已提交
1311

M
Mr.doob 已提交
1312
	derivatives: {
M
Mr.doob 已提交
1313
		get: function () {
1314

1315
			console.warn( 'THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives.' );
M
Mr.doob 已提交
1316
			return this.extensions.derivatives;
1317

M
Mr.doob 已提交
1318
		},
M
Mr.doob 已提交
1319
		set: function ( value ) {
1320

M
Mr.doob 已提交
1321 1322
			console.warn( 'THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives.' );
			this.extensions.derivatives = value;
1323

M
Mr.doob 已提交
1324 1325
		}
	}
M
Mr.doob 已提交
1326

M
Mr.doob 已提交
1327 1328 1329
} );

//
M
Mr.doob 已提交
1330

1331
Object.assign( WebGLRenderer.prototype, {
M
Mr.doob 已提交
1332

1333 1334 1335 1336 1337 1338 1339
	animate: function ( callback ) {

		console.warn( 'THREE.WebGLRenderer: .animate() is now .setAnimationLoop().' );
		this.setAnimationLoop( callback );

	},

1340 1341 1342 1343 1344 1345 1346
	getCurrentRenderTarget: function () {

		console.warn( 'THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget().' );
		return this.getRenderTarget();

	},

1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360
	getMaxAnisotropy: function () {

		console.warn( 'THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy().' );
		return this.capabilities.getMaxAnisotropy();

	},

	getPrecision: function () {

		console.warn( 'THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision.' );
		return this.capabilities.precision;

	},

M
Mr.doob 已提交
1361 1362 1363 1364 1365 1366 1367
	resetGLState: function () {

		console.warn( 'THREE.WebGLRenderer: .resetGLState() is now .state.reset().' );
		return this.state.reset();

	},

M
Mr.doob 已提交
1368
	supportsFloatTextures: function () {
1369

M
Mr.doob 已提交
1370 1371
		console.warn( 'THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( \'OES_texture_float\' ).' );
		return this.extensions.get( 'OES_texture_float' );
1372

M
Mr.doob 已提交
1373
	},
M
Mr.doob 已提交
1374
	supportsHalfFloatTextures: function () {
1375

M
Mr.doob 已提交
1376 1377
		console.warn( 'THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( \'OES_texture_half_float\' ).' );
		return this.extensions.get( 'OES_texture_half_float' );
1378

M
Mr.doob 已提交
1379
	},
M
Mr.doob 已提交
1380
	supportsStandardDerivatives: function () {
1381

M
Mr.doob 已提交
1382 1383
		console.warn( 'THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( \'OES_standard_derivatives\' ).' );
		return this.extensions.get( 'OES_standard_derivatives' );
1384

M
Mr.doob 已提交
1385
	},
M
Mr.doob 已提交
1386
	supportsCompressedTextureS3TC: function () {
1387

M
Mr.doob 已提交
1388 1389
		console.warn( 'THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( \'WEBGL_compressed_texture_s3tc\' ).' );
		return this.extensions.get( 'WEBGL_compressed_texture_s3tc' );
1390

M
Mr.doob 已提交
1391
	},
M
Mr.doob 已提交
1392
	supportsCompressedTexturePVRTC: function () {
1393

M
Mr.doob 已提交
1394 1395
		console.warn( 'THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( \'WEBGL_compressed_texture_pvrtc\' ).' );
		return this.extensions.get( 'WEBGL_compressed_texture_pvrtc' );
1396

M
Mr.doob 已提交
1397
	},
M
Mr.doob 已提交
1398
	supportsBlendMinMax: function () {
1399

M
Mr.doob 已提交
1400 1401
		console.warn( 'THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( \'EXT_blend_minmax\' ).' );
		return this.extensions.get( 'EXT_blend_minmax' );
1402

M
Mr.doob 已提交
1403
	},
M
Mr.doob 已提交
1404
	supportsVertexTextures: function () {
1405

1406
		console.warn( 'THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures.' );
M
Mr.doob 已提交
1407
		return this.capabilities.vertexTextures;
1408

M
Mr.doob 已提交
1409
	},
M
Mr.doob 已提交
1410
	supportsInstancedArrays: function () {
1411

M
Mr.doob 已提交
1412 1413
		console.warn( 'THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( \'ANGLE_instanced_arrays\' ).' );
		return this.extensions.get( 'ANGLE_instanced_arrays' );
1414

1415
	},
M
Mr.doob 已提交
1416
	enableScissorTest: function ( boolean ) {
1417

M
Mr.doob 已提交
1418 1419
		console.warn( 'THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest().' );
		this.setScissorTest( boolean );
1420

M
Mr.doob 已提交
1421
	},
M
Mr.doob 已提交
1422
	initMaterial: function () {
1423

M
Mr.doob 已提交
1424
		console.warn( 'THREE.WebGLRenderer: .initMaterial() has been removed.' );
1425

M
Mr.doob 已提交
1426
	},
M
Mr.doob 已提交
1427
	addPrePlugin: function () {
1428

M
Mr.doob 已提交
1429
		console.warn( 'THREE.WebGLRenderer: .addPrePlugin() has been removed.' );
1430

M
Mr.doob 已提交
1431
	},
M
Mr.doob 已提交
1432
	addPostPlugin: function () {
1433

M
Mr.doob 已提交
1434
		console.warn( 'THREE.WebGLRenderer: .addPostPlugin() has been removed.' );
1435

M
Mr.doob 已提交
1436
	},
M
Mr.doob 已提交
1437
	updateShadowMap: function () {
1438

M
Mr.doob 已提交
1439
		console.warn( 'THREE.WebGLRenderer: .updateShadowMap() has been removed.' );
1440

1441 1442 1443 1444 1445
	},
	setFaceCulling: function () {

		console.warn( 'THREE.WebGLRenderer: .setFaceCulling() has been removed.' );

1446
	}
M
Mr.doob 已提交
1447

M
Mr.doob 已提交
1448 1449
} );

1450
Object.defineProperties( WebGLRenderer.prototype, {
M
Mr.doob 已提交
1451

M
Mr.doob 已提交
1452 1453
	shadowMapEnabled: {
		get: function () {
1454

M
Mr.doob 已提交
1455
			return this.shadowMap.enabled;
1456

M
Mr.doob 已提交
1457 1458
		},
		set: function ( value ) {
1459

M
Mr.doob 已提交
1460 1461
			console.warn( 'THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled.' );
			this.shadowMap.enabled = value;
1462

M
Mr.doob 已提交
1463 1464 1465 1466
		}
	},
	shadowMapType: {
		get: function () {
1467

M
Mr.doob 已提交
1468
			return this.shadowMap.type;
1469

M
Mr.doob 已提交
1470 1471
		},
		set: function ( value ) {
1472

M
Mr.doob 已提交
1473 1474
			console.warn( 'THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type.' );
			this.shadowMap.type = value;
1475

M
Mr.doob 已提交
1476 1477 1478 1479
		}
	},
	shadowMapCullFace: {
		get: function () {
1480

W
WestLangley 已提交
1481 1482
			console.warn( 'THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.' );
			return undefined;
1483

M
Mr.doob 已提交
1484
		},
M
Mugen87 已提交
1485
		set: function ( /* value */ ) {
1486

W
WestLangley 已提交
1487
			console.warn( 'THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.' );
1488

M
Mr.doob 已提交
1489 1490 1491 1492
		}
	}
} );

1493
Object.defineProperties( WebGLShadowMap.prototype, {
M
Mr.doob 已提交
1494

M
Mr.doob 已提交
1495 1496
	cullFace: {
		get: function () {
1497

W
WestLangley 已提交
1498 1499
			console.warn( 'THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.' );
			return undefined;
1500

M
Mr.doob 已提交
1501
		},
M
Mugen87 已提交
1502
		set: function ( /* cullFace */ ) {
1503

W
WestLangley 已提交
1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530
			console.warn( 'THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.' );

		}
	},
	renderReverseSided: {
		get: function () {

			console.warn( 'THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.' );
			return undefined;

		},
		set: function () {

			console.warn( 'THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.' );

		}
	},
	renderSingleSided: {
		get: function () {

			console.warn( 'THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.' );
			return undefined;

		},
		set: function () {

			console.warn( 'THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.' );
1531

M
Mr.doob 已提交
1532
		}
1533
	}
M
Mr.doob 已提交
1534

1535 1536
} );

M
Mr.doob 已提交
1537 1538
//

1539
Object.defineProperties( WebGLRenderTarget.prototype, {
M
Mr.doob 已提交
1540

M
Mr.doob 已提交
1541 1542
	wrapS: {
		get: function () {
1543

M
Mr.doob 已提交
1544 1545
			console.warn( 'THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS.' );
			return this.texture.wrapS;
1546

M
Mr.doob 已提交
1547 1548
		},
		set: function ( value ) {
1549

M
Mr.doob 已提交
1550 1551
			console.warn( 'THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS.' );
			this.texture.wrapS = value;
1552

M
Mr.doob 已提交
1553 1554 1555 1556
		}
	},
	wrapT: {
		get: function () {
1557

M
Mr.doob 已提交
1558 1559
			console.warn( 'THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT.' );
			return this.texture.wrapT;
1560

M
Mr.doob 已提交
1561 1562
		},
		set: function ( value ) {
1563

M
Mr.doob 已提交
1564 1565
			console.warn( 'THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT.' );
			this.texture.wrapT = value;
1566

M
Mr.doob 已提交
1567 1568 1569 1570
		}
	},
	magFilter: {
		get: function () {
1571

M
Mr.doob 已提交
1572 1573
			console.warn( 'THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter.' );
			return this.texture.magFilter;
1574

M
Mr.doob 已提交
1575 1576
		},
		set: function ( value ) {
1577

M
Mr.doob 已提交
1578 1579
			console.warn( 'THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter.' );
			this.texture.magFilter = value;
1580

M
Mr.doob 已提交
1581 1582 1583 1584
		}
	},
	minFilter: {
		get: function () {
1585

M
Mr.doob 已提交
1586 1587
			console.warn( 'THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter.' );
			return this.texture.minFilter;
1588

M
Mr.doob 已提交
1589 1590
		},
		set: function ( value ) {
1591

M
Mr.doob 已提交
1592 1593
			console.warn( 'THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter.' );
			this.texture.minFilter = value;
1594

M
Mr.doob 已提交
1595 1596 1597 1598
		}
	},
	anisotropy: {
		get: function () {
1599

M
Mr.doob 已提交
1600 1601
			console.warn( 'THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy.' );
			return this.texture.anisotropy;
1602

M
Mr.doob 已提交
1603 1604
		},
		set: function ( value ) {
1605

M
Mr.doob 已提交
1606 1607
			console.warn( 'THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy.' );
			this.texture.anisotropy = value;
1608

M
Mr.doob 已提交
1609 1610 1611 1612
		}
	},
	offset: {
		get: function () {
1613

M
Mr.doob 已提交
1614 1615
			console.warn( 'THREE.WebGLRenderTarget: .offset is now .texture.offset.' );
			return this.texture.offset;
1616

M
Mr.doob 已提交
1617 1618
		},
		set: function ( value ) {
1619

M
Mr.doob 已提交
1620 1621
			console.warn( 'THREE.WebGLRenderTarget: .offset is now .texture.offset.' );
			this.texture.offset = value;
1622

M
Mr.doob 已提交
1623 1624 1625 1626
		}
	},
	repeat: {
		get: function () {
1627

M
Mr.doob 已提交
1628 1629
			console.warn( 'THREE.WebGLRenderTarget: .repeat is now .texture.repeat.' );
			return this.texture.repeat;
1630

M
Mr.doob 已提交
1631 1632
		},
		set: function ( value ) {
1633

M
Mr.doob 已提交
1634 1635
			console.warn( 'THREE.WebGLRenderTarget: .repeat is now .texture.repeat.' );
			this.texture.repeat = value;
1636

M
Mr.doob 已提交
1637 1638 1639 1640
		}
	},
	format: {
		get: function () {
1641

M
Mr.doob 已提交
1642 1643
			console.warn( 'THREE.WebGLRenderTarget: .format is now .texture.format.' );
			return this.texture.format;
1644

M
Mr.doob 已提交
1645 1646
		},
		set: function ( value ) {
1647

M
Mr.doob 已提交
1648 1649
			console.warn( 'THREE.WebGLRenderTarget: .format is now .texture.format.' );
			this.texture.format = value;
1650

M
Mr.doob 已提交
1651 1652 1653 1654
		}
	},
	type: {
		get: function () {
1655

M
Mr.doob 已提交
1656 1657
			console.warn( 'THREE.WebGLRenderTarget: .type is now .texture.type.' );
			return this.texture.type;
1658

M
Mr.doob 已提交
1659 1660
		},
		set: function ( value ) {
1661

M
Mr.doob 已提交
1662 1663
			console.warn( 'THREE.WebGLRenderTarget: .type is now .texture.type.' );
			this.texture.type = value;
1664

M
Mr.doob 已提交
1665 1666 1667 1668
		}
	},
	generateMipmaps: {
		get: function () {
1669

M
Mr.doob 已提交
1670 1671
			console.warn( 'THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps.' );
			return this.texture.generateMipmaps;
1672

M
Mr.doob 已提交
1673 1674
		},
		set: function ( value ) {
1675

M
Mr.doob 已提交
1676 1677
			console.warn( 'THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps.' );
			this.texture.generateMipmaps = value;
M
Mr.doob 已提交
1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698

		}
	}

} );

//

Object.defineProperties( WebVRManager.prototype, {

	standing: {
		set: function ( /* value */ ) {

			console.warn( 'THREE.WebVRManager: .standing has been removed.' );

		}
	},
	userHeight: {
		set: function ( /* value */ ) {

			console.warn( 'THREE.WebVRManager: .userHeight has been removed.' );
1699 1700 1701 1702 1703 1704

		}
	}

} );

1705 1706
//

M
Mr.doob 已提交
1707
Audio.prototype.load = function ( file ) {
1708

M
Mr.doob 已提交
1709 1710 1711 1712
	console.warn( 'THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.' );
	var scope = this;
	var audioLoader = new AudioLoader();
	audioLoader.load( file, function ( buffer ) {
1713

M
Mr.doob 已提交
1714
		scope.setBuffer( buffer );
1715

M
Mr.doob 已提交
1716 1717
	} );
	return this;
1718

M
Mr.doob 已提交
1719
};
1720

M
Mr.doob 已提交
1721
AudioAnalyser.prototype.getData = function () {
1722

M
Mr.doob 已提交
1723 1724
	console.warn( 'THREE.AudioAnalyser: .getData() is now .getFrequencyData().' );
	return this.getFrequencyData();
1725

M
Mr.doob 已提交
1726
};
1727

1728 1729
//

W
WestLangley 已提交
1730 1731 1732 1733 1734 1735 1736 1737 1738
CubeCamera.prototype.updateCubeMap = function ( renderer, scene ) {

	console.warn( 'THREE.CubeCamera: .updateCubeMap() is now .update().' );
	return this.update( renderer, scene );

};

//

M
Mr.doob 已提交
1739
export var GeometryUtils = {
1740 1741 1742 1743 1744 1745

	merge: function ( geometry1, geometry2, materialIndexOffset ) {

		console.warn( 'THREE.GeometryUtils: .merge() has been moved to Geometry. Use geometry.merge( geometry2, matrix, materialIndexOffset ) instead.' );
		var matrix;

1746
		if ( geometry2.isMesh ) {
1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767

			geometry2.matrixAutoUpdate && geometry2.updateMatrix();

			matrix = geometry2.matrix;
			geometry2 = geometry2.geometry;

		}

		geometry1.merge( geometry2, matrix, materialIndexOffset );

	},

	center: function ( geometry ) {

		console.warn( 'THREE.GeometryUtils: .center() has been moved to Geometry. Use geometry.center() instead.' );
		return geometry.center();

	}

};

1768
ImageUtils.crossOrigin = undefined;
1769

1770
ImageUtils.loadTexture = function ( url, mapping, onLoad, onError ) {
1771

1772
	console.warn( 'THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.' );
1773

1774 1775
	var loader = new TextureLoader();
	loader.setCrossOrigin( this.crossOrigin );
1776

1777
	var texture = loader.load( url, onLoad, undefined, onError );
1778

1779
	if ( mapping ) texture.mapping = mapping;
1780

1781
	return texture;
1782

1783
};
1784

1785
ImageUtils.loadTextureCube = function ( urls, mapping, onLoad, onError ) {
1786

1787
	console.warn( 'THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.' );
1788

1789 1790
	var loader = new CubeTextureLoader();
	loader.setCrossOrigin( this.crossOrigin );
1791

1792
	var texture = loader.load( urls, onLoad, undefined, onError );
1793

1794
	if ( mapping ) texture.mapping = mapping;
1795

1796
	return texture;
1797

1798
};
1799

1800
ImageUtils.loadCompressedTexture = function () {
1801

1802
	console.error( 'THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.' );
1803

1804
};
1805

1806
ImageUtils.loadCompressedTextureCube = function () {
1807

1808
	console.error( 'THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.' );
1809 1810 1811 1812 1813

};

//

1814
export function Projector() {
M
Mr.doob 已提交
1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831

	console.error( 'THREE.Projector has been moved to /examples/js/renderers/Projector.js.' );

	this.projectVector = function ( vector, camera ) {

		console.warn( 'THREE.Projector: .projectVector() is now vector.project().' );
		vector.project( camera );

	};

	this.unprojectVector = function ( vector, camera ) {

		console.warn( 'THREE.Projector: .unprojectVector() is now vector.unproject().' );
		vector.unproject( camera );

	};

M
Mr.doob 已提交
1832
	this.pickingRay = function () {
M
Mr.doob 已提交
1833 1834 1835 1836 1837

		console.error( 'THREE.Projector: .pickingRay() is now raycaster.setFromCamera().' );

	};

1838
}
M
Mr.doob 已提交
1839

M
Mr.doob 已提交
1840 1841
//

1842
export function CanvasRenderer() {
M
Mr.doob 已提交
1843 1844 1845

	console.error( 'THREE.CanvasRenderer has been moved to /examples/js/renderers/CanvasRenderer.js' );

E
Eli Grey 已提交
1846
	this.domElement = document.createElementNS( 'http://www.w3.org/1999/xhtml', 'canvas' );
M
Mr.doob 已提交
1847 1848 1849 1850 1851
	this.clear = function () {};
	this.render = function () {};
	this.setClearColor = function () {};
	this.setSize = function () {};

1852
}
M
Mugen87 已提交
1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876

//

export var SceneUtils = {

	createMultiMaterialObject: function ( /* geometry, materials */ ) {

		console.error( 'THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js' );

	},

	detach: function ( /* child, parent, scene */ ) {

		console.error( 'THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js' );

	},

	attach: function ( /* child, scene, parent */ ) {

		console.error( 'THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js' );

	}

};
M
Mugen87 已提交
1877 1878 1879 1880 1881

//

export function LensFlare() {

M
Mr.doob 已提交
1882
	console.error( 'THREE.LensFlare has been moved to /examples/js/objects/Lensflare.js' );
M
Mugen87 已提交
1883 1884

}