提交 32c29931 编写于 作者: M Mr.doob

Updated builds.

上级 41500fe4
......@@ -18401,18 +18401,21 @@ Object.assign( THREE.XHRLoader.prototype, {
setPath: function ( value ) {
this.path = value;
return this;
},
setResponseType: function ( value ) {
this.responseType = value;
return this;
},
setWithCredentials: function ( value ) {
this.withCredentials = value;
return this;
}
......@@ -18516,12 +18519,14 @@ Object.assign( THREE.ImageLoader.prototype, {
setCrossOrigin: function ( value ) {
this.crossOrigin = value;
return this;
},
setPath: function ( value ) {
this.path = value;
return this;
}
......@@ -20055,12 +20060,14 @@ Object.assign( THREE.TextureLoader.prototype, {
setCrossOrigin: function ( value ) {
this.crossOrigin = value;
return this;
},
setPath: function ( value ) {
this.path = value;
return this;
}
......@@ -20123,12 +20130,14 @@ Object.assign( THREE.CubeTextureLoader.prototype, {
setCrossOrigin: function ( value ) {
this.crossOrigin = value;
return this;
},
setPath: function ( value ) {
this.path = value;
return this;
}
......@@ -20354,6 +20363,7 @@ Object.assign( THREE.CompressedTextureLoader.prototype, {
setPath: function ( value ) {
this.path = value;
return this;
}
......@@ -25683,12 +25693,6 @@ THREE.WebGLRenderer = function ( parameters ) {
var size = geometryAttribute.itemSize;
var buffer = objects.getAttributeBuffer( geometryAttribute );
if ( buffer === undefined ) {
console.error( objects, geometryAttribute );
}
if ( geometryAttribute instanceof THREE.InterleavedBufferAttribute ) {
var data = geometryAttribute.data;
......@@ -25906,16 +25910,27 @@ THREE.WebGLRenderer = function ( parameters ) {
//
var needsClear = this.autoClear || forceClear;
var background = scene.background;
if ( background === null ) {
glClearColor( _clearColor.r, _clearColor.g, _clearColor.b, _clearAlpha );
} else if ( background instanceof THREE.CubeTexture ) {
} else if ( background instanceof THREE.Color ) {
glClearColor( background.r, background.g, background.b, 1 );
}
backgroundCamera2.projectionMatrix = camera.projectionMatrix;
if ( this.autoClear || forceClear ) {
this.clear( this.autoClearColor, this.autoClearDepth, this.autoClearStencil );
}
if ( background instanceof THREE.CubeTexture ) {
backgroundCamera2.projectionMatrix.copy( camera.projectionMatrix );
backgroundCamera2.matrixWorld.extractRotation( camera.matrixWorld );
backgroundCamera2.matrixWorldInverse.getInverse( backgroundCamera2.matrixWorld );
......@@ -25925,28 +25940,12 @@ THREE.WebGLRenderer = function ( parameters ) {
_this.renderBufferDirect( backgroundCamera2, null, backgroundBoxMesh.geometry, backgroundBoxMesh.material, backgroundBoxMesh, null );
needsClear = false;
} else if ( background instanceof THREE.Texture ) {
backgroundPlaneMesh.material.map = background;
_this.renderBufferDirect( backgroundCamera, null, backgroundPlaneMesh.geometry, backgroundPlaneMesh.material, backgroundPlaneMesh, null );
needsClear = false;
} else if ( background instanceof THREE.Color ) {
glClearColor( background.r, background.g, background.b, 1 );
needsClear = true;
}
if ( needsClear ) {
this.clear( this.autoClearColor, this.autoClearDepth, this.autoClearStencil );
}
//
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册