|
@@ -2123,6 +2123,14 @@ class Color {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ *[ Symbol.iterator ]() {
|
|
|
+
|
|
|
+ yield this.r;
|
|
|
+ yield this.g;
|
|
|
+ yield this.b;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
Color.NAMES = _colorKeywords;
|
|
@@ -3580,13 +3588,15 @@ class WebGLMultipleRenderTargets extends WebGLRenderTarget {
|
|
|
|
|
|
this.depthBuffer = source.depthBuffer;
|
|
|
this.stencilBuffer = source.stencilBuffer;
|
|
|
- this.depthTexture = source.depthTexture;
|
|
|
+
|
|
|
+ if ( source.depthTexture !== null ) this.depthTexture = source.depthTexture.clone();
|
|
|
|
|
|
this.texture.length = 0;
|
|
|
|
|
|
for ( let i = 0, il = source.texture.length; i < il; i ++ ) {
|
|
|
|
|
|
this.texture[ i ] = source.texture[ i ].clone();
|
|
|
+ this.texture[ i ].isRenderTargetTexture = true;
|
|
|
|
|
|
}
|
|
|
|
|
@@ -4280,6 +4290,15 @@ class Quaternion {
|
|
|
|
|
|
_onChangeCallback() {}
|
|
|
|
|
|
+ *[ Symbol.iterator ]() {
|
|
|
+
|
|
|
+ yield this._x;
|
|
|
+ yield this._y;
|
|
|
+ yield this._z;
|
|
|
+ yield this._w;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
Quaternion.prototype.isQuaternion = true;
|
|
@@ -7458,6 +7477,15 @@ class Euler {
|
|
|
|
|
|
_onChangeCallback() {}
|
|
|
|
|
|
+ *[ Symbol.iterator ]() {
|
|
|
+
|
|
|
+ yield this._x;
|
|
|
+ yield this._y;
|
|
|
+ yield this._z;
|
|
|
+ yield this._order;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
Euler.prototype.isEuler = true;
|