Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
85488204
T
three.js
项目概览
Ablesons
/
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,发现更多精彩内容 >>
提交
85488204
编写于
5月 22, 2017
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updated builds.
上级
4ab3305a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
422 addition
and
423 deletion
+422
-423
build/three.js
build/three.js
+30
-31
build/three.min.js
build/three.min.js
+362
-361
build/three.module.js
build/three.module.js
+30
-31
未找到文件。
build/three.js
浏览文件 @
85488204
...
...
@@ -16030,7 +16030,7 @@
} else if ( array instanceof Float64Array ) {
console.warn(
"Unsupported data buffer format: Float64Array"
);
console.warn(
'THREE.WebGLAttributes: Unsupported data buffer format: Float64Array.'
);
} else if ( array instanceof Uint16Array ) {
...
...
@@ -17341,10 +17341,10 @@
}
vertexShader = parseIncludes( vertexShader
, parameters
);
vertexShader = parseIncludes( vertexShader );
vertexShader = replaceLightNums( vertexShader, parameters );
fragmentShader = parseIncludes( fragmentShader
, parameters
);
fragmentShader = parseIncludes( fragmentShader );
fragmentShader = replaceLightNums( fragmentShader, parameters );
if ( ! material.isShaderMaterial ) {
...
...
@@ -19455,7 +19455,7 @@
} catch ( error ) {
console.error( error );
console.error(
'THREE.WebGLState:',
error );
}
...
...
@@ -19469,7 +19469,7 @@
} catch ( error ) {
console.error( error );
console.error(
'THREE.WebGLState:',
error );
}
...
...
@@ -22388,7 +22388,7 @@
if ( textureUnit >= capabilities.maxTextures ) {
console.warn( '
WebGLRenderer: t
rying to use ' + textureUnit + ' texture units while this GPU supports only ' + capabilities.maxTextures );
console.warn( '
THREE.WebGLRenderer: T
rying to use ' + textureUnit + ' texture units while this GPU supports only ' + capabilities.maxTextures );
}
...
...
@@ -31213,7 +31213,7 @@
}
console.warn( message );
console.warn(
'THREE.KeyframeTrackPrototype:',
message );
return;
}
...
...
@@ -31324,7 +31324,7 @@
var valueSize = this.getValueSize();
if ( valueSize - Math.floor( valueSize ) !== 0 ) {
console.error(
"invalid value size in track"
, this );
console.error(
'THREE.KeyframeTrackPrototype: Invalid value size in track.'
, this );
valid = false;
}
...
...
@@ -31336,7 +31336,7 @@
if ( nKeys === 0 ) {
console.error(
"track is empty"
, this );
console.error(
'THREE.KeyframeTrackPrototype: Track is empty.'
, this );
valid = false;
}
...
...
@@ -31349,7 +31349,7 @@
if ( typeof currTime === 'number' && isNaN( currTime ) ) {
console.error(
"time is not a valid number"
, this, i, currTime );
console.error(
'THREE.KeyframeTrackPrototype: Time is not a valid number.'
, this, i, currTime );
valid = false;
break;
...
...
@@ -31357,7 +31357,7 @@
if ( prevTime !== null && prevTime > currTime ) {
console.error(
"out of order keys"
, this, i, currTime, prevTime );
console.error(
'THREE.KeyframeTrackPrototype: Out of order keys.'
, this, i, currTime, prevTime );
valid = false;
break;
...
...
@@ -31377,7 +31377,7 @@
if ( isNaN( value ) ) {
console.error(
"value is not a valid number"
, this, i, value );
console.error(
'THREE.KeyframeTrackPrototype: Value is not a valid number.'
, this, i, value );
valid = false;
break;
...
...
@@ -32076,7 +32076,7 @@
if ( ! animation ) {
console.error(
" no animation in JSONLoader data"
);
console.error(
'THREE.AnimationClip: No animation in JSONLoader data.'
);
return null;
}
...
...
@@ -37253,7 +37253,7 @@
// ensure there is a value node
if ( ! targetObject ) {
console.error(
" trying to update node for track: " + this.path + " but it wasn't found."
);
console.error(
'THREE.PropertyBinding: Trying to update node for track: ' + this.path + ' but it wasn\'t found.'
);
return;
}
...
...
@@ -37269,14 +37269,14 @@
if ( ! targetObject.material ) {
console.error( '
can not bind to material as node does not have a material
', this );
console.error( '
THREE.PropertyBinding: Can not bind to material as node does not have a material.
', this );
return;
}
if ( ! targetObject.material.materials ) {
console.error( '
can not bind to material.materials as node.material does not have a materials array
', this );
console.error( '
THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.
', this );
return;
}
...
...
@@ -37289,7 +37289,7 @@
if ( ! targetObject.skeleton ) {
console.error( '
can not bind to bones as node does not have a skeleton
', this );
console.error( '
THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.
', this );
return;
}
...
...
@@ -37317,7 +37317,7 @@
if ( targetObject[ objectName ] === undefined ) {
console.error( '
can not bind to objectName of node, undefined
', this );
console.error( '
THREE.PropertyBinding: Can not bind to objectName of node undefined.
', this );
return;
}
...
...
@@ -37331,7 +37331,7 @@
if ( targetObject[ objectIndex ] === undefined ) {
console.error(
" trying to bind to objectIndex of objectName, but is undefined:"
, this, targetObject );
console.error(
'THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.'
, this, targetObject );
return;
}
...
...
@@ -37349,8 +37349,8 @@
var nodeName = parsedPath.nodeName;
console.error(
" trying to update property for track: "
+ nodeName +
'.' + propertyName +
" but it wasn't found."
, targetObject );
console.error(
'THREE.PropertyBinding: Trying to update property for track: '
+ nodeName +
'.' + propertyName +
' but it wasn\'t found.'
, targetObject );
return;
}
...
...
@@ -37384,7 +37384,7 @@
// support resolving morphTarget names into indices.
if ( ! targetObject.geometry ) {
console.error( '
can not bind to morphTargetInfluences becasuse node does not have a geometry
', this );
console.error( '
THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.
', this );
return;
}
...
...
@@ -37393,7 +37393,7 @@
if ( ! targetObject.geometry.morphAttributes ) {
console.error( '
can not bind to morphTargetInfluences becasuse node does not have a geometry.morphAttributes
', this );
console.error( '
THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.
', this );
return;
}
...
...
@@ -37414,7 +37414,7 @@
if ( ! targetObject.geometry.morphTargets ) {
console.error( '
can not bind to morphTargetInfluences becasuse node does not have a geometry.morphTargets
', this );
console.error( '
THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphTargets.
', this );
return;
}
...
...
@@ -37639,9 +37639,8 @@
} else if ( objects[ index ] !== knownObject ) {
console.error( "Different objects with the same UUID " +
"detected. Clean the caches or recreate your " +
"infrastructure when reloading scenes..." );
console.error( 'THREE.AnimationObjectGroup: Different objects with the same UUID ' +
'detected. Clean the caches or recreate your infrastructure when reloading scenes.' );
} // else the object is already where we want it to be
...
...
@@ -41705,11 +41704,13 @@
var py = new CubicPoly();
var pz = new CubicPoly();
function CatmullRomCurve3( p
/* array of Vector3 */
) {
function CatmullRomCurve3( p
oints
) {
Curve.call( this );
this.points = p || [];
if ( points.length < 2 ) console.warn( 'THREE.CatmullRomCurve3: Points array needs at least two entries.' );
this.points = points || [];
this.closed = false;
}
...
...
@@ -41722,8 +41723,6 @@
var points = this.points;
var l = points.length;
if ( l < 2 ) console.log( 'duh, you need at least 2 points' );
var point = ( l - ( this.closed ? 0 : 1 ) ) * t;
var intPoint = Math.floor( point );
var weight = point - intPoint;
...
...
build/three.min.js
浏览文件 @
85488204
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
build/three.module.js
浏览文件 @
85488204
...
...
@@ -16024,7 +16024,7 @@ function WebGLAttributes( gl ) {
} else if ( array instanceof Float64Array ) {
console.warn(
"Unsupported data buffer format: Float64Array"
);
console.warn(
'THREE.WebGLAttributes: Unsupported data buffer format: Float64Array.'
);
} else if ( array instanceof Uint16Array ) {
...
...
@@ -17335,10 +17335,10 @@ function WebGLProgram( renderer, code, material, parameters ) {
}
vertexShader = parseIncludes( vertexShader
, parameters
);
vertexShader = parseIncludes( vertexShader );
vertexShader = replaceLightNums( vertexShader, parameters );
fragmentShader = parseIncludes( fragmentShader
, parameters
);
fragmentShader = parseIncludes( fragmentShader );
fragmentShader = replaceLightNums( fragmentShader, parameters );
if ( ! material.isShaderMaterial ) {
...
...
@@ -19449,7 +19449,7 @@ function WebGLState( gl, extensions, paramThreeToGL ) {
} catch ( error ) {
console.error( error );
console.error(
'THREE.WebGLState:',
error );
}
...
...
@@ -19463,7 +19463,7 @@ function WebGLState( gl, extensions, paramThreeToGL ) {
} catch ( error ) {
console.error( error );
console.error(
'THREE.WebGLState:',
error );
}
...
...
@@ -22382,7 +22382,7 @@ function WebGLRenderer( parameters ) {
if ( textureUnit >= capabilities.maxTextures ) {
console.warn( '
WebGLRenderer: t
rying to use ' + textureUnit + ' texture units while this GPU supports only ' + capabilities.maxTextures );
console.warn( '
THREE.WebGLRenderer: T
rying to use ' + textureUnit + ' texture units while this GPU supports only ' + capabilities.maxTextures );
}
...
...
@@ -31207,7 +31207,7 @@ KeyframeTrackPrototype = {
}
console.warn( message );
console.warn(
'THREE.KeyframeTrackPrototype:',
message );
return;
}
...
...
@@ -31318,7 +31318,7 @@ KeyframeTrackPrototype = {
var valueSize = this.getValueSize();
if ( valueSize - Math.floor( valueSize ) !== 0 ) {
console.error(
"invalid value size in track"
, this );
console.error(
'THREE.KeyframeTrackPrototype: Invalid value size in track.'
, this );
valid = false;
}
...
...
@@ -31330,7 +31330,7 @@ KeyframeTrackPrototype = {
if ( nKeys === 0 ) {
console.error(
"track is empty"
, this );
console.error(
'THREE.KeyframeTrackPrototype: Track is empty.'
, this );
valid = false;
}
...
...
@@ -31343,7 +31343,7 @@ KeyframeTrackPrototype = {
if ( typeof currTime === 'number' && isNaN( currTime ) ) {
console.error(
"time is not a valid number"
, this, i, currTime );
console.error(
'THREE.KeyframeTrackPrototype: Time is not a valid number.'
, this, i, currTime );
valid = false;
break;
...
...
@@ -31351,7 +31351,7 @@ KeyframeTrackPrototype = {
if ( prevTime !== null && prevTime > currTime ) {
console.error(
"out of order keys"
, this, i, currTime, prevTime );
console.error(
'THREE.KeyframeTrackPrototype: Out of order keys.'
, this, i, currTime, prevTime );
valid = false;
break;
...
...
@@ -31371,7 +31371,7 @@ KeyframeTrackPrototype = {
if ( isNaN( value ) ) {
console.error(
"value is not a valid number"
, this, i, value );
console.error(
'THREE.KeyframeTrackPrototype: Value is not a valid number.'
, this, i, value );
valid = false;
break;
...
...
@@ -32070,7 +32070,7 @@ Object.assign( AnimationClip, {
if ( ! animation ) {
console.error(
" no animation in JSONLoader data"
);
console.error(
'THREE.AnimationClip: No animation in JSONLoader data.'
);
return null;
}
...
...
@@ -37247,7 +37247,7 @@ Object.assign( PropertyBinding.prototype, { // prototype, continued
// ensure there is a value node
if ( ! targetObject ) {
console.error(
" trying to update node for track: " + this.path + " but it wasn't found."
);
console.error(
'THREE.PropertyBinding: Trying to update node for track: ' + this.path + ' but it wasn\'t found.'
);
return;
}
...
...
@@ -37263,14 +37263,14 @@ Object.assign( PropertyBinding.prototype, { // prototype, continued
if ( ! targetObject.material ) {
console.error( '
can not bind to material as node does not have a material
', this );
console.error( '
THREE.PropertyBinding: Can not bind to material as node does not have a material.
', this );
return;
}
if ( ! targetObject.material.materials ) {
console.error( '
can not bind to material.materials as node.material does not have a materials array
', this );
console.error( '
THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.
', this );
return;
}
...
...
@@ -37283,7 +37283,7 @@ Object.assign( PropertyBinding.prototype, { // prototype, continued
if ( ! targetObject.skeleton ) {
console.error( '
can not bind to bones as node does not have a skeleton
', this );
console.error( '
THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.
', this );
return;
}
...
...
@@ -37311,7 +37311,7 @@ Object.assign( PropertyBinding.prototype, { // prototype, continued
if ( targetObject[ objectName ] === undefined ) {
console.error( '
can not bind to objectName of node, undefined
', this );
console.error( '
THREE.PropertyBinding: Can not bind to objectName of node undefined.
', this );
return;
}
...
...
@@ -37325,7 +37325,7 @@ Object.assign( PropertyBinding.prototype, { // prototype, continued
if ( targetObject[ objectIndex ] === undefined ) {
console.error(
" trying to bind to objectIndex of objectName, but is undefined:"
, this, targetObject );
console.error(
'THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.'
, this, targetObject );
return;
}
...
...
@@ -37343,8 +37343,8 @@ Object.assign( PropertyBinding.prototype, { // prototype, continued
var nodeName = parsedPath.nodeName;
console.error(
" trying to update property for track: "
+ nodeName +
'.' + propertyName +
" but it wasn't found."
, targetObject );
console.error(
'THREE.PropertyBinding: Trying to update property for track: '
+ nodeName +
'.' + propertyName +
' but it wasn\'t found.'
, targetObject );
return;
}
...
...
@@ -37378,7 +37378,7 @@ Object.assign( PropertyBinding.prototype, { // prototype, continued
// support resolving morphTarget names into indices.
if ( ! targetObject.geometry ) {
console.error( '
can not bind to morphTargetInfluences becasuse node does not have a geometry
', this );
console.error( '
THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.
', this );
return;
}
...
...
@@ -37387,7 +37387,7 @@ Object.assign( PropertyBinding.prototype, { // prototype, continued
if ( ! targetObject.geometry.morphAttributes ) {
console.error( '
can not bind to morphTargetInfluences becasuse node does not have a geometry.morphAttributes
', this );
console.error( '
THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.
', this );
return;
}
...
...
@@ -37408,7 +37408,7 @@ Object.assign( PropertyBinding.prototype, { // prototype, continued
if ( ! targetObject.geometry.morphTargets ) {
console.error( '
can not bind to morphTargetInfluences becasuse node does not have a geometry.morphTargets
', this );
console.error( '
THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphTargets.
', this );
return;
}
...
...
@@ -37633,9 +37633,8 @@ Object.assign( AnimationObjectGroup.prototype, {
} else if ( objects[ index ] !== knownObject ) {
console.error( "Different objects with the same UUID " +
"detected. Clean the caches or recreate your " +
"infrastructure when reloading scenes..." );
console.error( 'THREE.AnimationObjectGroup: Different objects with the same UUID ' +
'detected. Clean the caches or recreate your infrastructure when reloading scenes.' );
} // else the object is already where we want it to be
...
...
@@ -41699,11 +41698,13 @@ var px = new CubicPoly();
var py = new CubicPoly();
var pz = new CubicPoly();
function CatmullRomCurve3( p
/* array of Vector3 */
) {
function CatmullRomCurve3( p
oints
) {
Curve.call( this );
this.points = p || [];
if ( points.length < 2 ) console.warn( 'THREE.CatmullRomCurve3: Points array needs at least two entries.' );
this.points = points || [];
this.closed = false;
}
...
...
@@ -41716,8 +41717,6 @@ CatmullRomCurve3.prototype.getPoint = function ( t ) {
var points = this.points;
var l = points.length;
if ( l < 2 ) console.log( 'duh, you need at least 2 points' );
var point = ( l - ( this.closed ? 0 : 1 ) ) * t;
var intPoint = Math.floor( point );
var weight = point - intPoint;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录