Skip to content

Commit 32c2993

Browse files
committed
Updated builds.
1 parent 41500fe commit 32c2993

File tree

2 files changed

+50
-51
lines changed

2 files changed

+50
-51
lines changed

build/three.js

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18401,18 +18401,21 @@ Object.assign( THREE.XHRLoader.prototype, {
1840118401
setPath: function ( value ) {
1840218402

1840318403
this.path = value;
18404+
return this;
1840418405

1840518406
},
1840618407

1840718408
setResponseType: function ( value ) {
1840818409

1840918410
this.responseType = value;
18411+
return this;
1841018412

1841118413
},
1841218414

1841318415
setWithCredentials: function ( value ) {
1841418416

1841518417
this.withCredentials = value;
18418+
return this;
1841618419

1841718420
}
1841818421

@@ -18516,12 +18519,14 @@ Object.assign( THREE.ImageLoader.prototype, {
1851618519
setCrossOrigin: function ( value ) {
1851718520

1851818521
this.crossOrigin = value;
18522+
return this;
1851918523

1852018524
},
1852118525

1852218526
setPath: function ( value ) {
1852318527

1852418528
this.path = value;
18529+
return this;
1852518530

1852618531
}
1852718532

@@ -20055,12 +20060,14 @@ Object.assign( THREE.TextureLoader.prototype, {
2005520060
setCrossOrigin: function ( value ) {
2005620061

2005720062
this.crossOrigin = value;
20063+
return this;
2005820064

2005920065
},
2006020066

2006120067
setPath: function ( value ) {
2006220068

2006320069
this.path = value;
20070+
return this;
2006420071

2006520072
}
2006620073

@@ -20123,12 +20130,14 @@ Object.assign( THREE.CubeTextureLoader.prototype, {
2012320130
setCrossOrigin: function ( value ) {
2012420131

2012520132
this.crossOrigin = value;
20133+
return this;
2012620134

2012720135
},
2012820136

2012920137
setPath: function ( value ) {
2013020138

2013120139
this.path = value;
20140+
return this;
2013220141

2013320142
}
2013420143

@@ -20354,6 +20363,7 @@ Object.assign( THREE.CompressedTextureLoader.prototype, {
2035420363
setPath: function ( value ) {
2035520364

2035620365
this.path = value;
20366+
return this;
2035720367

2035820368
}
2035920369

@@ -25683,12 +25693,6 @@ THREE.WebGLRenderer = function ( parameters ) {
2568325693
var size = geometryAttribute.itemSize;
2568425694
var buffer = objects.getAttributeBuffer( geometryAttribute );
2568525695

25686-
if ( buffer === undefined ) {
25687-
25688-
console.error( objects, geometryAttribute );
25689-
25690-
}
25691-
2569225696
if ( geometryAttribute instanceof THREE.InterleavedBufferAttribute ) {
2569325697

2569425698
var data = geometryAttribute.data;
@@ -25906,16 +25910,27 @@ THREE.WebGLRenderer = function ( parameters ) {
2590625910

2590725911
//
2590825912

25909-
var needsClear = this.autoClear || forceClear;
2591025913
var background = scene.background;
2591125914

2591225915
if ( background === null ) {
2591325916

2591425917
glClearColor( _clearColor.r, _clearColor.g, _clearColor.b, _clearAlpha );
2591525918

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+
}
2591725924

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 );
2591925934

2592025935
backgroundCamera2.matrixWorld.extractRotation( camera.matrixWorld );
2592125936
backgroundCamera2.matrixWorldInverse.getInverse( backgroundCamera2.matrixWorld );
@@ -25925,28 +25940,12 @@ THREE.WebGLRenderer = function ( parameters ) {
2592525940

2592625941
_this.renderBufferDirect( backgroundCamera2, null, backgroundBoxMesh.geometry, backgroundBoxMesh.material, backgroundBoxMesh, null );
2592725942

25928-
needsClear = false;
25929-
2593025943
} else if ( background instanceof THREE.Texture ) {
2593125944

2593225945
backgroundPlaneMesh.material.map = background;
2593325946

2593425947
_this.renderBufferDirect( backgroundCamera, null, backgroundPlaneMesh.geometry, backgroundPlaneMesh.material, backgroundPlaneMesh, null );
2593525948

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-
2595025949
}
2595125950

2595225951
//

0 commit comments

Comments
 (0)