|
@@ -1029,6 +1029,13 @@ class Vector2 {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ *[ Symbol.iterator ]() {
|
|
|
|
+
|
|
|
|
+ yield this.x;
|
|
|
|
+ yield this.y;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
Vector2.prototype.isVector2 = true;
|
|
Vector2.prototype.isVector2 = true;
|
|
@@ -2477,6 +2484,15 @@ class Vector4 {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ *[ Symbol.iterator ]() {
|
|
|
|
+
|
|
|
|
+ yield this.x;
|
|
|
|
+ yield this.y;
|
|
|
|
+ yield this.z;
|
|
|
|
+ yield this.w;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
Vector4.prototype.isVector4 = true;
|
|
Vector4.prototype.isVector4 = true;
|
|
@@ -4096,6 +4112,14 @@ class Vector3 {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ *[ Symbol.iterator ]() {
|
|
|
|
+
|
|
|
|
+ yield this.x;
|
|
|
|
+ yield this.y;
|
|
|
|
+ yield this.z;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
Vector3.prototype.isVector3 = true;
|
|
Vector3.prototype.isVector3 = true;
|
|
@@ -10472,31 +10496,7 @@ class BufferGeometry extends EventDispatcher {
|
|
|
|
|
|
clone() {
|
|
clone() {
|
|
|
|
|
|
- /*
|
|
|
|
- // Handle primitives
|
|
|
|
-
|
|
|
|
- const parameters = this.parameters;
|
|
|
|
-
|
|
|
|
- if ( parameters !== undefined ) {
|
|
|
|
-
|
|
|
|
- const values = [];
|
|
|
|
-
|
|
|
|
- for ( const key in parameters ) {
|
|
|
|
-
|
|
|
|
- values.push( parameters[ key ] );
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- const geometry = Object.create( this.constructor.prototype );
|
|
|
|
- this.constructor.apply( geometry, values );
|
|
|
|
- return geometry;
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
return new this.constructor().copy( this );
|
|
return new this.constructor().copy( this );
|
|
- */
|
|
|
|
-
|
|
|
|
- return new BufferGeometry().copy( this );
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -10601,6 +10601,10 @@ class BufferGeometry extends EventDispatcher {
|
|
|
|
|
|
this.userData = source.userData;
|
|
this.userData = source.userData;
|
|
|
|
|
|
|
|
+ // geometry generator parameters
|
|
|
|
+
|
|
|
|
+ if ( source.parameters !== undefined ) this.parameters = Object.assign( {}, source.parameters );
|
|
|
|
+
|
|
return this;
|
|
return this;
|
|
|
|
|
|
}
|
|
}
|
|
@@ -26611,7 +26615,7 @@ function WebGLRenderer( parameters = {} ) {
|
|
const encoding = ( _currentRenderTarget === null ) ? _this.outputEncoding : _currentRenderTarget.texture.encoding;
|
|
const encoding = ( _currentRenderTarget === null ) ? _this.outputEncoding : _currentRenderTarget.texture.encoding;
|
|
const envMap = ( material.isMeshStandardMaterial ? cubeuvmaps : cubemaps ).get( material.envMap || environment );
|
|
const envMap = ( material.isMeshStandardMaterial ? cubeuvmaps : cubemaps ).get( material.envMap || environment );
|
|
const vertexAlphas = material.vertexColors === true && !! object.geometry && !! object.geometry.attributes.color && object.geometry.attributes.color.itemSize === 4;
|
|
const vertexAlphas = material.vertexColors === true && !! object.geometry && !! object.geometry.attributes.color && object.geometry.attributes.color.itemSize === 4;
|
|
- const vertexTangents = !! object.geometry && !! object.geometry.attributes.tangent;
|
|
|
|
|
|
+ const vertexTangents = !! material.normalMap && !! object.geometry && !! object.geometry.attributes.tangent;
|
|
const morphTargets = !! object.geometry && !! object.geometry.morphAttributes.position;
|
|
const morphTargets = !! object.geometry && !! object.geometry.morphAttributes.position;
|
|
const morphNormals = !! object.geometry && !! object.geometry.morphAttributes.normal;
|
|
const morphNormals = !! object.geometry && !! object.geometry.morphAttributes.normal;
|
|
const morphTargetsCount = ( !! object.geometry && !! object.geometry.morphAttributes.position ) ? object.geometry.morphAttributes.position.length : 0;
|
|
const morphTargetsCount = ( !! object.geometry && !! object.geometry.morphAttributes.position ) ? object.geometry.morphAttributes.position.length : 0;
|
|
@@ -30031,7 +30035,7 @@ class ConeGeometry extends CylinderGeometry {
|
|
|
|
|
|
class PolyhedronGeometry extends BufferGeometry {
|
|
class PolyhedronGeometry extends BufferGeometry {
|
|
|
|
|
|
- constructor( vertices, indices, radius = 1, detail = 0 ) {
|
|
|
|
|
|
+ constructor( vertices = [], indices = [], radius = 1, detail = 0 ) {
|
|
|
|
|
|
super();
|
|
super();
|
|
|
|
|