Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
1a1311c2
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,发现更多精彩内容 >>
提交
1a1311c2
编写于
4月 04, 2017
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updated builds.
上级
43d6053f
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
212 addition
and
202 deletion
+212
-202
build/three.js
build/three.js
+48
-43
build/three.min.js
build/three.min.js
+116
-116
build/three.module.js
build/three.module.js
+48
-43
未找到文件。
build/three.js
浏览文件 @
1a1311c2
...
...
@@ -29404,6 +29404,7 @@
if ( onError ) onError( error );
scope.manager.itemEnd( url );
scope.manager.itemError( url );
}, 0 );
...
...
@@ -29442,6 +29443,7 @@
if ( onError ) onError( event );
scope.manager.itemEnd( url );
scope.manager.itemError( url );
}
...
...
@@ -29462,6 +29464,7 @@
if ( onError ) onError( event );
scope.manager.itemEnd( url );
scope.manager.itemError( url );
}, false );
...
...
@@ -29808,6 +29811,7 @@
if ( onError ) onError( event );
scope.manager.itemEnd( url );
scope.manager.itemError( url );
}, false );
...
...
@@ -32334,18 +32338,6 @@
var index = json.data.index;
var TYPED_ARRAYS = {
'Int8Array': Int8Array,
'Uint8Array': Uint8Array,
'Uint8ClampedArray': Uint8ClampedArray,
'Int16Array': Int16Array,
'Uint16Array': Uint16Array,
'Int32Array': Int32Array,
'Uint32Array': Uint32Array,
'Float32Array': Float32Array,
'Float64Array': Float64Array
};
if ( index !== undefined ) {
var typedArray = new TYPED_ARRAYS[ index.type ]( index.array );
...
...
@@ -32400,6 +32392,18 @@
} );
var TYPED_ARRAYS = {
Int8Array: Int8Array,
Uint8Array: Uint8Array,
Uint8ClampedArray: Uint8ClampedArray,
Int16Array: Int16Array,
Uint16Array: Uint16Array,
Int32Array: Int32Array,
Uint32Array: Uint32Array,
Float32Array: Float32Array,
Float64Array: Float64Array
};
/**
* @author alteredq / http://alteredqualia.com/
*/
...
...
@@ -33646,6 +33650,7 @@
}, undefined, function () {
scope.manager.itemEnd( url );
scope.manager.itemError( url );
} );
...
...
@@ -33676,32 +33681,6 @@
parseTextures: function ( json, images ) {
var TextureMapping = {
UVMapping: UVMapping,
CubeReflectionMapping: CubeReflectionMapping,
CubeRefractionMapping: CubeRefractionMapping,
EquirectangularReflectionMapping: EquirectangularReflectionMapping,
EquirectangularRefractionMapping: EquirectangularRefractionMapping,
SphericalReflectionMapping: SphericalReflectionMapping,
CubeUVReflectionMapping: CubeUVReflectionMapping,
CubeUVRefractionMapping: CubeUVRefractionMapping
};
var TextureWrapping = {
RepeatWrapping: RepeatWrapping,
ClampToEdgeWrapping: ClampToEdgeWrapping,
MirroredRepeatWrapping: MirroredRepeatWrapping
};
var TextureFilter = {
NearestFilter: NearestFilter,
NearestMipMapNearestFilter: NearestMipMapNearestFilter,
NearestMipMapLinearFilter: NearestMipMapLinearFilter,
LinearFilter: LinearFilter,
LinearMipMapNearestFilter: LinearMipMapNearestFilter,
LinearMipMapLinearFilter: LinearMipMapLinearFilter
};
function parseConstant( value, type ) {
if ( typeof( value ) === 'number' ) return value;
...
...
@@ -33739,19 +33718,19 @@
if ( data.name !== undefined ) texture.name = data.name;
if ( data.mapping !== undefined ) texture.mapping = parseConstant( data.mapping, T
extureMapping
);
if ( data.mapping !== undefined ) texture.mapping = parseConstant( data.mapping, T
EXTURE_MAPPING
);
if ( data.offset !== undefined ) texture.offset.fromArray( data.offset );
if ( data.repeat !== undefined ) texture.repeat.fromArray( data.repeat );
if ( data.wrap !== undefined ) {
texture.wrapS = parseConstant( data.wrap[ 0 ], T
extureWrapping
);
texture.wrapT = parseConstant( data.wrap[ 1 ], T
extureWrapping
);
texture.wrapS = parseConstant( data.wrap[ 0 ], T
EXTURE_WRAPPING
);
texture.wrapT = parseConstant( data.wrap[ 1 ], T
EXTURE_WRAPPING
);
}
if ( data.minFilter !== undefined ) texture.minFilter = parseConstant( data.minFilter, T
extureFilter
);
if ( data.magFilter !== undefined ) texture.magFilter = parseConstant( data.magFilter, T
extureFilter
);
if ( data.minFilter !== undefined ) texture.minFilter = parseConstant( data.minFilter, T
EXTURE_FILTER
);
if ( data.magFilter !== undefined ) texture.magFilter = parseConstant( data.magFilter, T
EXTURE_FILTER
);
if ( data.anisotropy !== undefined ) texture.anisotropy = data.anisotropy;
if ( data.flipY !== undefined ) texture.flipY = data.flipY;
...
...
@@ -34047,6 +34026,32 @@
} );
var TEXTURE_MAPPING = {
UVMapping: UVMapping,
CubeReflectionMapping: CubeReflectionMapping,
CubeRefractionMapping: CubeRefractionMapping,
EquirectangularReflectionMapping: EquirectangularReflectionMapping,
EquirectangularRefractionMapping: EquirectangularRefractionMapping,
SphericalReflectionMapping: SphericalReflectionMapping,
CubeUVReflectionMapping: CubeUVReflectionMapping,
CubeUVRefractionMapping: CubeUVRefractionMapping
};
var TEXTURE_WRAPPING = {
RepeatWrapping: RepeatWrapping,
ClampToEdgeWrapping: ClampToEdgeWrapping,
MirroredRepeatWrapping: MirroredRepeatWrapping
};
var TEXTURE_FILTER = {
NearestFilter: NearestFilter,
NearestMipMapNearestFilter: NearestMipMapNearestFilter,
NearestMipMapLinearFilter: NearestMipMapLinearFilter,
LinearFilter: LinearFilter,
LinearMipMapNearestFilter: LinearMipMapNearestFilter,
LinearMipMapLinearFilter: LinearMipMapLinearFilter
};
/**
* @author zz85 / http://www.lab4games.net/zz85/blog
*
...
...
build/three.min.js
浏览文件 @
1a1311c2
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
build/three.module.js
浏览文件 @
1a1311c2
...
...
@@ -29398,6 +29398,7 @@ Object.assign( FileLoader.prototype, {
if ( onError ) onError( error );
scope.manager.itemEnd( url );
scope.manager.itemError( url );
}, 0 );
...
...
@@ -29436,6 +29437,7 @@ Object.assign( FileLoader.prototype, {
if ( onError ) onError( event );
scope.manager.itemEnd( url );
scope.manager.itemError( url );
}
...
...
@@ -29456,6 +29458,7 @@ Object.assign( FileLoader.prototype, {
if ( onError ) onError( event );
scope.manager.itemEnd( url );
scope.manager.itemError( url );
}, false );
...
...
@@ -29802,6 +29805,7 @@ Object.assign( ImageLoader.prototype, {
if ( onError ) onError( event );
scope.manager.itemEnd( url );
scope.manager.itemError( url );
}, false );
...
...
@@ -32328,18 +32332,6 @@ Object.assign( BufferGeometryLoader.prototype, {
var index = json.data.index;
var TYPED_ARRAYS = {
'Int8Array': Int8Array,
'Uint8Array': Uint8Array,
'Uint8ClampedArray': Uint8ClampedArray,
'Int16Array': Int16Array,
'Uint16Array': Uint16Array,
'Int32Array': Int32Array,
'Uint32Array': Uint32Array,
'Float32Array': Float32Array,
'Float64Array': Float64Array
};
if ( index !== undefined ) {
var typedArray = new TYPED_ARRAYS[ index.type ]( index.array );
...
...
@@ -32394,6 +32386,18 @@ Object.assign( BufferGeometryLoader.prototype, {
} );
var TYPED_ARRAYS = {
Int8Array: Int8Array,
Uint8Array: Uint8Array,
Uint8ClampedArray: Uint8ClampedArray,
Int16Array: Int16Array,
Uint16Array: Uint16Array,
Int32Array: Int32Array,
Uint32Array: Uint32Array,
Float32Array: Float32Array,
Float64Array: Float64Array
};
/**
* @author alteredq / http://alteredqualia.com/
*/
...
...
@@ -33640,6 +33644,7 @@ Object.assign( ObjectLoader.prototype, {
}, undefined, function () {
scope.manager.itemEnd( url );
scope.manager.itemError( url );
} );
...
...
@@ -33670,32 +33675,6 @@ Object.assign( ObjectLoader.prototype, {
parseTextures: function ( json, images ) {
var TextureMapping = {
UVMapping: UVMapping,
CubeReflectionMapping: CubeReflectionMapping,
CubeRefractionMapping: CubeRefractionMapping,
EquirectangularReflectionMapping: EquirectangularReflectionMapping,
EquirectangularRefractionMapping: EquirectangularRefractionMapping,
SphericalReflectionMapping: SphericalReflectionMapping,
CubeUVReflectionMapping: CubeUVReflectionMapping,
CubeUVRefractionMapping: CubeUVRefractionMapping
};
var TextureWrapping = {
RepeatWrapping: RepeatWrapping,
ClampToEdgeWrapping: ClampToEdgeWrapping,
MirroredRepeatWrapping: MirroredRepeatWrapping
};
var TextureFilter = {
NearestFilter: NearestFilter,
NearestMipMapNearestFilter: NearestMipMapNearestFilter,
NearestMipMapLinearFilter: NearestMipMapLinearFilter,
LinearFilter: LinearFilter,
LinearMipMapNearestFilter: LinearMipMapNearestFilter,
LinearMipMapLinearFilter: LinearMipMapLinearFilter
};
function parseConstant( value, type ) {
if ( typeof( value ) === 'number' ) return value;
...
...
@@ -33733,19 +33712,19 @@ Object.assign( ObjectLoader.prototype, {
if ( data.name !== undefined ) texture.name = data.name;
if ( data.mapping !== undefined ) texture.mapping = parseConstant( data.mapping, T
extureMapping
);
if ( data.mapping !== undefined ) texture.mapping = parseConstant( data.mapping, T
EXTURE_MAPPING
);
if ( data.offset !== undefined ) texture.offset.fromArray( data.offset );
if ( data.repeat !== undefined ) texture.repeat.fromArray( data.repeat );
if ( data.wrap !== undefined ) {
texture.wrapS = parseConstant( data.wrap[ 0 ], T
extureWrapping
);
texture.wrapT = parseConstant( data.wrap[ 1 ], T
extureWrapping
);
texture.wrapS = parseConstant( data.wrap[ 0 ], T
EXTURE_WRAPPING
);
texture.wrapT = parseConstant( data.wrap[ 1 ], T
EXTURE_WRAPPING
);
}
if ( data.minFilter !== undefined ) texture.minFilter = parseConstant( data.minFilter, T
extureFilter
);
if ( data.magFilter !== undefined ) texture.magFilter = parseConstant( data.magFilter, T
extureFilter
);
if ( data.minFilter !== undefined ) texture.minFilter = parseConstant( data.minFilter, T
EXTURE_FILTER
);
if ( data.magFilter !== undefined ) texture.magFilter = parseConstant( data.magFilter, T
EXTURE_FILTER
);
if ( data.anisotropy !== undefined ) texture.anisotropy = data.anisotropy;
if ( data.flipY !== undefined ) texture.flipY = data.flipY;
...
...
@@ -34041,6 +34020,32 @@ Object.assign( ObjectLoader.prototype, {
} );
var TEXTURE_MAPPING = {
UVMapping: UVMapping,
CubeReflectionMapping: CubeReflectionMapping,
CubeRefractionMapping: CubeRefractionMapping,
EquirectangularReflectionMapping: EquirectangularReflectionMapping,
EquirectangularRefractionMapping: EquirectangularRefractionMapping,
SphericalReflectionMapping: SphericalReflectionMapping,
CubeUVReflectionMapping: CubeUVReflectionMapping,
CubeUVRefractionMapping: CubeUVRefractionMapping
};
var TEXTURE_WRAPPING = {
RepeatWrapping: RepeatWrapping,
ClampToEdgeWrapping: ClampToEdgeWrapping,
MirroredRepeatWrapping: MirroredRepeatWrapping
};
var TEXTURE_FILTER = {
NearestFilter: NearestFilter,
NearestMipMapNearestFilter: NearestMipMapNearestFilter,
NearestMipMapLinearFilter: NearestMipMapLinearFilter,
LinearFilter: LinearFilter,
LinearMipMapNearestFilter: LinearMipMapNearestFilter,
LinearMipMapLinearFilter: LinearMipMapLinearFilter
};
/**
* @author zz85 / http://www.lab4games.net/zz85/blog
*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录