Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
08b53c79
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,发现更多精彩内容 >>
提交
08b53c79
编写于
9月 21, 2017
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updated builds.
上级
09850053
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
831 addition
and
789 deletion
+831
-789
build/three.js
build/three.js
+45
-25
build/three.min.js
build/three.min.js
+740
-739
build/three.module.js
build/three.module.js
+45
-25
utils/build/externs.js
utils/build/externs.js
+1
-0
未找到文件。
build/three.js
浏览文件 @
08b53c79
...
...
@@ -12980,9 +12980,9 @@
//
function Int8BufferAttribute( array, itemSize ) {
function Int8BufferAttribute( array, itemSize
, normalized
) {
BufferAttribute.call( this, new Int8Array( array ), itemSize );
BufferAttribute.call( this, new Int8Array( array ), itemSize
, normalized
);
}
...
...
@@ -12990,9 +12990,9 @@
Int8BufferAttribute.prototype.constructor = Int8BufferAttribute;
function Uint8BufferAttribute( array, itemSize ) {
function Uint8BufferAttribute( array, itemSize
, normalized
) {
BufferAttribute.call( this, new Uint8Array( array ), itemSize );
BufferAttribute.call( this, new Uint8Array( array ), itemSize
, normalized
);
}
...
...
@@ -13000,9 +13000,9 @@
Uint8BufferAttribute.prototype.constructor = Uint8BufferAttribute;
function Uint8ClampedBufferAttribute( array, itemSize ) {
function Uint8ClampedBufferAttribute( array, itemSize
, normalized
) {
BufferAttribute.call( this, new Uint8ClampedArray( array ), itemSize );
BufferAttribute.call( this, new Uint8ClampedArray( array ), itemSize
, normalized
);
}
...
...
@@ -13010,9 +13010,9 @@
Uint8ClampedBufferAttribute.prototype.constructor = Uint8ClampedBufferAttribute;
function Int16BufferAttribute( array, itemSize ) {
function Int16BufferAttribute( array, itemSize
, normalized
) {
BufferAttribute.call( this, new Int16Array( array ), itemSize );
BufferAttribute.call( this, new Int16Array( array ), itemSize
, normalized
);
}
...
...
@@ -13020,9 +13020,9 @@
Int16BufferAttribute.prototype.constructor = Int16BufferAttribute;
function Uint16BufferAttribute( array, itemSize ) {
function Uint16BufferAttribute( array, itemSize
, normalized
) {
BufferAttribute.call( this, new Uint16Array( array ), itemSize );
BufferAttribute.call( this, new Uint16Array( array ), itemSize
, normalized
);
}
...
...
@@ -13030,9 +13030,9 @@
Uint16BufferAttribute.prototype.constructor = Uint16BufferAttribute;
function Int32BufferAttribute( array, itemSize ) {
function Int32BufferAttribute( array, itemSize
, normalized
) {
BufferAttribute.call( this, new Int32Array( array ), itemSize );
BufferAttribute.call( this, new Int32Array( array ), itemSize
, normalized
);
}
...
...
@@ -13040,9 +13040,9 @@
Int32BufferAttribute.prototype.constructor = Int32BufferAttribute;
function Uint32BufferAttribute( array, itemSize ) {
function Uint32BufferAttribute( array, itemSize
, normalized
) {
BufferAttribute.call( this, new Uint32Array( array ), itemSize );
BufferAttribute.call( this, new Uint32Array( array ), itemSize
, normalized
);
}
...
...
@@ -13050,9 +13050,9 @@
Uint32BufferAttribute.prototype.constructor = Uint32BufferAttribute;
function Float32BufferAttribute( array, itemSize ) {
function Float32BufferAttribute( array, itemSize
, normalized
) {
BufferAttribute.call( this, new Float32Array( array ), itemSize );
BufferAttribute.call( this, new Float32Array( array ), itemSize
, normalized
);
}
...
...
@@ -13060,9 +13060,9 @@
Float32BufferAttribute.prototype.constructor = Float32BufferAttribute;
function Float64BufferAttribute( array, itemSize ) {
function Float64BufferAttribute( array, itemSize
, normalized
) {
BufferAttribute.call( this, new Float64Array( array ), itemSize );
BufferAttribute.call( this, new Float64Array( array ), itemSize
, normalized
);
}
...
...
@@ -15930,6 +15930,18 @@
this.drawMode = source.drawMode;
if ( source.morphTargetInfluences !== undefined ) {
this.morphTargetInfluences = source.morphTargetInfluences.slice();
}
if ( source.morphTargetDictionary !== undefined ) {
this.morphTargetDictionary = Object.assign( {}, source.morphTargetDictionary );
}
return this;
},
...
...
@@ -17691,21 +17703,29 @@
prefixVertex = [
customDefines,
'\n'
customDefines
].filter( filterEmptyLine ).join( '\n' );
if ( prefixVertex.length > 0 ) {
prefixVertex += '\n';
}
prefixFragment = [
customExtensions,
customDefines,
'\n'
customDefines
].filter( filterEmptyLine ).join( '\n' );
if ( prefixFragment.length > 0 ) {
prefixFragment += '\n';
}
} else {
prefixVertex = [
...
...
@@ -18413,7 +18433,7 @@
function makePowerOfTwo( image ) {
if ( image instanceof HTMLImageElement || image instanceof HTMLCanvasElement ) {
if ( image instanceof HTMLImageElement || image instanceof HTMLCanvasElement
|| image instanceof ImageBitmap
) {
var canvas = document.createElementNS( 'http://www.w3.org/1999/xhtml', 'canvas' );
canvas.width = _Math.floorPowerOfTwo( image.width );
...
...
build/three.min.js
浏览文件 @
08b53c79
此差异已折叠。
点击以展开。
build/three.module.js
浏览文件 @
08b53c79
...
...
@@ -12974,9 +12974,9 @@ Object.assign( BufferAttribute.prototype, {
//
function Int8BufferAttribute( array, itemSize ) {
function Int8BufferAttribute( array, itemSize
, normalized
) {
BufferAttribute.call( this, new Int8Array( array ), itemSize );
BufferAttribute.call( this, new Int8Array( array ), itemSize
, normalized
);
}
...
...
@@ -12984,9 +12984,9 @@ Int8BufferAttribute.prototype = Object.create( BufferAttribute.prototype );
Int8BufferAttribute.prototype.constructor = Int8BufferAttribute;
function Uint8BufferAttribute( array, itemSize ) {
function Uint8BufferAttribute( array, itemSize
, normalized
) {
BufferAttribute.call( this, new Uint8Array( array ), itemSize );
BufferAttribute.call( this, new Uint8Array( array ), itemSize
, normalized
);
}
...
...
@@ -12994,9 +12994,9 @@ Uint8BufferAttribute.prototype = Object.create( BufferAttribute.prototype );
Uint8BufferAttribute.prototype.constructor = Uint8BufferAttribute;
function Uint8ClampedBufferAttribute( array, itemSize ) {
function Uint8ClampedBufferAttribute( array, itemSize
, normalized
) {
BufferAttribute.call( this, new Uint8ClampedArray( array ), itemSize );
BufferAttribute.call( this, new Uint8ClampedArray( array ), itemSize
, normalized
);
}
...
...
@@ -13004,9 +13004,9 @@ Uint8ClampedBufferAttribute.prototype = Object.create( BufferAttribute.prototype
Uint8ClampedBufferAttribute.prototype.constructor = Uint8ClampedBufferAttribute;
function Int16BufferAttribute( array, itemSize ) {
function Int16BufferAttribute( array, itemSize
, normalized
) {
BufferAttribute.call( this, new Int16Array( array ), itemSize );
BufferAttribute.call( this, new Int16Array( array ), itemSize
, normalized
);
}
...
...
@@ -13014,9 +13014,9 @@ Int16BufferAttribute.prototype = Object.create( BufferAttribute.prototype );
Int16BufferAttribute.prototype.constructor = Int16BufferAttribute;
function Uint16BufferAttribute( array, itemSize ) {
function Uint16BufferAttribute( array, itemSize
, normalized
) {
BufferAttribute.call( this, new Uint16Array( array ), itemSize );
BufferAttribute.call( this, new Uint16Array( array ), itemSize
, normalized
);
}
...
...
@@ -13024,9 +13024,9 @@ Uint16BufferAttribute.prototype = Object.create( BufferAttribute.prototype );
Uint16BufferAttribute.prototype.constructor = Uint16BufferAttribute;
function Int32BufferAttribute( array, itemSize ) {
function Int32BufferAttribute( array, itemSize
, normalized
) {
BufferAttribute.call( this, new Int32Array( array ), itemSize );
BufferAttribute.call( this, new Int32Array( array ), itemSize
, normalized
);
}
...
...
@@ -13034,9 +13034,9 @@ Int32BufferAttribute.prototype = Object.create( BufferAttribute.prototype );
Int32BufferAttribute.prototype.constructor = Int32BufferAttribute;
function Uint32BufferAttribute( array, itemSize ) {
function Uint32BufferAttribute( array, itemSize
, normalized
) {
BufferAttribute.call( this, new Uint32Array( array ), itemSize );
BufferAttribute.call( this, new Uint32Array( array ), itemSize
, normalized
);
}
...
...
@@ -13044,9 +13044,9 @@ Uint32BufferAttribute.prototype = Object.create( BufferAttribute.prototype );
Uint32BufferAttribute.prototype.constructor = Uint32BufferAttribute;
function Float32BufferAttribute( array, itemSize ) {
function Float32BufferAttribute( array, itemSize
, normalized
) {
BufferAttribute.call( this, new Float32Array( array ), itemSize );
BufferAttribute.call( this, new Float32Array( array ), itemSize
, normalized
);
}
...
...
@@ -13054,9 +13054,9 @@ Float32BufferAttribute.prototype = Object.create( BufferAttribute.prototype );
Float32BufferAttribute.prototype.constructor = Float32BufferAttribute;
function Float64BufferAttribute( array, itemSize ) {
function Float64BufferAttribute( array, itemSize
, normalized
) {
BufferAttribute.call( this, new Float64Array( array ), itemSize );
BufferAttribute.call( this, new Float64Array( array ), itemSize
, normalized
);
}
...
...
@@ -15924,6 +15924,18 @@ Mesh.prototype = Object.assign( Object.create( Object3D.prototype ), {
this.drawMode = source.drawMode;
if ( source.morphTargetInfluences !== undefined ) {
this.morphTargetInfluences = source.morphTargetInfluences.slice();
}
if ( source.morphTargetDictionary !== undefined ) {
this.morphTargetDictionary = Object.assign( {}, source.morphTargetDictionary );
}
return this;
},
...
...
@@ -17685,21 +17697,29 @@ function WebGLProgram( renderer, extensions, code, material, shader, parameters
prefixVertex = [
customDefines,
'\n'
customDefines
].filter( filterEmptyLine ).join( '\n' );
if ( prefixVertex.length > 0 ) {
prefixVertex += '\n';
}
prefixFragment = [
customExtensions,
customDefines,
'\n'
customDefines
].filter( filterEmptyLine ).join( '\n' );
if ( prefixFragment.length > 0 ) {
prefixFragment += '\n';
}
} else {
prefixVertex = [
...
...
@@ -18407,7 +18427,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
function makePowerOfTwo( image ) {
if ( image instanceof HTMLImageElement || image instanceof HTMLCanvasElement ) {
if ( image instanceof HTMLImageElement || image instanceof HTMLCanvasElement
|| image instanceof ImageBitmap
) {
var canvas = document.createElementNS( 'http://www.w3.org/1999/xhtml', 'canvas' );
canvas.width = _Math.floorPowerOfTwo( image.width );
...
...
utils/build/externs.js
浏览文件 @
08b53c79
...
...
@@ -3,4 +3,5 @@ var define;
var
module
;
var
exports
;
var
performance
;
var
ImageBitmap
;
var
WebGL2RenderingContext
;
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录