@@ -18401,18 +18401,21 @@ Object.assign( THREE.XHRLoader.prototype, {
18401
18401
setPath: function ( value ) {
18402
18402
18403
18403
this.path = value;
18404
+ return this;
18404
18405
18405
18406
},
18406
18407
18407
18408
setResponseType: function ( value ) {
18408
18409
18409
18410
this.responseType = value;
18411
+ return this;
18410
18412
18411
18413
},
18412
18414
18413
18415
setWithCredentials: function ( value ) {
18414
18416
18415
18417
this.withCredentials = value;
18418
+ return this;
18416
18419
18417
18420
}
18418
18421
@@ -18516,12 +18519,14 @@ Object.assign( THREE.ImageLoader.prototype, {
18516
18519
setCrossOrigin: function ( value ) {
18517
18520
18518
18521
this.crossOrigin = value;
18522
+ return this;
18519
18523
18520
18524
},
18521
18525
18522
18526
setPath: function ( value ) {
18523
18527
18524
18528
this.path = value;
18529
+ return this;
18525
18530
18526
18531
}
18527
18532
@@ -20055,12 +20060,14 @@ Object.assign( THREE.TextureLoader.prototype, {
20055
20060
setCrossOrigin: function ( value ) {
20056
20061
20057
20062
this.crossOrigin = value;
20063
+ return this;
20058
20064
20059
20065
},
20060
20066
20061
20067
setPath: function ( value ) {
20062
20068
20063
20069
this.path = value;
20070
+ return this;
20064
20071
20065
20072
}
20066
20073
@@ -20123,12 +20130,14 @@ Object.assign( THREE.CubeTextureLoader.prototype, {
20123
20130
setCrossOrigin: function ( value ) {
20124
20131
20125
20132
this.crossOrigin = value;
20133
+ return this;
20126
20134
20127
20135
},
20128
20136
20129
20137
setPath: function ( value ) {
20130
20138
20131
20139
this.path = value;
20140
+ return this;
20132
20141
20133
20142
}
20134
20143
@@ -20354,6 +20363,7 @@ Object.assign( THREE.CompressedTextureLoader.prototype, {
20354
20363
setPath: function ( value ) {
20355
20364
20356
20365
this.path = value;
20366
+ return this;
20357
20367
20358
20368
}
20359
20369
@@ -25683,12 +25693,6 @@ THREE.WebGLRenderer = function ( parameters ) {
25683
25693
var size = geometryAttribute.itemSize;
25684
25694
var buffer = objects.getAttributeBuffer( geometryAttribute );
25685
25695
25686
- if ( buffer === undefined ) {
25687
-
25688
- console.error( objects, geometryAttribute );
25689
-
25690
- }
25691
-
25692
25696
if ( geometryAttribute instanceof THREE.InterleavedBufferAttribute ) {
25693
25697
25694
25698
var data = geometryAttribute.data;
@@ -25906,16 +25910,27 @@ THREE.WebGLRenderer = function ( parameters ) {
25906
25910
25907
25911
//
25908
25912
25909
- var needsClear = this.autoClear || forceClear;
25910
25913
var background = scene.background;
25911
25914
25912
25915
if ( background === null ) {
25913
25916
25914
25917
glClearColor( _clearColor.r, _clearColor.g, _clearColor.b, _clearAlpha );
25915
25918
25916
- } else if ( background instanceof THREE.CubeTexture ) {
25919
+ } else if ( background instanceof THREE.Color ) {
25920
+
25921
+ glClearColor( background.r, background.g, background.b, 1 );
25922
+
25923
+ }
25917
25924
25918
- backgroundCamera2.projectionMatrix = camera.projectionMatrix;
25925
+ if ( this.autoClear || forceClear ) {
25926
+
25927
+ this.clear( this.autoClearColor, this.autoClearDepth, this.autoClearStencil );
25928
+
25929
+ }
25930
+
25931
+ if ( background instanceof THREE.CubeTexture ) {
25932
+
25933
+ backgroundCamera2.projectionMatrix.copy( camera.projectionMatrix );
25919
25934
25920
25935
backgroundCamera2.matrixWorld.extractRotation( camera.matrixWorld );
25921
25936
backgroundCamera2.matrixWorldInverse.getInverse( backgroundCamera2.matrixWorld );
@@ -25925,28 +25940,12 @@ THREE.WebGLRenderer = function ( parameters ) {
25925
25940
25926
25941
_this.renderBufferDirect( backgroundCamera2, null, backgroundBoxMesh.geometry, backgroundBoxMesh.material, backgroundBoxMesh, null );
25927
25942
25928
- needsClear = false;
25929
-
25930
25943
} else if ( background instanceof THREE.Texture ) {
25931
25944
25932
25945
backgroundPlaneMesh.material.map = background;
25933
25946
25934
25947
_this.renderBufferDirect( backgroundCamera, null, backgroundPlaneMesh.geometry, backgroundPlaneMesh.material, backgroundPlaneMesh, null );
25935
25948
25936
- needsClear = false;
25937
-
25938
- } else if ( background instanceof THREE.Color ) {
25939
-
25940
- glClearColor( background.r, background.g, background.b, 1 );
25941
-
25942
- needsClear = true;
25943
-
25944
- }
25945
-
25946
- if ( needsClear ) {
25947
-
25948
- this.clear( this.autoClearColor, this.autoClearDepth, this.autoClearStencil );
25949
-
25950
25949
}
25951
25950
25952
25951
//
0 commit comments