Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
810bc8b3
T
three.js
项目概览
车家大少爷
/
three.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
three.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
810bc8b3
编写于
12月 12, 2019
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updated builds.
上级
3cc44aa0
变更
3
展开全部
显示空白变更内容
内联
并排
Showing
3 changed file
with
783 addition
and
802 deletion
+783
-802
build/three.js
build/three.js
+37
-46
build/three.min.js
build/three.min.js
+709
-710
build/three.module.js
build/three.module.js
+37
-46
未找到文件。
build/three.js
浏览文件 @
810bc8b3
...
...
@@ -23165,35 +23165,6 @@
this.dispose = function () {};
// DEPRECATED
this.getStandingMatrix = function () {
console.warn( 'THREE.WebXRManager: getStandingMatrix() is no longer needed.' );
return new Matrix4();
};
this.getDevice = function () {
console.warn( 'THREE.WebXRManager: getDevice() has been deprecated.' );
};
this.setDevice = function () {
console.warn( 'THREE.WebXRManager: setDevice() has been deprecated.' );
};
this.setFrameOfReferenceType = function () {
console.warn( 'THREE.WebXRManager: setFrameOfReferenceType() has been deprecated.' );
};
this.submitFrame = function () {};
}
Object.assign( WebXRManager.prototype, EventDispatcher.prototype );
...
...
@@ -26161,6 +26132,8 @@
* @author benaadams / https://twitter.com/ben_a_adams
*/
var _vector$7 = new Vector3();
function InterleavedBufferAttribute( interleavedBuffer, itemSize, offset, normalized ) {
this.data = interleavedBuffer;
...
...
@@ -26199,6 +26172,24 @@
isInterleavedBufferAttribute: true,
applyMatrix4: function ( m ) {
for ( var i = 0, l = this.data.count; i < l; i ++ ) {
_vector$7.x = this.getX( i );
_vector$7.y = this.getY( i );
_vector$7.z = this.getZ( i );
_vector$7.applyMatrix4( m );
this.setXYZ( i, _vector$7.x, _vector$7.y, _vector$7.z );
}
return this;
},
setX: function ( index, x ) {
this.data.array[ index * this.data.stride + this.offset ] = x;
...
...
@@ -45457,7 +45448,7 @@
* @author bhouston / http://clara.io
*/
var _vector$
7
= new Vector2();
var _vector$
8
= new Vector2();
function Box2( min, max ) {
...
...
@@ -45493,7 +45484,7 @@
setFromCenterAndSize: function ( center, size ) {
var halfSize = _vector$
7
.copy( size ).multiplyScalar( 0.5 );
var halfSize = _vector$
8
.copy( size ).multiplyScalar( 0.5 );
this.min.copy( center ).sub( halfSize );
this.max.copy( center ).add( halfSize );
...
...
@@ -45643,7 +45634,7 @@
distanceToPoint: function ( point ) {
var clampedPoint = _vector$
7
.copy( point ).clamp( this.min, this.max );
var clampedPoint = _vector$
8
.copy( point ).clamp( this.min, this.max );
return clampedPoint.sub( point ).length();
},
...
...
@@ -46082,7 +46073,7 @@
* @author WestLangley / http://github.com/WestLangley
*/
var _vector$
8
= new Vector3();
var _vector$
9
= new Vector3();
function SpotLightHelper( light, color ) {
...
...
@@ -46148,9 +46139,9 @@
this.cone.scale.set( coneWidth, coneWidth, coneLength );
_vector$
8
.setFromMatrixPosition( this.light.target.matrixWorld );
_vector$
9
.setFromMatrixPosition( this.light.target.matrixWorld );
this.cone.lookAt( _vector$
8
);
this.cone.lookAt( _vector$
9
);
if ( this.color !== undefined ) {
...
...
@@ -46172,7 +46163,7 @@
* @author Mugen87 / https://github.com/Mugen87
*/
var _vector$
9
= new Vector3();
var _vector$
a
= new Vector3();
var _boneMatrix = new Matrix4();
var _matrixWorldInv = new Matrix4();
...
...
@@ -46257,12 +46248,12 @@
if ( bone.parent && bone.parent.isBone ) {
_boneMatrix.multiplyMatrices( _matrixWorldInv, bone.matrixWorld );
_vector$
9
.setFromMatrixPosition( _boneMatrix );
position.setXYZ( j, _vector$
9.x, _vector$9.y, _vector$9
.z );
_vector$
a
.setFromMatrixPosition( _boneMatrix );
position.setXYZ( j, _vector$
a.x, _vector$a.y, _vector$a
.z );
_boneMatrix.multiplyMatrices( _matrixWorldInv, bone.parent.matrixWorld );
_vector$
9
.setFromMatrixPosition( _boneMatrix );
position.setXYZ( j + 1, _vector$
9.x, _vector$9.y, _vector$9
.z );
_vector$
a
.setFromMatrixPosition( _boneMatrix );
position.setXYZ( j + 1, _vector$
a.x, _vector$a.y, _vector$a
.z );
j += 2;
...
...
@@ -46444,7 +46435,7 @@
* @author Mugen87 / https://github.com/Mugen87
*/
var _vector$
a
= new Vector3();
var _vector$
b
= new Vector3();
var _color1 = new Color();
var _color2 = new Color();
...
...
@@ -46514,7 +46505,7 @@
}
mesh.lookAt( _vector$
a
.setFromMatrixPosition( this.light.matrixWorld ).negate() );
mesh.lookAt( _vector$
b
.setFromMatrixPosition( this.light.matrixWorld ).negate() );
};
...
...
@@ -47113,7 +47104,7 @@
* http://evanw.github.com/lightgl.js/tests/shadowmap.html
*/
var _vector$
b
= new Vector3();
var _vector$
c
= new Vector3();
var _camera = new Camera();
function CameraHelper( camera ) {
...
...
@@ -47278,7 +47269,7 @@
function setPoint( point, pointMap, geometry, camera, x, y, z ) {
_vector$
b
.set( x, y, z ).unproject( camera );
_vector$
c
.set( x, y, z ).unproject( camera );
var points = pointMap[ point ];
...
...
@@ -47288,7 +47279,7 @@
for ( var i = 0, l = points.length; i < l; i ++ ) {
position.setXYZ( points[ i ], _vector$
b.x, _vector$b.y, _vector$b
.z );
position.setXYZ( points[ i ], _vector$
c.x, _vector$c.y, _vector$c
.z );
}
...
...
@@ -49290,7 +49281,7 @@
vr: {
get: function () {
console.warn( 'THREE.WebGLRenderer: .vr has been re
moved. Use .xr instead.
' );
console.warn( 'THREE.WebGLRenderer: .vr has been re
named to .xr
' );
return this.xr;
}
build/three.min.js
浏览文件 @
810bc8b3
此差异已折叠。
点击以展开。
build/three.module.js
浏览文件 @
810bc8b3
...
...
@@ -23157,35 +23157,6 @@ function WebXRManager( renderer, gl ) {
this.dispose = function () {};
// DEPRECATED
this.getStandingMatrix = function () {
console.warn( 'THREE.WebXRManager: getStandingMatrix() is no longer needed.' );
return new Matrix4();
};
this.getDevice = function () {
console.warn( 'THREE.WebXRManager: getDevice() has been deprecated.' );
};
this.setDevice = function () {
console.warn( 'THREE.WebXRManager: setDevice() has been deprecated.' );
};
this.setFrameOfReferenceType = function () {
console.warn( 'THREE.WebXRManager: setFrameOfReferenceType() has been deprecated.' );
};
this.submitFrame = function () {};
}
Object.assign( WebXRManager.prototype, EventDispatcher.prototype );
...
...
@@ -26153,6 +26124,8 @@ Object.assign( InterleavedBuffer.prototype, {
* @author benaadams / https://twitter.com/ben_a_adams
*/
var _vector$7 = new Vector3();
function InterleavedBufferAttribute( interleavedBuffer, itemSize, offset, normalized ) {
this.data = interleavedBuffer;
...
...
@@ -26191,6 +26164,24 @@ Object.assign( InterleavedBufferAttribute.prototype, {
isInterleavedBufferAttribute: true,
applyMatrix4: function ( m ) {
for ( var i = 0, l = this.data.count; i < l; i ++ ) {
_vector$7.x = this.getX( i );
_vector$7.y = this.getY( i );
_vector$7.z = this.getZ( i );
_vector$7.applyMatrix4( m );
this.setXYZ( i, _vector$7.x, _vector$7.y, _vector$7.z );
}
return this;
},
setX: function ( index, x ) {
this.data.array[ index * this.data.stride + this.offset ] = x;
...
...
@@ -45449,7 +45440,7 @@ Object.assign( Cylindrical.prototype, {
* @author bhouston / http://clara.io
*/
var _vector$
7
= new Vector2();
var _vector$
8
= new Vector2();
function Box2( min, max ) {
...
...
@@ -45485,7 +45476,7 @@ Object.assign( Box2.prototype, {
setFromCenterAndSize: function ( center, size ) {
var halfSize = _vector$
7
.copy( size ).multiplyScalar( 0.5 );
var halfSize = _vector$
8
.copy( size ).multiplyScalar( 0.5 );
this.min.copy( center ).sub( halfSize );
this.max.copy( center ).add( halfSize );
...
...
@@ -45635,7 +45626,7 @@ Object.assign( Box2.prototype, {
distanceToPoint: function ( point ) {
var clampedPoint = _vector$
7
.copy( point ).clamp( this.min, this.max );
var clampedPoint = _vector$
8
.copy( point ).clamp( this.min, this.max );
return clampedPoint.sub( point ).length();
},
...
...
@@ -46074,7 +46065,7 @@ VertexTangentsHelper.prototype.update = function () {
* @author WestLangley / http://github.com/WestLangley
*/
var _vector$
8
= new Vector3();
var _vector$
9
= new Vector3();
function SpotLightHelper( light, color ) {
...
...
@@ -46140,9 +46131,9 @@ SpotLightHelper.prototype.update = function () {
this.cone.scale.set( coneWidth, coneWidth, coneLength );
_vector$
8
.setFromMatrixPosition( this.light.target.matrixWorld );
_vector$
9
.setFromMatrixPosition( this.light.target.matrixWorld );
this.cone.lookAt( _vector$
8
);
this.cone.lookAt( _vector$
9
);
if ( this.color !== undefined ) {
...
...
@@ -46164,7 +46155,7 @@ SpotLightHelper.prototype.update = function () {
* @author Mugen87 / https://github.com/Mugen87
*/
var _vector$
9
= new Vector3();
var _vector$
a
= new Vector3();
var _boneMatrix = new Matrix4();
var _matrixWorldInv = new Matrix4();
...
...
@@ -46249,12 +46240,12 @@ SkeletonHelper.prototype.updateMatrixWorld = function ( force ) {
if ( bone.parent && bone.parent.isBone ) {
_boneMatrix.multiplyMatrices( _matrixWorldInv, bone.matrixWorld );
_vector$
9
.setFromMatrixPosition( _boneMatrix );
position.setXYZ( j, _vector$
9.x, _vector$9.y, _vector$9
.z );
_vector$
a
.setFromMatrixPosition( _boneMatrix );
position.setXYZ( j, _vector$
a.x, _vector$a.y, _vector$a
.z );
_boneMatrix.multiplyMatrices( _matrixWorldInv, bone.parent.matrixWorld );
_vector$
9
.setFromMatrixPosition( _boneMatrix );
position.setXYZ( j + 1, _vector$
9.x, _vector$9.y, _vector$9
.z );
_vector$
a
.setFromMatrixPosition( _boneMatrix );
position.setXYZ( j + 1, _vector$
a.x, _vector$a.y, _vector$a
.z );
j += 2;
...
...
@@ -46436,7 +46427,7 @@ RectAreaLightHelper.prototype.dispose = function () {
* @author Mugen87 / https://github.com/Mugen87
*/
var _vector$
a
= new Vector3();
var _vector$
b
= new Vector3();
var _color1 = new Color();
var _color2 = new Color();
...
...
@@ -46506,7 +46497,7 @@ HemisphereLightHelper.prototype.update = function () {
}
mesh.lookAt( _vector$
a
.setFromMatrixPosition( this.light.matrixWorld ).negate() );
mesh.lookAt( _vector$
b
.setFromMatrixPosition( this.light.matrixWorld ).negate() );
};
...
...
@@ -47107,7 +47098,7 @@ DirectionalLightHelper.prototype.update = function () {
* http://evanw.github.com/lightgl.js/tests/shadowmap.html
*/
var _vector$
b
= new Vector3();
var _vector$
c
= new Vector3();
var _camera = new Camera();
function CameraHelper( camera ) {
...
...
@@ -47272,7 +47263,7 @@ CameraHelper.prototype.update = function () {
function setPoint( point, pointMap, geometry, camera, x, y, z ) {
_vector$
b
.set( x, y, z ).unproject( camera );
_vector$
c
.set( x, y, z ).unproject( camera );
var points = pointMap[ point ];
...
...
@@ -47282,7 +47273,7 @@ function setPoint( point, pointMap, geometry, camera, x, y, z ) {
for ( var i = 0, l = points.length; i < l; i ++ ) {
position.setXYZ( points[ i ], _vector$
b.x, _vector$b.y, _vector$b
.z );
position.setXYZ( points[ i ], _vector$
c.x, _vector$c.y, _vector$c
.z );
}
...
...
@@ -49284,7 +49275,7 @@ Object.defineProperties( WebGLRenderer.prototype, {
vr: {
get: function () {
console.warn( 'THREE.WebGLRenderer: .vr has been re
moved. Use .xr instead.
' );
console.warn( 'THREE.WebGLRenderer: .vr has been re
named to .xr
' );
return this.xr;
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录