|
@@ -2,214 +2,189 @@
|
|
|
* @author mrdoob / http://mrdoob.com/
|
|
|
*/
|
|
|
|
|
|
-Object.defineProperties( THREE.Box2.prototype, {
|
|
|
- empty: {
|
|
|
- value: function () {
|
|
|
- console.warn( 'THREE.Box2: .empty() has been renamed to .isEmpty().' );
|
|
|
- return this.isEmpty();
|
|
|
- }
|
|
|
+Object.assign( THREE, {
|
|
|
+ Face4: function ( a, b, c, d, normal, color, materialIndex ) {
|
|
|
+ console.warn( 'THREE.Face4 has been removed. A THREE.Face3 will be created instead.' );
|
|
|
+ return new THREE.Face3( a, b, c, normal, color, materialIndex );
|
|
|
+ },
|
|
|
+ MeshFaceMaterial: THREE.MultiMaterial,
|
|
|
+ PointCloud: function ( geometry, material ) {
|
|
|
+ console.warn( 'THREE.PointCloud has been renamed to THREE.Points.' );
|
|
|
+ return new THREE.Points( geometry, material );
|
|
|
+ },
|
|
|
+ Particle: THREE.Sprite,
|
|
|
+ ParticleSystem: function ( geometry, material ) {
|
|
|
+ console.warn( 'THREE.ParticleSystem has been renamed to THREE.Points.' );
|
|
|
+ return new THREE.Points( geometry, material );
|
|
|
+ },
|
|
|
+ PointCloudMaterial: function ( parameters ) {
|
|
|
+ console.warn( 'THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial.' );
|
|
|
+ return new THREE.PointsMaterial( parameters );
|
|
|
+ },
|
|
|
+ ParticleBasicMaterial: function ( parameters ) {
|
|
|
+ console.warn( 'THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial.' );
|
|
|
+ return new THREE.PointsMaterial( parameters );
|
|
|
+ },
|
|
|
+ ParticleSystemMaterial: function ( parameters ) {
|
|
|
+ console.warn( 'THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial.' );
|
|
|
+ return new THREE.PointsMaterial( parameters );
|
|
|
+ },
|
|
|
+ Vertex: function ( x, y, z ) {
|
|
|
+ console.warn( 'THREE.Vertex has been removed. Use THREE.Vector3 instead.' );
|
|
|
+ return new THREE.Vector3( x, y, z );
|
|
|
+ }
|
|
|
+} );
|
|
|
+
|
|
|
+//
|
|
|
+
|
|
|
+Object.assign( THREE.Box2.prototype, {
|
|
|
+ empty: function () {
|
|
|
+ console.warn( 'THREE.Box2: .empty() has been renamed to .isEmpty().' );
|
|
|
+ return this.isEmpty();
|
|
|
},
|
|
|
- isIntersectionBox: {
|
|
|
- value: function ( box ) {
|
|
|
- console.warn( 'THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox().' );
|
|
|
- return this.intersectsBox( box );
|
|
|
- }
|
|
|
+ isIntersectionBox: function ( box ) {
|
|
|
+ console.warn( 'THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox().' );
|
|
|
+ return this.intersectsBox( box );
|
|
|
}
|
|
|
} );
|
|
|
|
|
|
-Object.defineProperties( THREE.Box3.prototype, {
|
|
|
- empty: {
|
|
|
- value: function () {
|
|
|
- console.warn( 'THREE.Box3: .empty() has been renamed to .isEmpty().' );
|
|
|
- return this.isEmpty();
|
|
|
- }
|
|
|
+Object.assign( THREE.Box3.prototype, {
|
|
|
+ empty: function () {
|
|
|
+ console.warn( 'THREE.Box3: .empty() has been renamed to .isEmpty().' );
|
|
|
+ return this.isEmpty();
|
|
|
},
|
|
|
- isIntersectionBox: {
|
|
|
- value: function ( box ) {
|
|
|
- console.warn( 'THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox().' );
|
|
|
- return this.intersectsBox( box );
|
|
|
- }
|
|
|
+ isIntersectionBox: function ( box ) {
|
|
|
+ console.warn( 'THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox().' );
|
|
|
+ return this.intersectsBox( box );
|
|
|
},
|
|
|
- isIntersectionSphere: {
|
|
|
- value: function ( sphere ) {
|
|
|
- console.warn( 'THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere().' );
|
|
|
- return this.intersectsSphere( sphere );
|
|
|
- }
|
|
|
+ isIntersectionSphere: function ( sphere ) {
|
|
|
+ console.warn( 'THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere().' );
|
|
|
+ return this.intersectsSphere( sphere );
|
|
|
}
|
|
|
} );
|
|
|
|
|
|
-Object.defineProperties( THREE.Matrix3.prototype, {
|
|
|
- multiplyVector3: {
|
|
|
- value: function ( vector ) {
|
|
|
- console.warn( 'THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead.' );
|
|
|
- return vector.applyMatrix3( this );
|
|
|
- }
|
|
|
+Object.assign( THREE.Matrix3.prototype, {
|
|
|
+ multiplyVector3: function ( vector ) {
|
|
|
+ console.warn( 'THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead.' );
|
|
|
+ return vector.applyMatrix3( this );
|
|
|
},
|
|
|
- multiplyVector3Array: {
|
|
|
- value: function ( a ) {
|
|
|
- console.warn( 'THREE.Matrix3: .multiplyVector3Array() has been renamed. Use matrix.applyToVector3Array( array ) instead.' );
|
|
|
- return this.applyToVector3Array( a );
|
|
|
- }
|
|
|
+ multiplyVector3Array: function ( a ) {
|
|
|
+ console.warn( 'THREE.Matrix3: .multiplyVector3Array() has been renamed. Use matrix.applyToVector3Array( array ) instead.' );
|
|
|
+ return this.applyToVector3Array( a );
|
|
|
}
|
|
|
} );
|
|
|
|
|
|
-Object.defineProperties( THREE.Matrix4.prototype, {
|
|
|
- extractPosition: {
|
|
|
- value: function ( m ) {
|
|
|
- console.warn( 'THREE.Matrix4: .extractPosition() has been renamed to .copyPosition().' );
|
|
|
- return this.copyPosition( m );
|
|
|
- }
|
|
|
+Object.assign( THREE.Matrix4.prototype, {
|
|
|
+ extractPosition: function ( m ) {
|
|
|
+ console.warn( 'THREE.Matrix4: .extractPosition() has been renamed to .copyPosition().' );
|
|
|
+ return this.copyPosition( m );
|
|
|
},
|
|
|
- setRotationFromQuaternion: {
|
|
|
- value: function ( q ) {
|
|
|
- console.warn( 'THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion().' );
|
|
|
- return this.makeRotationFromQuaternion( q );
|
|
|
- }
|
|
|
+ setRotationFromQuaternion: function ( q ) {
|
|
|
+ console.warn( 'THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion().' );
|
|
|
+ return this.makeRotationFromQuaternion( q );
|
|
|
},
|
|
|
- multiplyVector3: {
|
|
|
- value: function ( vector ) {
|
|
|
- console.warn( 'THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) or vector.applyProjection( matrix ) instead.' );
|
|
|
- return vector.applyProjection( this );
|
|
|
- }
|
|
|
+ multiplyVector3: function ( vector ) {
|
|
|
+ console.warn( 'THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) or vector.applyProjection( matrix ) instead.' );
|
|
|
+ return vector.applyProjection( this );
|
|
|
},
|
|
|
- multiplyVector4: {
|
|
|
- value: function ( vector ) {
|
|
|
- console.warn( 'THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead.' );
|
|
|
- return vector.applyMatrix4( this );
|
|
|
- }
|
|
|
+ multiplyVector4: function ( vector ) {
|
|
|
+ console.warn( 'THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead.' );
|
|
|
+ return vector.applyMatrix4( this );
|
|
|
},
|
|
|
- multiplyVector3Array: {
|
|
|
- value: function ( a ) {
|
|
|
- console.warn( 'THREE.Matrix4: .multiplyVector3Array() has been renamed. Use matrix.applyToVector3Array( array ) instead.' );
|
|
|
- return this.applyToVector3Array( a );
|
|
|
- }
|
|
|
+ multiplyVector3Array: function ( a ) {
|
|
|
+ console.warn( 'THREE.Matrix4: .multiplyVector3Array() has been renamed. Use matrix.applyToVector3Array( array ) instead.' );
|
|
|
+ return this.applyToVector3Array( a );
|
|
|
},
|
|
|
- rotateAxis: {
|
|
|
- value: function ( v ) {
|
|
|
- console.warn( 'THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead.' );
|
|
|
- v.transformDirection( this );
|
|
|
- }
|
|
|
+ rotateAxis: function ( v ) {
|
|
|
+ console.warn( 'THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead.' );
|
|
|
+ v.transformDirection( this );
|
|
|
},
|
|
|
- crossVector: {
|
|
|
- value: function ( vector ) {
|
|
|
- console.warn( 'THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead.' );
|
|
|
- return vector.applyMatrix4( this );
|
|
|
- }
|
|
|
+ crossVector: function ( vector ) {
|
|
|
+ console.warn( 'THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead.' );
|
|
|
+ return vector.applyMatrix4( this );
|
|
|
},
|
|
|
- translate: {
|
|
|
- value: function ( v ) {
|
|
|
- console.error( 'THREE.Matrix4: .translate() has been removed.' );
|
|
|
- }
|
|
|
+ translate: function ( v ) {
|
|
|
+ console.error( 'THREE.Matrix4: .translate() has been removed.' );
|
|
|
},
|
|
|
- rotateX: {
|
|
|
- value: function ( angle ) {
|
|
|
- console.error( 'THREE.Matrix4: .rotateX() has been removed.' );
|
|
|
- }
|
|
|
+ rotateX: function ( angle ) {
|
|
|
+ console.error( 'THREE.Matrix4: .rotateX() has been removed.' );
|
|
|
},
|
|
|
- rotateY: {
|
|
|
- value: function ( angle ) {
|
|
|
- console.error( 'THREE.Matrix4: .rotateY() has been removed.' );
|
|
|
- }
|
|
|
+ rotateY: function ( angle ) {
|
|
|
+ console.error( 'THREE.Matrix4: .rotateY() has been removed.' );
|
|
|
},
|
|
|
- rotateZ: {
|
|
|
- value: function ( angle ) {
|
|
|
- console.error( 'THREE.Matrix4: .rotateZ() has been removed.' );
|
|
|
- }
|
|
|
+ rotateZ: function ( angle ) {
|
|
|
+ console.error( 'THREE.Matrix4: .rotateZ() has been removed.' );
|
|
|
},
|
|
|
- rotateByAxis: {
|
|
|
- value: function ( axis, angle ) {
|
|
|
- console.error( 'THREE.Matrix4: .rotateByAxis() has been removed.' );
|
|
|
- }
|
|
|
+ rotateByAxis: function ( axis, angle ) {
|
|
|
+ console.error( 'THREE.Matrix4: .rotateByAxis() has been removed.' );
|
|
|
}
|
|
|
} );
|
|
|
|
|
|
-Object.defineProperties( THREE.Plane.prototype, {
|
|
|
- isIntersectionLine: {
|
|
|
- value: function ( line ) {
|
|
|
- console.warn( 'THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine().' );
|
|
|
- return this.intersectsLine( line );
|
|
|
- }
|
|
|
+Object.assign( THREE.Plane.prototype, {
|
|
|
+ isIntersectionLine: function ( line ) {
|
|
|
+ console.warn( 'THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine().' );
|
|
|
+ return this.intersectsLine( line );
|
|
|
}
|
|
|
} );
|
|
|
|
|
|
-Object.defineProperties( THREE.Quaternion.prototype, {
|
|
|
- multiplyVector3: {
|
|
|
- value: function ( vector ) {
|
|
|
- console.warn( 'THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead.' );
|
|
|
- return vector.applyQuaternion( this );
|
|
|
- }
|
|
|
+Object.assign( THREE.Quaternion.prototype, {
|
|
|
+ multiplyVector3: function ( vector ) {
|
|
|
+ console.warn( 'THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead.' );
|
|
|
+ return vector.applyQuaternion( this );
|
|
|
}
|
|
|
} );
|
|
|
|
|
|
-Object.defineProperties( THREE.Ray.prototype, {
|
|
|
- isIntersectionBox: {
|
|
|
- value: function ( box ) {
|
|
|
- console.warn( 'THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox().' );
|
|
|
- return this.intersectsBox( box );
|
|
|
- }
|
|
|
+Object.assign( THREE.Ray.prototype, {
|
|
|
+ isIntersectionBox: function ( box ) {
|
|
|
+ console.warn( 'THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox().' );
|
|
|
+ return this.intersectsBox( box );
|
|
|
},
|
|
|
- isIntersectionPlane: {
|
|
|
- value: function ( plane ) {
|
|
|
- console.warn( 'THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane().' );
|
|
|
- return this.intersectsPlane( plane );
|
|
|
- }
|
|
|
+ isIntersectionPlane: function ( plane ) {
|
|
|
+ console.warn( 'THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane().' );
|
|
|
+ return this.intersectsPlane( plane );
|
|
|
},
|
|
|
- isIntersectionSphere: {
|
|
|
- value: function ( sphere ) {
|
|
|
- console.warn( 'THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere().' );
|
|
|
- return this.intersectsSphere( sphere );
|
|
|
- }
|
|
|
+ isIntersectionSphere: function ( sphere ) {
|
|
|
+ console.warn( 'THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere().' );
|
|
|
+ return this.intersectsSphere( sphere );
|
|
|
}
|
|
|
} );
|
|
|
|
|
|
-Object.defineProperties( THREE.Vector3.prototype, {
|
|
|
- setEulerFromRotationMatrix: {
|
|
|
- value: function () {
|
|
|
- console.error( 'THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.' );
|
|
|
- }
|
|
|
+Object.assign( THREE.Vector3.prototype, {
|
|
|
+ setEulerFromRotationMatrix: function () {
|
|
|
+ console.error( 'THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.' );
|
|
|
},
|
|
|
- setEulerFromQuaternion: {
|
|
|
- value: function () {
|
|
|
- console.error( 'THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.' );
|
|
|
- }
|
|
|
+ setEulerFromQuaternion: function () {
|
|
|
+ console.error( 'THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.' );
|
|
|
},
|
|
|
- getPositionFromMatrix: {
|
|
|
- value: function ( m ) {
|
|
|
- console.warn( 'THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition().' );
|
|
|
- return this.setFromMatrixPosition( m );
|
|
|
- }
|
|
|
+ getPositionFromMatrix: function ( m ) {
|
|
|
+ console.warn( 'THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition().' );
|
|
|
+ return this.setFromMatrixPosition( m );
|
|
|
},
|
|
|
- getScaleFromMatrix: {
|
|
|
- value: function ( m ) {
|
|
|
- console.warn( 'THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale().' );
|
|
|
- return this.setFromMatrixScale( m );
|
|
|
- }
|
|
|
+ getScaleFromMatrix: function ( m ) {
|
|
|
+ console.warn( 'THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale().' );
|
|
|
+ return this.setFromMatrixScale( m );
|
|
|
},
|
|
|
- getColumnFromMatrix: {
|
|
|
- value: function ( index, matrix ) {
|
|
|
- console.warn( 'THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn().' );
|
|
|
- return this.setFromMatrixColumn( matrix, index );
|
|
|
- }
|
|
|
+ getColumnFromMatrix: function ( index, matrix ) {
|
|
|
+ console.warn( 'THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn().' );
|
|
|
+ return this.setFromMatrixColumn( matrix, index );
|
|
|
}
|
|
|
} );
|
|
|
|
|
|
//
|
|
|
|
|
|
-THREE.Face4 = function ( a, b, c, d, normal, color, materialIndex ) {
|
|
|
-
|
|
|
- console.warn( 'THREE.Face4 has been removed. A THREE.Face3 will be created instead.' );
|
|
|
- return new THREE.Face3( a, b, c, normal, color, materialIndex );
|
|
|
-
|
|
|
-};
|
|
|
-
|
|
|
-THREE.Vertex = function ( x, y, z ) {
|
|
|
-
|
|
|
- console.warn( 'THREE.Vertex has been removed. Use THREE.Vector3 instead.' );
|
|
|
- return new THREE.Vector3( x, y, z );
|
|
|
-
|
|
|
-};
|
|
|
-
|
|
|
-//
|
|
|
+Object.assign( THREE.Object3D.prototype, {
|
|
|
+ getChildByName: function ( name ) {
|
|
|
+ console.warn( 'THREE.Object3D: .getChildByName() has been renamed to .getObjectByName().' );
|
|
|
+ return this.getObjectByName( name );
|
|
|
+ },
|
|
|
+ renderDepth: function ( value ) {
|
|
|
+ console.warn( 'THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.' );
|
|
|
+ },
|
|
|
+ translate: function ( distance, axis ) {
|
|
|
+ console.warn( 'THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead.' );
|
|
|
+ return this.translateOnAxis( axis, distance );
|
|
|
+ }
|
|
|
+} );
|
|
|
|
|
|
Object.defineProperties( THREE.Object3D.prototype, {
|
|
|
eulerOrder: {
|
|
@@ -222,23 +197,6 @@ Object.defineProperties( THREE.Object3D.prototype, {
|
|
|
this.rotation.order = value;
|
|
|
}
|
|
|
},
|
|
|
- getChildByName: {
|
|
|
- value: function ( name ) {
|
|
|
- console.warn( 'THREE.Object3D: .getChildByName() has been renamed to .getObjectByName().' );
|
|
|
- return this.getObjectByName( name );
|
|
|
- }
|
|
|
- },
|
|
|
- renderDepth: {
|
|
|
- set: function ( value ) {
|
|
|
- console.warn( 'THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.' );
|
|
|
- }
|
|
|
- },
|
|
|
- translate: {
|
|
|
- value: function ( distance, axis ) {
|
|
|
- console.warn( 'THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead.' );
|
|
|
- return this.translateOnAxis( axis, distance );
|
|
|
- }
|
|
|
- },
|
|
|
useQuaternion: {
|
|
|
get: function () {
|
|
|
console.warn( 'THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.' );
|
|
@@ -249,9 +207,18 @@ Object.defineProperties( THREE.Object3D.prototype, {
|
|
|
}
|
|
|
} );
|
|
|
|
|
|
+Object.defineProperties( THREE.LOD.prototype, {
|
|
|
+ objects: {
|
|
|
+ get: function () {
|
|
|
+ console.warn( 'THREE.LOD: .objects has been renamed to .levels.' );
|
|
|
+ return this.levels;
|
|
|
+ }
|
|
|
+ }
|
|
|
+} );
|
|
|
+
|
|
|
//
|
|
|
|
|
|
-THREE.PerspectiveCamera.prototype.setLens = function( focalLength, filmGauge ) {
|
|
|
+THREE.PerspectiveCamera.prototype.setLens = function ( focalLength, filmGauge ) {
|
|
|
|
|
|
console.warn( "THREE.PerspectiveCamera.setLens is deprecated. " +
|
|
|
"Use .setFocalLength and .filmGauge for a photographic setup." );
|
|
@@ -263,25 +230,6 @@ THREE.PerspectiveCamera.prototype.setLens = function( focalLength, filmGauge ) {
|
|
|
|
|
|
//
|
|
|
|
|
|
-Object.defineProperties( THREE, {
|
|
|
- PointCloud: {
|
|
|
- value: function ( geometry, material ) {
|
|
|
- console.warn( 'THREE.PointCloud has been renamed to THREE.Points.' );
|
|
|
- return new THREE.Points( geometry, material );
|
|
|
- }
|
|
|
- },
|
|
|
- ParticleSystem: {
|
|
|
- value: function ( geometry, material ) {
|
|
|
- console.warn( 'THREE.ParticleSystem has been renamed to THREE.Points.' );
|
|
|
- return new THREE.Points( geometry, material );
|
|
|
- }
|
|
|
- }
|
|
|
-} );
|
|
|
-
|
|
|
-THREE.Particle = THREE.Sprite;
|
|
|
-
|
|
|
-//
|
|
|
-
|
|
|
Object.defineProperties( THREE.Light.prototype, {
|
|
|
onlyShadow: {
|
|
|
set: function ( value ) {
|
|
@@ -371,6 +319,30 @@ Object.defineProperties( THREE.BufferAttribute.prototype, {
|
|
|
}
|
|
|
} );
|
|
|
|
|
|
+Object.assign( THREE.BufferGeometry.prototype, {
|
|
|
+ addIndex: function ( index ) {
|
|
|
+ console.warn( 'THREE.BufferGeometry: .addIndex() has been renamed to .setIndex().' );
|
|
|
+ this.setIndex( index );
|
|
|
+ },
|
|
|
+ addDrawCall: function ( start, count, indexOffset ) {
|
|
|
+ if ( indexOffset !== undefined ) {
|
|
|
+ console.warn( 'THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset.' );
|
|
|
+ }
|
|
|
+ console.warn( 'THREE.BufferGeometry: .addDrawCall() is now .addGroup().' );
|
|
|
+ this.addGroup( start, count );
|
|
|
+ },
|
|
|
+ clearDrawCalls: function () {
|
|
|
+ console.warn( 'THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups().' );
|
|
|
+ this.clearGroups();
|
|
|
+ },
|
|
|
+ computeTangents: function () {
|
|
|
+ console.warn( 'THREE.BufferGeometry: .computeTangents() has been removed.' );
|
|
|
+ },
|
|
|
+ computeOffsets: function () {
|
|
|
+ console.warn( 'THREE.BufferGeometry: .computeOffsets() has been removed.' );
|
|
|
+ }
|
|
|
+} );
|
|
|
+
|
|
|
Object.defineProperties( THREE.BufferGeometry.prototype, {
|
|
|
drawcalls: {
|
|
|
get: function () {
|
|
@@ -383,37 +355,6 @@ Object.defineProperties( THREE.BufferGeometry.prototype, {
|
|
|
console.warn( 'THREE.BufferGeometry: .offsets has been renamed to .groups.' );
|
|
|
return this.groups;
|
|
|
}
|
|
|
- },
|
|
|
- addIndex: {
|
|
|
- value: function ( index ) {
|
|
|
- console.warn( 'THREE.BufferGeometry: .addIndex() has been renamed to .setIndex().' );
|
|
|
- this.setIndex( index );
|
|
|
- }
|
|
|
- },
|
|
|
- addDrawCall: {
|
|
|
- value: function ( start, count, indexOffset ) {
|
|
|
- if ( indexOffset !== undefined ) {
|
|
|
- console.warn( 'THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset.' );
|
|
|
- }
|
|
|
- console.warn( 'THREE.BufferGeometry: .addDrawCall() is now .addGroup().' );
|
|
|
- this.addGroup( start, count );
|
|
|
- }
|
|
|
- },
|
|
|
- clearDrawCalls: {
|
|
|
- value: function () {
|
|
|
- console.warn( 'THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups().' );
|
|
|
- this.clearGroups();
|
|
|
- }
|
|
|
- },
|
|
|
- computeTangents: {
|
|
|
- value: function () {
|
|
|
- console.warn( 'THREE.BufferGeometry: .computeTangents() has been removed.' );
|
|
|
- }
|
|
|
- },
|
|
|
- computeOffsets: {
|
|
|
- value: function () {
|
|
|
- console.warn( 'THREE.BufferGeometry: .computeOffsets() has been removed.' );
|
|
|
- }
|
|
|
}
|
|
|
} );
|
|
|
|
|
@@ -436,27 +377,6 @@ Object.defineProperties( THREE.Material.prototype, {
|
|
|
}
|
|
|
} );
|
|
|
|
|
|
-Object.defineProperties( THREE, {
|
|
|
- PointCloudMaterial: {
|
|
|
- value: function ( parameters ) {
|
|
|
- console.warn( 'THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial.' );
|
|
|
- return new THREE.PointsMaterial( parameters );
|
|
|
- }
|
|
|
- },
|
|
|
- ParticleBasicMaterial: {
|
|
|
- value: function ( parameters ) {
|
|
|
- console.warn( 'THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial.' );
|
|
|
- return new THREE.PointsMaterial( parameters );
|
|
|
- }
|
|
|
- },
|
|
|
- ParticleSystemMaterial:{
|
|
|
- value: function ( parameters ) {
|
|
|
- console.warn( 'THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial.' );
|
|
|
- return new THREE.PointsMaterial( parameters );
|
|
|
- }
|
|
|
- }
|
|
|
-} );
|
|
|
-
|
|
|
Object.defineProperties( THREE.MeshPhongMaterial.prototype, {
|
|
|
metal: {
|
|
|
get: function () {
|
|
@@ -486,11 +406,11 @@ Object.defineProperties( THREE.ShaderMaterial.prototype, {
|
|
|
|
|
|
THREE.EventDispatcher.prototype = Object.assign( Object.create( {
|
|
|
|
|
|
- // Note: Extra base ensures these properties are not 'assign'ed.
|
|
|
+ // Note: Extra base ensures these properties are not 'assign'ed.
|
|
|
|
|
|
constructor: THREE.EventDispatcher,
|
|
|
|
|
|
- apply: function( target ) {
|
|
|
+ apply: function ( target ) {
|
|
|
|
|
|
console.warn( "THREE.EventDispatcher: .apply is deprecated, " +
|
|
|
"just inherit or Object.assign the prototype to mix-in." );
|
|
@@ -503,80 +423,57 @@ THREE.EventDispatcher.prototype = Object.assign( Object.create( {
|
|
|
|
|
|
//
|
|
|
|
|
|
-Object.defineProperties( THREE.WebGLRenderer.prototype, {
|
|
|
- supportsFloatTextures: {
|
|
|
- value: function () {
|
|
|
- console.warn( 'THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( \'OES_texture_float\' ).' );
|
|
|
- return this.extensions.get( 'OES_texture_float' );
|
|
|
- }
|
|
|
- },
|
|
|
- supportsHalfFloatTextures: {
|
|
|
- value: function () {
|
|
|
- console.warn( 'THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( \'OES_texture_half_float\' ).' );
|
|
|
- return this.extensions.get( 'OES_texture_half_float' );
|
|
|
- }
|
|
|
+Object.assign( THREE.WebGLRenderer.prototype, {
|
|
|
+ supportsFloatTextures: function () {
|
|
|
+ console.warn( 'THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( \'OES_texture_float\' ).' );
|
|
|
+ return this.extensions.get( 'OES_texture_float' );
|
|
|
},
|
|
|
- supportsStandardDerivatives: {
|
|
|
- value: function () {
|
|
|
- console.warn( 'THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( \'OES_standard_derivatives\' ).' );
|
|
|
- return this.extensions.get( 'OES_standard_derivatives' );
|
|
|
- }
|
|
|
+ supportsHalfFloatTextures: function () {
|
|
|
+ console.warn( 'THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( \'OES_texture_half_float\' ).' );
|
|
|
+ return this.extensions.get( 'OES_texture_half_float' );
|
|
|
},
|
|
|
- supportsCompressedTextureS3TC: {
|
|
|
- value: function () {
|
|
|
- console.warn( 'THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( \'WEBGL_compressed_texture_s3tc\' ).' );
|
|
|
- return this.extensions.get( 'WEBGL_compressed_texture_s3tc' );
|
|
|
- }
|
|
|
+ supportsStandardDerivatives: function () {
|
|
|
+ console.warn( 'THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( \'OES_standard_derivatives\' ).' );
|
|
|
+ return this.extensions.get( 'OES_standard_derivatives' );
|
|
|
},
|
|
|
- supportsCompressedTexturePVRTC: {
|
|
|
- value: function () {
|
|
|
- console.warn( 'THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( \'WEBGL_compressed_texture_pvrtc\' ).' );
|
|
|
- return this.extensions.get( 'WEBGL_compressed_texture_pvrtc' );
|
|
|
- }
|
|
|
+ supportsCompressedTextureS3TC: function () {
|
|
|
+ console.warn( 'THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( \'WEBGL_compressed_texture_s3tc\' ).' );
|
|
|
+ return this.extensions.get( 'WEBGL_compressed_texture_s3tc' );
|
|
|
},
|
|
|
- supportsBlendMinMax: {
|
|
|
- value: function () {
|
|
|
- console.warn( 'THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( \'EXT_blend_minmax\' ).' );
|
|
|
- return this.extensions.get( 'EXT_blend_minmax' );
|
|
|
- }
|
|
|
+ supportsCompressedTexturePVRTC: function () {
|
|
|
+ console.warn( 'THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( \'WEBGL_compressed_texture_pvrtc\' ).' );
|
|
|
+ return this.extensions.get( 'WEBGL_compressed_texture_pvrtc' );
|
|
|
},
|
|
|
- supportsVertexTextures: {
|
|
|
- value: function () {
|
|
|
- return this.capabilities.vertexTextures;
|
|
|
- }
|
|
|
+ supportsBlendMinMax: function () {
|
|
|
+ console.warn( 'THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( \'EXT_blend_minmax\' ).' );
|
|
|
+ return this.extensions.get( 'EXT_blend_minmax' );
|
|
|
},
|
|
|
- supportsInstancedArrays: {
|
|
|
- value: function () {
|
|
|
- console.warn( 'THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( \'ANGLE_instanced_arrays\' ).' );
|
|
|
- return this.extensions.get( 'ANGLE_instanced_arrays' );
|
|
|
- }
|
|
|
+ supportsVertexTextures: function () {
|
|
|
+ return this.capabilities.vertexTextures;
|
|
|
},
|
|
|
- enableScissorTest: {
|
|
|
- value: function ( boolean ) {
|
|
|
- console.warn( 'THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest().' );
|
|
|
- this.setScissorTest( boolean );
|
|
|
- }
|
|
|
+ supportsInstancedArrays: function () {
|
|
|
+ console.warn( 'THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( \'ANGLE_instanced_arrays\' ).' );
|
|
|
+ return this.extensions.get( 'ANGLE_instanced_arrays' );
|
|
|
},
|
|
|
- initMaterial: {
|
|
|
- value: function () {
|
|
|
- console.warn( 'THREE.WebGLRenderer: .initMaterial() has been removed.' );
|
|
|
- }
|
|
|
+ enableScissorTest: function ( boolean ) {
|
|
|
+ console.warn( 'THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest().' );
|
|
|
+ this.setScissorTest( boolean );
|
|
|
},
|
|
|
- addPrePlugin: {
|
|
|
- value: function () {
|
|
|
- console.warn( 'THREE.WebGLRenderer: .addPrePlugin() has been removed.' );
|
|
|
- }
|
|
|
+ initMaterial: function () {
|
|
|
+ console.warn( 'THREE.WebGLRenderer: .initMaterial() has been removed.' );
|
|
|
},
|
|
|
- addPostPlugin: {
|
|
|
- value: function () {
|
|
|
- console.warn( 'THREE.WebGLRenderer: .addPostPlugin() has been removed.' );
|
|
|
- }
|
|
|
+ addPrePlugin: function () {
|
|
|
+ console.warn( 'THREE.WebGLRenderer: .addPrePlugin() has been removed.' );
|
|
|
},
|
|
|
- updateShadowMap: {
|
|
|
- value: function () {
|
|
|
- console.warn( 'THREE.WebGLRenderer: .updateShadowMap() has been removed.' );
|
|
|
- }
|
|
|
+ addPostPlugin: function () {
|
|
|
+ console.warn( 'THREE.WebGLRenderer: .addPostPlugin() has been removed.' );
|
|
|
},
|
|
|
+ updateShadowMap: function () {
|
|
|
+ console.warn( 'THREE.WebGLRenderer: .updateShadowMap() has been removed.' );
|
|
|
+ }
|
|
|
+} );
|
|
|
+
|
|
|
+Object.defineProperties( THREE.WebGLRenderer.prototype, {
|
|
|
shadowMapEnabled: {
|
|
|
get: function () {
|
|
|
return this.shadowMap.enabled;
|
|
@@ -606,14 +503,16 @@ Object.defineProperties( THREE.WebGLRenderer.prototype, {
|
|
|
}
|
|
|
} );
|
|
|
|
|
|
-Object.defineProperty( THREE.WebGLShadowMap.prototype, 'cullFace', {
|
|
|
- set: function( cullFace ) {
|
|
|
- var value = ( cullFace !== THREE.CullFaceBack );
|
|
|
- console.warn( "WebGLRenderer: .shadowMap.cullFace is deprecated. Set .shadowMap.renderReverseSided to " + value + "." );
|
|
|
- this.renderReverseSided = value;
|
|
|
- },
|
|
|
- get: function() {
|
|
|
- return this.renderReverseSided ? THREE.CullFaceFront : THREE.CullFaceBack;
|
|
|
+Object.defineProperties( THREE.WebGLShadowMap.prototype, {
|
|
|
+ cullFace: {
|
|
|
+ get: function () {
|
|
|
+ return this.renderReverseSided ? THREE.CullFaceFront : THREE.CullFaceBack;
|
|
|
+ },
|
|
|
+ set: function ( cullFace ) {
|
|
|
+ var value = ( cullFace !== THREE.CullFaceBack );
|
|
|
+ console.warn( "WebGLRenderer: .shadowMap.cullFace is deprecated. Set .shadowMap.renderReverseSided to " + value + "." );
|
|
|
+ this.renderReverseSided = value;
|
|
|
+ }
|
|
|
}
|
|
|
} );
|
|
|
|
|
@@ -724,36 +623,22 @@ Object.defineProperties( THREE.WebGLRenderTarget.prototype, {
|
|
|
|
|
|
//
|
|
|
|
|
|
-Object.defineProperties( THREE.Audio.prototype, {
|
|
|
- load: {
|
|
|
- value: function ( file ) {
|
|
|
-
|
|
|
- console.warn( 'THREE.Audio: .load has been deprecated. Please use THREE.AudioLoader.' );
|
|
|
-
|
|
|
- var scope = this;
|
|
|
-
|
|
|
- var audioLoader = new THREE.AudioLoader();
|
|
|
-
|
|
|
- audioLoader.load( file, function ( buffer ) {
|
|
|
-
|
|
|
- scope.setBuffer( buffer );
|
|
|
-
|
|
|
- } );
|
|
|
-
|
|
|
- return this;
|
|
|
-
|
|
|
- }
|
|
|
+Object.assign( THREE.Audio.prototype, {
|
|
|
+ load: function ( file ) {
|
|
|
+ console.warn( 'THREE.Audio: .load has been deprecated. Please use THREE.AudioLoader.' );
|
|
|
+ var scope = this;
|
|
|
+ var audioLoader = new THREE.AudioLoader();
|
|
|
+ audioLoader.load( file, function ( buffer ) {
|
|
|
+ scope.setBuffer( buffer );
|
|
|
+ } );
|
|
|
+ return this;
|
|
|
}
|
|
|
} );
|
|
|
|
|
|
-Object.defineProperties( THREE.AudioAnalyser.prototype, {
|
|
|
- getData: {
|
|
|
- value: function ( file ) {
|
|
|
-
|
|
|
- console.warn( 'THREE.AudioAnalyser: .getData() is now .getFrequencyData().' );
|
|
|
- return this.getFrequencyData();
|
|
|
-
|
|
|
- }
|
|
|
+Object.assign( THREE.AudioAnalyser.prototype, {
|
|
|
+ getData: function ( file ) {
|
|
|
+ console.warn( 'THREE.AudioAnalyser: .getData() is now .getFrequencyData().' );
|
|
|
+ return this.getFrequencyData();
|
|
|
}
|
|
|
} );
|
|
|
|
|
@@ -878,20 +763,3 @@ THREE.CanvasRenderer = function () {
|
|
|
this.setSize = function () {};
|
|
|
|
|
|
};
|
|
|
-
|
|
|
-//
|
|
|
-
|
|
|
-THREE.MeshFaceMaterial = THREE.MultiMaterial;
|
|
|
-
|
|
|
-//
|
|
|
-
|
|
|
-Object.defineProperties( THREE.LOD.prototype, {
|
|
|
- objects: {
|
|
|
- get: function () {
|
|
|
-
|
|
|
- console.warn( 'THREE.LOD: .objects has been renamed to .levels.' );
|
|
|
- return this.levels;
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
-} );
|