Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
4b962fa4
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,发现更多精彩内容 >>
提交
4b962fa4
编写于
8月 06, 2012
作者:
L
libra guest
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add material.clone
上级
43daa51a
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
72 addition
and
0 deletion
+72
-0
src/core/Color.js
src/core/Color.js
+1
-0
src/materials/LineBasicMaterial.js
src/materials/LineBasicMaterial.js
+7
-0
src/materials/Material.js
src/materials/Material.js
+5
-0
src/materials/MeshBasicMaterial.js
src/materials/MeshBasicMaterial.js
+6
-0
src/materials/MeshDepthMaterial.js
src/materials/MeshDepthMaterial.js
+5
-0
src/materials/MeshFaceMaterial.js
src/materials/MeshFaceMaterial.js
+7
-0
src/materials/MeshLambertMaterial.js
src/materials/MeshLambertMaterial.js
+6
-0
src/materials/MeshNormalMaterial.js
src/materials/MeshNormalMaterial.js
+6
-0
src/materials/MeshPhongMaterial.js
src/materials/MeshPhongMaterial.js
+7
-0
src/materials/ParticleBasicMaterial.js
src/materials/ParticleBasicMaterial.js
+5
-0
src/materials/ParticleCanvasMaterial.js
src/materials/ParticleCanvasMaterial.js
+5
-0
src/materials/ParticleDOMMaterial.js
src/materials/ParticleDOMMaterial.js
+6
-0
src/materials/ShaderMaterial.js
src/materials/ShaderMaterial.js
+6
-0
未找到文件。
src/core/Color.js
浏览文件 @
4b962fa4
...
...
@@ -4,6 +4,7 @@
THREE
.
Color
=
function
(
hex
)
{
if
(
hex
instanceof
THREE
.
Color
)
return
this
.
clone
();
if
(
hex
!==
undefined
)
this
.
setHex
(
hex
);
return
this
;
...
...
src/materials/LineBasicMaterial.js
浏览文件 @
4b962fa4
...
...
@@ -38,3 +38,10 @@ THREE.LineBasicMaterial = function ( parameters ) {
};
THREE
.
LineBasicMaterial
.
prototype
=
Object
.
create
(
THREE
.
Material
.
prototype
);
THREE
.
LineBasicMaterial
.
prototype
.
clone
=
function
(){
var
returnValue
=
new
THREE
.
LineBasicMaterial
(
this
);
return
returnValue
;
};
src/materials/Material.js
浏览文件 @
4b962fa4
...
...
@@ -39,4 +39,9 @@ THREE.Material = function ( parameters ) {
}
THREE
.
Material
.
prototype
.
clone
=
function
(){
var
returnValue
=
new
THREE
.
Material
(
this
);
return
returnValue
;
};
THREE
.
MaterialCount
=
0
;
src/materials/MeshBasicMaterial.js
浏览文件 @
4b962fa4
...
...
@@ -66,3 +66,9 @@ THREE.MeshBasicMaterial = function ( parameters ) {
};
THREE
.
MeshBasicMaterial
.
prototype
=
Object
.
create
(
THREE
.
Material
.
prototype
);
THREE
.
MeshBasicMaterial
.
prototype
.
clone
=
function
(){
var
returnValue
=
new
THREE
.
MeshBasicMaterial
(
this
);
return
returnValue
;
};
src/materials/MeshDepthMaterial.js
浏览文件 @
4b962fa4
...
...
@@ -27,3 +27,8 @@ THREE.MeshDepthMaterial = function ( parameters ) {
};
THREE
.
MeshDepthMaterial
.
prototype
=
Object
.
create
(
THREE
.
Material
.
prototype
);
THREE
.
MeshDepthMaterial
.
prototype
.
clone
=
function
(){
var
returnValue
=
new
THREE
.
MeshDepthMaterial
(
this
);
return
returnValue
;
};
src/materials/MeshFaceMaterial.js
浏览文件 @
4b962fa4
...
...
@@ -7,3 +7,10 @@ THREE.MeshFaceMaterial = function ( parameters ) {
THREE
.
Material
.
call
(
this
,
parameters
);
};
THREE
.
MeshFaceMaterial
.
prototype
.
clone
=
function
(){
var
returnValue
=
new
THREE
.
MeshFaceMaterial
(
this
);
return
returnValue
;
};
\ No newline at end of file
src/materials/MeshLambertMaterial.js
浏览文件 @
4b962fa4
...
...
@@ -76,3 +76,9 @@ THREE.MeshLambertMaterial = function ( parameters ) {
};
THREE
.
MeshLambertMaterial
.
prototype
=
Object
.
create
(
THREE
.
Material
.
prototype
);
THREE
.
MeshLambertMaterial
.
prototype
.
clone
=
function
(){
var
returnValue
=
new
THREE
.
MeshLambertMaterial
(
this
);
returnValue
.
wrapRGB
=
this
.
wrapRGB
.
clone
();
return
returnValue
;
};
src/materials/MeshNormalMaterial.js
浏览文件 @
4b962fa4
...
...
@@ -27,3 +27,9 @@ THREE.MeshNormalMaterial = function ( parameters ) {
};
THREE
.
MeshNormalMaterial
.
prototype
=
Object
.
create
(
THREE
.
Material
.
prototype
);
THREE
.
MeshNormalMaterial
.
prototype
.
clone
=
function
(){
var
returnValue
=
new
THREE
.
MeshNormalMaterial
(
this
);
return
returnValue
;
};
\ No newline at end of file
src/materials/MeshPhongMaterial.js
浏览文件 @
4b962fa4
...
...
@@ -83,3 +83,10 @@ THREE.MeshPhongMaterial = function ( parameters ) {
};
THREE
.
MeshPhongMaterial
.
prototype
=
Object
.
create
(
THREE
.
Material
.
prototype
);
THREE
.
MeshPhongMaterial
.
prototype
.
clone
=
function
(){
var
returnValue
=
new
THREE
.
MeshPhongMaterial
(
this
);
returnValue
.
wrapRGB
=
this
.
wrapRGB
.
clone
();
return
returnValue
;
};
src/materials/ParticleBasicMaterial.js
浏览文件 @
4b962fa4
...
...
@@ -38,3 +38,8 @@ THREE.ParticleBasicMaterial = function ( parameters ) {
};
THREE
.
ParticleBasicMaterial
.
prototype
=
Object
.
create
(
THREE
.
Material
.
prototype
);
THREE
.
ParticleBasicMaterial
.
prototype
.
clone
=
function
(){
var
returnValue
=
new
THREE
.
ParticleBasicMaterial
(
this
);
return
returnValue
;
};
\ No newline at end of file
src/materials/ParticleCanvasMaterial.js
浏览文件 @
4b962fa4
...
...
@@ -21,3 +21,8 @@ THREE.ParticleCanvasMaterial = function ( parameters ) {
};
THREE
.
ParticleCanvasMaterial
.
prototype
=
Object
.
create
(
THREE
.
Material
.
prototype
);
THREE
.
ParticleCanvasMaterial
.
prototype
.
clone
=
function
(){
var
returnValue
=
new
THREE
.
ParticleCanvasMaterial
(
this
);
return
returnValue
;
};
\ No newline at end of file
src/materials/ParticleDOMMaterial.js
浏览文件 @
4b962fa4
...
...
@@ -9,3 +9,9 @@ THREE.ParticleDOMMaterial = function ( domElement ) {
this
.
domElement
=
domElement
;
};
THREE
.
ParticleDOMMaterial
.
prototype
.
clone
=
function
(){
var
returnValue
=
new
THREE
.
ParticleDOMMaterial
(
this
);
return
returnValue
;
};
\ No newline at end of file
src/materials/ShaderMaterial.js
浏览文件 @
4b962fa4
...
...
@@ -56,3 +56,9 @@ THREE.ShaderMaterial = function ( parameters ) {
};
THREE
.
ShaderMaterial
.
prototype
=
Object
.
create
(
THREE
.
Material
.
prototype
);
THREE
.
ShaderMaterial
.
prototype
.
clone
=
function
(){
var
returnValue
=
new
THREE
.
ShaderMaterial
(
this
);
return
returnValue
;
};
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录