Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
888042bd
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,体验更适合开发者的 AI 搜索 >>
提交
888042bd
编写于
11月 15, 2012
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updated builds.
上级
5d076252
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
3 addition
and
5 deletion
+3
-5
build/three.js
build/three.js
+2
-4
build/three.min.js
build/three.min.js
+1
-1
未找到文件。
build/three.js
浏览文件 @
888042bd
...
...
@@ -10427,10 +10427,8 @@ THREE.MeshFaceMaterial = function ( materials ) {
};
THREE.MeshFaceMaterial.prototype.clone = function () {
var material = new THREE.MeshFaceMaterial();
material.materials = this.materials;
return material;
return new THREE.MeshFaceMaterial( this.materials.slice( 0 ) );
};
/**
...
...
build/three.min.js
浏览文件 @
888042bd
...
...
@@ -220,7 +220,7 @@ THREE.MeshPhongMaterial.prototype.clone=function(){var a=new THREE.MeshPhongMate
a
.
specularMap
=
this
.
specularMap
;
a
.
envMap
=
this
.
envMap
;
a
.
combine
=
this
.
combine
;
a
.
reflectivity
=
this
.
reflectivity
;
a
.
refractionRatio
=
this
.
refractionRatio
;
a
.
fog
=
this
.
fog
;
a
.
shading
=
this
.
shading
;
a
.
wireframe
=
this
.
wireframe
;
a
.
wireframeLinewidth
=
this
.
wireframeLinewidth
;
a
.
wireframeLinecap
=
this
.
wireframeLinecap
;
a
.
wireframeLinejoin
=
this
.
wireframeLinejoin
;
a
.
vertexColors
=
this
.
vertexColors
;
a
.
skinning
=
this
.
skinning
;
a
.
morphTargets
=
this
.
morphTargets
;
a
.
morphNormals
=
this
.
morphNormals
;
return
a
};
THREE
.
MeshDepthMaterial
=
function
(
a
){
THREE
.
Material
.
call
(
this
);
this
.
wireframe
=!
1
;
this
.
wireframeLinewidth
=
1
;
this
.
setValues
(
a
)};
THREE
.
MeshDepthMaterial
.
prototype
=
Object
.
create
(
THREE
.
Material
.
prototype
);
THREE
.
MeshDepthMaterial
.
prototype
.
clone
=
function
(){
var
a
=
new
THREE
.
LineBasicMaterial
;
THREE
.
Material
.
prototype
.
clone
.
call
(
this
,
a
);
a
.
wireframe
=
this
.
wireframe
;
a
.
wireframeLinewidth
=
this
.
wireframeLinewidth
;
return
a
};
THREE
.
MeshNormalMaterial
=
function
(
a
){
THREE
.
Material
.
call
(
this
,
a
);
this
.
shading
=
THREE
.
FlatShading
;
this
.
wireframe
=!
1
;
this
.
wireframeLinewidth
=
1
;
this
.
setValues
(
a
)};
THREE
.
MeshNormalMaterial
.
prototype
=
Object
.
create
(
THREE
.
Material
.
prototype
);
THREE
.
MeshNormalMaterial
.
prototype
.
clone
=
function
(){
var
a
=
new
THREE
.
MeshNormalMaterial
;
THREE
.
Material
.
prototype
.
clone
.
call
(
this
,
a
);
a
.
shading
=
this
.
shading
;
a
.
wireframe
=
this
.
wireframe
;
a
.
wireframeLinewidth
=
this
.
wireframeLinewidth
;
return
a
};
THREE
.
MeshFaceMaterial
=
function
(
a
){
this
.
materials
=
a
instanceof
Array
?
a
:[]};
THREE
.
MeshFaceMaterial
.
prototype
.
clone
=
function
(){
var
a
=
new
THREE
.
MeshFaceMaterial
;
a
.
materials
=
this
.
materials
;
return
a
};
THREE
.
ParticleBasicMaterial
=
function
(
a
){
THREE
.
Material
.
call
(
this
);
this
.
color
=
new
THREE
.
Color
(
16777215
);
this
.
map
=
null
;
this
.
size
=
1
;
this
.
sizeAttenuation
=!
0
;
this
.
vertexColors
=!
1
;
this
.
fog
=!
0
;
this
.
setValues
(
a
)};
THREE
.
ParticleBasicMaterial
.
prototype
=
Object
.
create
(
THREE
.
Material
.
prototype
);
THREE
.
MeshFaceMaterial
=
function
(
a
){
this
.
materials
=
a
instanceof
Array
?
a
:[]};
THREE
.
MeshFaceMaterial
.
prototype
.
clone
=
function
(){
return
new
THREE
.
MeshFaceMaterial
(
this
.
materials
.
slice
(
0
))
};
THREE
.
ParticleBasicMaterial
=
function
(
a
){
THREE
.
Material
.
call
(
this
);
this
.
color
=
new
THREE
.
Color
(
16777215
);
this
.
map
=
null
;
this
.
size
=
1
;
this
.
sizeAttenuation
=!
0
;
this
.
vertexColors
=!
1
;
this
.
fog
=!
0
;
this
.
setValues
(
a
)};
THREE
.
ParticleBasicMaterial
.
prototype
=
Object
.
create
(
THREE
.
Material
.
prototype
);
THREE
.
ParticleBasicMaterial
.
prototype
.
clone
=
function
(){
var
a
=
new
THREE
.
ParticleBasicMaterial
;
THREE
.
Material
.
prototype
.
clone
.
call
(
this
,
a
);
a
.
color
.
copy
(
this
.
color
);
a
.
map
=
this
.
map
;
a
.
size
=
this
.
size
;
a
.
sizeAttenuation
=
this
.
sizeAttenuation
;
a
.
vertexColors
=
this
.
vertexColors
;
a
.
fog
=
this
.
fog
;
return
a
};
THREE
.
ParticleCanvasMaterial
=
function
(
a
){
THREE
.
Material
.
call
(
this
);
this
.
color
=
new
THREE
.
Color
(
16777215
);
this
.
program
=
function
(){};
this
.
setValues
(
a
)};
THREE
.
ParticleCanvasMaterial
.
prototype
=
Object
.
create
(
THREE
.
Material
.
prototype
);
THREE
.
ParticleCanvasMaterial
.
prototype
.
clone
=
function
(){
var
a
=
new
THREE
.
ParticleCanvasMaterial
;
THREE
.
Material
.
prototype
.
clone
.
call
(
this
,
a
);
a
.
color
.
copy
(
this
.
color
);
a
.
program
=
this
.
program
;
return
a
};
THREE
.
ParticleDOMMaterial
=
function
(
a
){
this
.
element
=
a
};
THREE
.
ParticleDOMMaterial
.
prototype
.
clone
=
function
(){
return
new
THREE
.
ParticleDOMMaterial
(
this
.
element
)};
THREE
.
ShaderMaterial
=
function
(
a
){
THREE
.
Material
.
call
(
this
);
this
.
vertexShader
=
this
.
fragmentShader
=
"
void main() {}
"
;
this
.
uniforms
=
{};
this
.
defines
=
{};
this
.
attributes
=
null
;
this
.
shading
=
THREE
.
SmoothShading
;
this
.
wireframe
=!
1
;
this
.
wireframeLinewidth
=
1
;
this
.
lights
=
this
.
fog
=!
1
;
this
.
vertexColors
=
THREE
.
NoColors
;
this
.
morphNormals
=
this
.
morphTargets
=
this
.
skinning
=!
1
;
this
.
setValues
(
a
)};
THREE
.
ShaderMaterial
.
prototype
=
Object
.
create
(
THREE
.
Material
.
prototype
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录