Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fktz008
three.js
提交
5da812d1
T
three.js
项目概览
fktz008
/
three.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
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,发现更多精彩内容 >>
提交
5da812d1
编写于
1月 30, 2012
作者:
A
alteredq
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' into cascaded_shadowmaps
上级
c42478fa
f59ed3e2
变更
15
展开全部
隐藏空白更改
内联
并排
Showing
15 changed file
with
350 addition
and
353 deletion
+350
-353
build/Three.js
build/Three.js
+214
-213
build/custom/ThreeCanvas.js
build/custom/ThreeCanvas.js
+4
-4
build/custom/ThreeExtras.js
build/custom/ThreeExtras.js
+104
-103
build/custom/ThreeSVG.js
build/custom/ThreeSVG.js
+4
-4
build/custom/ThreeWebGL.js
build/custom/ThreeWebGL.js
+4
-4
examples/webgl_loader_ctm.html
examples/webgl_loader_ctm.html
+1
-1
examples/webgl_loader_ctm_materials.html
examples/webgl_loader_ctm_materials.html
+1
-1
examples/webgl_materials_cars.html
examples/webgl_materials_cars.html
+1
-1
examples/webgl_materials_cars_anaglyph.html
examples/webgl_materials_cars_anaglyph.html
+1
-1
examples/webgl_materials_cars_camaro_crosseyed.html
examples/webgl_materials_cars_camaro_crosseyed.html
+1
-1
examples/webgl_morphtargets.html
examples/webgl_morphtargets.html
+1
-1
src/extras/ShaderUtils.js
src/extras/ShaderUtils.js
+2
-2
src/extras/loaders/SceneLoader.js
src/extras/loaders/SceneLoader.js
+10
-15
src/materials/MeshLambertMaterial.js
src/materials/MeshLambertMaterial.js
+1
-1
src/materials/MeshPhongMaterial.js
src/materials/MeshPhongMaterial.js
+1
-1
未找到文件。
build/Three.js
浏览文件 @
5da812d1
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
build/custom/ThreeCanvas.js
浏览文件 @
5da812d1
...
...
@@ -108,10 +108,10 @@ THREE.LineBasicMaterial=function(a){THREE.Material.call(this,a);a=a||{};this.col
THREE
.
MeshBasicMaterial
=
function
(
a
){
THREE
.
Material
.
call
(
this
,
a
);
a
=
a
||
{};
this
.
color
=
void
0
!==
a
.
color
?
new
THREE
.
Color
(
a
.
color
):
new
THREE
.
Color
(
16777215
);
this
.
map
=
void
0
!==
a
.
map
?
a
.
map
:
null
;
this
.
lightMap
=
void
0
!==
a
.
lightMap
?
a
.
lightMap
:
null
;
this
.
envMap
=
void
0
!==
a
.
envMap
?
a
.
envMap
:
null
;
this
.
combine
=
void
0
!==
a
.
combine
?
a
.
combine
:
THREE
.
MultiplyOperation
;
this
.
reflectivity
=
void
0
!==
a
.
reflectivity
?
a
.
reflectivity
:
1
;
this
.
refractionRatio
=
void
0
!==
a
.
refractionRatio
?
a
.
refractionRatio
:
0.98
;
this
.
fog
=
void
0
!==
a
.
fog
?
a
.
fog
:
!
0
;
this
.
shading
=
void
0
!==
a
.
shading
?
a
.
shading
:
THREE
.
SmoothShading
;
this
.
wireframe
=
void
0
!==
a
.
wireframe
?
a
.
wireframe
:
!
1
;
this
.
wireframeLinewidth
=
void
0
!==
a
.
wireframeLinewidth
?
a
.
wireframeLinewidth
:
1
;
this
.
wireframeLinecap
=
void
0
!==
a
.
wireframeLinecap
?
a
.
wireframeLinecap
:
"
round
"
;
this
.
wireframeLinejoin
=
void
0
!==
a
.
wireframeLinejoin
?
a
.
wireframeLinejoin
:
"
round
"
;
this
.
vertexColors
=
void
0
!==
a
.
vertexColors
?
a
.
vertexColors
:
!
1
;
this
.
skinning
=
void
0
!==
a
.
skinning
?
a
.
skinning
:
!
1
;
this
.
morphTargets
=
void
0
!==
a
.
morphTargets
?
a
.
morphTargets
:
!
1
};
THREE
.
MeshBasicMaterial
.
prototype
=
new
THREE
.
Material
;
THREE
.
MeshBasicMaterial
.
prototype
.
constructor
=
THREE
.
MeshBasicMaterial
;
THREE
.
MeshLambertMaterial
=
function
(
a
){
THREE
.
Material
.
call
(
this
,
a
);
a
=
a
||
{};
this
.
color
=
void
0
!==
a
.
color
?
new
THREE
.
Color
(
a
.
color
):
new
THREE
.
Color
(
16777215
);
this
.
ambient
=
void
0
!==
a
.
ambient
?
new
THREE
.
Color
(
a
.
ambient
):
new
THREE
.
Color
(
328965
);
this
.
wrapAround
=
void
0
!==
a
.
wrapAround
?
a
.
wrapAround
:
!
1
;
this
.
wrapRGB
=
new
THREE
.
Vector3
(
1
,
1
,
1
);
this
.
map
=
void
0
!==
a
.
map
?
a
.
map
:
null
;
this
.
lightMap
=
void
0
!==
a
.
lightMap
?
a
.
lightMap
:
null
;
this
.
envMap
=
void
0
!==
a
.
envMap
?
a
.
envMap
:
null
;
this
.
combine
=
void
0
!==
a
.
combine
?
a
.
combine
:
THREE
.
MultiplyOperation
;
this
.
reflectivity
=
void
0
!==
a
.
reflectivity
?
a
.
reflectivity
:
1
;
this
.
refractionRatio
=
void
0
!==
a
.
refractionRatio
?
a
.
refractionRatio
:
0.98
;
this
.
fog
=
void
0
!==
a
.
fog
?
a
.
fog
:
!
0
;
this
.
shading
=
void
0
!==
a
.
shading
?
a
.
shading
:
THREE
.
SmoothShading
;
this
.
wireframe
=
void
0
!==
a
.
wireframe
?
a
.
wireframe
:
!
1
;
this
.
wireframeLinewidth
=
void
0
!==
a
.
wireframeLinewidth
?
a
.
wireframeLinewidth
:
1
;
this
.
wireframeLinecap
=
void
0
!==
a
.
wireframeLinecap
?
a
.
wireframeLinecap
:
"
round
"
;
this
.
wireframeLinejoin
=
void
0
!==
a
.
wireframeLinejoin
?
a
.
wireframeLinejoin
:
"
round
"
;
this
.
vertexColors
=
void
0
!==
a
.
vertexColors
?
a
.
vertexColors
:
!
1
;
this
.
skinning
=
void
0
!==
a
.
skinning
?
a
.
skinning
:
!
1
;
this
.
morphTargets
=
void
0
!==
a
.
morphTargets
?
a
.
morphTargets
:
!
1
};
THREE
.
MeshLambertMaterial
.
prototype
=
new
THREE
.
Material
;
THREE
.
MeshLambertMaterial
.
prototype
.
constructor
=
THREE
.
MeshLambertMaterial
;
THREE
.
MeshPhongMaterial
=
function
(
a
){
THREE
.
Material
.
call
(
this
,
a
);
a
=
a
||
{};
this
.
color
=
void
0
!==
a
.
color
?
new
THREE
.
Color
(
a
.
color
):
new
THREE
.
Color
(
16777215
);
this
.
ambient
=
void
0
!==
a
.
ambient
?
new
THREE
.
Color
(
a
.
ambient
):
new
THREE
.
Color
(
32896
5
);
this
.
specular
=
void
0
!==
a
.
specular
?
new
THREE
.
Color
(
a
.
specular
):
new
THREE
.
Color
(
1118481
);
this
.
shininess
=
void
0
!==
a
.
shininess
?
a
.
shininess
:
30
;
this
.
metal
=
void
0
!==
a
.
metal
?
a
.
metal
:
!
1
;
this
.
perPixel
=
void
0
!==
a
.
perPixel
?
a
.
perPixel
:
!
1
;
this
.
wrapAround
=
void
0
!==
a
.
wrapAround
?
a
.
wrapAround
:
THREE
.
MeshLambertMaterial
=
function
(
a
){
THREE
.
Material
.
call
(
this
,
a
);
a
=
a
||
{};
this
.
color
=
void
0
!==
a
.
color
?
new
THREE
.
Color
(
a
.
color
):
new
THREE
.
Color
(
16777215
);
this
.
ambient
=
void
0
!==
a
.
ambient
?
new
THREE
.
Color
(
a
.
ambient
):
new
THREE
.
Color
(
16777215
);
this
.
wrapAround
=
void
0
!==
a
.
wrapAround
?
a
.
wrapAround
:
!
1
;
this
.
wrapRGB
=
new
THREE
.
Vector3
(
1
,
1
,
1
);
this
.
map
=
void
0
!==
a
.
map
?
a
.
map
:
null
;
this
.
lightMap
=
void
0
!==
a
.
lightMap
?
a
.
lightMap
:
null
;
this
.
envMap
=
void
0
!==
a
.
envMap
?
a
.
envMap
:
null
;
this
.
combine
=
void
0
!==
a
.
combine
?
a
.
combine
:
THREE
.
MultiplyOperation
;
this
.
reflectivity
=
void
0
!==
a
.
reflectivity
?
a
.
reflectivity
:
1
;
this
.
refractionRatio
=
void
0
!==
a
.
refractionRatio
?
a
.
refractionRatio
:
0.98
;
this
.
fog
=
void
0
!==
a
.
fog
?
a
.
fog
:
!
0
;
this
.
shading
=
void
0
!==
a
.
shading
?
a
.
shading
:
THREE
.
SmoothShading
;
this
.
wireframe
=
void
0
!==
a
.
wireframe
?
a
.
wireframe
:
!
1
;
this
.
wireframeLinewidth
=
void
0
!==
a
.
wireframeLinewidth
?
a
.
wireframeLinewidth
:
1
;
this
.
wireframeLinecap
=
void
0
!==
a
.
wireframeLinecap
?
a
.
wireframeLinecap
:
"
round
"
;
this
.
wireframeLinejoin
=
void
0
!==
a
.
wireframeLinejoin
?
a
.
wireframeLinejoin
:
"
round
"
;
this
.
vertexColors
=
void
0
!==
a
.
vertexColors
?
a
.
vertexColors
:
!
1
;
this
.
skinning
=
void
0
!==
a
.
skinning
?
a
.
skinning
:
!
1
;
this
.
morphTargets
=
void
0
!==
a
.
morphTargets
?
a
.
morphTargets
:
!
1
};
THREE
.
MeshLambertMaterial
.
prototype
=
new
THREE
.
Material
;
THREE
.
MeshLambertMaterial
.
prototype
.
constructor
=
THREE
.
MeshLambertMaterial
;
THREE
.
MeshPhongMaterial
=
function
(
a
){
THREE
.
Material
.
call
(
this
,
a
);
a
=
a
||
{};
this
.
color
=
void
0
!==
a
.
color
?
new
THREE
.
Color
(
a
.
color
):
new
THREE
.
Color
(
16777215
);
this
.
ambient
=
void
0
!==
a
.
ambient
?
new
THREE
.
Color
(
a
.
ambient
):
new
THREE
.
Color
(
1677721
5
);
this
.
specular
=
void
0
!==
a
.
specular
?
new
THREE
.
Color
(
a
.
specular
):
new
THREE
.
Color
(
1118481
);
this
.
shininess
=
void
0
!==
a
.
shininess
?
a
.
shininess
:
30
;
this
.
metal
=
void
0
!==
a
.
metal
?
a
.
metal
:
!
1
;
this
.
perPixel
=
void
0
!==
a
.
perPixel
?
a
.
perPixel
:
!
1
;
this
.
wrapAround
=
void
0
!==
a
.
wrapAround
?
a
.
wrapAround
:
!
1
;
this
.
wrapRGB
=
new
THREE
.
Vector3
(
1
,
1
,
1
);
this
.
map
=
void
0
!==
a
.
map
?
a
.
map
:
null
;
this
.
lightMap
=
void
0
!==
a
.
lightMap
?
a
.
lightMap
:
null
;
this
.
envMap
=
void
0
!==
a
.
envMap
?
a
.
envMap
:
null
;
this
.
combine
=
void
0
!==
a
.
combine
?
a
.
combine
:
THREE
.
MultiplyOperation
;
this
.
reflectivity
=
void
0
!==
a
.
reflectivity
?
a
.
reflectivity
:
1
;
this
.
refractionRatio
=
void
0
!==
a
.
refractionRatio
?
a
.
refractionRatio
:
0.98
;
this
.
fog
=
void
0
!==
a
.
fog
?
a
.
fog
:
!
0
;
this
.
shading
=
void
0
!==
a
.
shading
?
a
.
shading
:
THREE
.
SmoothShading
;
this
.
wireframe
=
void
0
!==
a
.
wireframe
?
a
.
wireframe
:
!
1
;
this
.
wireframeLinewidth
=
void
0
!==
a
.
wireframeLinewidth
?
a
.
wireframeLinewidth
:
1
;
this
.
wireframeLinecap
=
void
0
!==
a
.
wireframeLinecap
?
a
.
wireframeLinecap
:
"
round
"
;
this
.
wireframeLinejoin
=
void
0
!==
a
.
wireframeLinejoin
?
a
.
wireframeLinejoin
:
"
round
"
;
this
.
vertexColors
=
void
0
!==
a
.
vertexColors
?
a
.
vertexColors
:
!
1
;
this
.
skinning
=
void
0
!==
a
.
skinning
?
a
.
skinning
:
!
1
;
this
.
morphTargets
=
void
0
!==
a
.
morphTargets
?
a
.
morphTargets
:
!
1
};
THREE
.
MeshPhongMaterial
.
prototype
=
new
THREE
.
Material
;
THREE
.
MeshPhongMaterial
.
prototype
.
constructor
=
THREE
.
MeshPhongMaterial
;
THREE
.
MeshDepthMaterial
=
function
(
a
){
THREE
.
Material
.
call
(
this
,
a
);
a
=
a
||
{};
this
.
shading
=
void
0
!==
a
.
shading
?
a
.
shading
:
THREE
.
SmoothShading
;
this
.
wireframe
=
void
0
!==
a
.
wireframe
?
a
.
wireframe
:
!
1
;
this
.
wireframeLinewidth
=
void
0
!==
a
.
wireframeLinewidth
?
a
.
wireframeLinewidth
:
1
};
THREE
.
MeshDepthMaterial
.
prototype
=
new
THREE
.
Material
;
THREE
.
MeshDepthMaterial
.
prototype
.
constructor
=
THREE
.
MeshDepthMaterial
;
...
...
build/custom/ThreeExtras.js
浏览文件 @
5da812d1
此差异已折叠。
点击以展开。
build/custom/ThreeSVG.js
浏览文件 @
5da812d1
...
...
@@ -108,10 +108,10 @@ THREE.LineBasicMaterial=function(a){THREE.Material.call(this,a);a=a||{};this.col
THREE
.
MeshBasicMaterial
=
function
(
a
){
THREE
.
Material
.
call
(
this
,
a
);
a
=
a
||
{};
this
.
color
=
void
0
!==
a
.
color
?
new
THREE
.
Color
(
a
.
color
):
new
THREE
.
Color
(
16777215
);
this
.
map
=
void
0
!==
a
.
map
?
a
.
map
:
null
;
this
.
lightMap
=
void
0
!==
a
.
lightMap
?
a
.
lightMap
:
null
;
this
.
envMap
=
void
0
!==
a
.
envMap
?
a
.
envMap
:
null
;
this
.
combine
=
void
0
!==
a
.
combine
?
a
.
combine
:
THREE
.
MultiplyOperation
;
this
.
reflectivity
=
void
0
!==
a
.
reflectivity
?
a
.
reflectivity
:
1
;
this
.
refractionRatio
=
void
0
!==
a
.
refractionRatio
?
a
.
refractionRatio
:
0.98
;
this
.
fog
=
void
0
!==
a
.
fog
?
a
.
fog
:
!
0
;
this
.
shading
=
void
0
!==
a
.
shading
?
a
.
shading
:
THREE
.
SmoothShading
;
this
.
wireframe
=
void
0
!==
a
.
wireframe
?
a
.
wireframe
:
!
1
;
this
.
wireframeLinewidth
=
void
0
!==
a
.
wireframeLinewidth
?
a
.
wireframeLinewidth
:
1
;
this
.
wireframeLinecap
=
void
0
!==
a
.
wireframeLinecap
?
a
.
wireframeLinecap
:
"
round
"
;
this
.
wireframeLinejoin
=
void
0
!==
a
.
wireframeLinejoin
?
a
.
wireframeLinejoin
:
"
round
"
;
this
.
vertexColors
=
void
0
!==
a
.
vertexColors
?
a
.
vertexColors
:
!
1
;
this
.
skinning
=
void
0
!==
a
.
skinning
?
a
.
skinning
:
!
1
;
this
.
morphTargets
=
void
0
!==
a
.
morphTargets
?
a
.
morphTargets
:
!
1
};
THREE
.
MeshBasicMaterial
.
prototype
=
new
THREE
.
Material
;
THREE
.
MeshBasicMaterial
.
prototype
.
constructor
=
THREE
.
MeshBasicMaterial
;
THREE
.
MeshLambertMaterial
=
function
(
a
){
THREE
.
Material
.
call
(
this
,
a
);
a
=
a
||
{};
this
.
color
=
void
0
!==
a
.
color
?
new
THREE
.
Color
(
a
.
color
):
new
THREE
.
Color
(
16777215
);
this
.
ambient
=
void
0
!==
a
.
ambient
?
new
THREE
.
Color
(
a
.
ambient
):
new
THREE
.
Color
(
328965
);
this
.
wrapAround
=
void
0
!==
a
.
wrapAround
?
a
.
wrapAround
:
!
1
;
this
.
wrapRGB
=
new
THREE
.
Vector3
(
1
,
1
,
1
);
this
.
map
=
void
0
!==
a
.
map
?
a
.
map
:
null
;
this
.
lightMap
=
void
0
!==
a
.
lightMap
?
a
.
lightMap
:
null
;
this
.
envMap
=
void
0
!==
a
.
envMap
?
a
.
envMap
:
null
;
this
.
combine
=
void
0
!==
a
.
combine
?
a
.
combine
:
THREE
.
MultiplyOperation
;
this
.
reflectivity
=
void
0
!==
a
.
reflectivity
?
a
.
reflectivity
:
1
;
this
.
refractionRatio
=
void
0
!==
a
.
refractionRatio
?
a
.
refractionRatio
:
0.98
;
this
.
fog
=
void
0
!==
a
.
fog
?
a
.
fog
:
!
0
;
this
.
shading
=
void
0
!==
a
.
shading
?
a
.
shading
:
THREE
.
SmoothShading
;
this
.
wireframe
=
void
0
!==
a
.
wireframe
?
a
.
wireframe
:
!
1
;
this
.
wireframeLinewidth
=
void
0
!==
a
.
wireframeLinewidth
?
a
.
wireframeLinewidth
:
1
;
this
.
wireframeLinecap
=
void
0
!==
a
.
wireframeLinecap
?
a
.
wireframeLinecap
:
"
round
"
;
this
.
wireframeLinejoin
=
void
0
!==
a
.
wireframeLinejoin
?
a
.
wireframeLinejoin
:
"
round
"
;
this
.
vertexColors
=
void
0
!==
a
.
vertexColors
?
a
.
vertexColors
:
!
1
;
this
.
skinning
=
void
0
!==
a
.
skinning
?
a
.
skinning
:
!
1
;
this
.
morphTargets
=
void
0
!==
a
.
morphTargets
?
a
.
morphTargets
:
!
1
};
THREE
.
MeshLambertMaterial
.
prototype
=
new
THREE
.
Material
;
THREE
.
MeshLambertMaterial
.
prototype
.
constructor
=
THREE
.
MeshLambertMaterial
;
THREE
.
MeshPhongMaterial
=
function
(
a
){
THREE
.
Material
.
call
(
this
,
a
);
a
=
a
||
{};
this
.
color
=
void
0
!==
a
.
color
?
new
THREE
.
Color
(
a
.
color
):
new
THREE
.
Color
(
16777215
);
this
.
ambient
=
void
0
!==
a
.
ambient
?
new
THREE
.
Color
(
a
.
ambient
):
new
THREE
.
Color
(
32896
5
);
this
.
specular
=
void
0
!==
a
.
specular
?
new
THREE
.
Color
(
a
.
specular
):
new
THREE
.
Color
(
1118481
);
this
.
shininess
=
void
0
!==
a
.
shininess
?
a
.
shininess
:
30
;
this
.
metal
=
void
0
!==
a
.
metal
?
a
.
metal
:
!
1
;
this
.
perPixel
=
void
0
!==
a
.
perPixel
?
a
.
perPixel
:
!
1
;
this
.
wrapAround
=
void
0
!==
a
.
wrapAround
?
a
.
wrapAround
:
THREE
.
MeshLambertMaterial
=
function
(
a
){
THREE
.
Material
.
call
(
this
,
a
);
a
=
a
||
{};
this
.
color
=
void
0
!==
a
.
color
?
new
THREE
.
Color
(
a
.
color
):
new
THREE
.
Color
(
16777215
);
this
.
ambient
=
void
0
!==
a
.
ambient
?
new
THREE
.
Color
(
a
.
ambient
):
new
THREE
.
Color
(
16777215
);
this
.
wrapAround
=
void
0
!==
a
.
wrapAround
?
a
.
wrapAround
:
!
1
;
this
.
wrapRGB
=
new
THREE
.
Vector3
(
1
,
1
,
1
);
this
.
map
=
void
0
!==
a
.
map
?
a
.
map
:
null
;
this
.
lightMap
=
void
0
!==
a
.
lightMap
?
a
.
lightMap
:
null
;
this
.
envMap
=
void
0
!==
a
.
envMap
?
a
.
envMap
:
null
;
this
.
combine
=
void
0
!==
a
.
combine
?
a
.
combine
:
THREE
.
MultiplyOperation
;
this
.
reflectivity
=
void
0
!==
a
.
reflectivity
?
a
.
reflectivity
:
1
;
this
.
refractionRatio
=
void
0
!==
a
.
refractionRatio
?
a
.
refractionRatio
:
0.98
;
this
.
fog
=
void
0
!==
a
.
fog
?
a
.
fog
:
!
0
;
this
.
shading
=
void
0
!==
a
.
shading
?
a
.
shading
:
THREE
.
SmoothShading
;
this
.
wireframe
=
void
0
!==
a
.
wireframe
?
a
.
wireframe
:
!
1
;
this
.
wireframeLinewidth
=
void
0
!==
a
.
wireframeLinewidth
?
a
.
wireframeLinewidth
:
1
;
this
.
wireframeLinecap
=
void
0
!==
a
.
wireframeLinecap
?
a
.
wireframeLinecap
:
"
round
"
;
this
.
wireframeLinejoin
=
void
0
!==
a
.
wireframeLinejoin
?
a
.
wireframeLinejoin
:
"
round
"
;
this
.
vertexColors
=
void
0
!==
a
.
vertexColors
?
a
.
vertexColors
:
!
1
;
this
.
skinning
=
void
0
!==
a
.
skinning
?
a
.
skinning
:
!
1
;
this
.
morphTargets
=
void
0
!==
a
.
morphTargets
?
a
.
morphTargets
:
!
1
};
THREE
.
MeshLambertMaterial
.
prototype
=
new
THREE
.
Material
;
THREE
.
MeshLambertMaterial
.
prototype
.
constructor
=
THREE
.
MeshLambertMaterial
;
THREE
.
MeshPhongMaterial
=
function
(
a
){
THREE
.
Material
.
call
(
this
,
a
);
a
=
a
||
{};
this
.
color
=
void
0
!==
a
.
color
?
new
THREE
.
Color
(
a
.
color
):
new
THREE
.
Color
(
16777215
);
this
.
ambient
=
void
0
!==
a
.
ambient
?
new
THREE
.
Color
(
a
.
ambient
):
new
THREE
.
Color
(
1677721
5
);
this
.
specular
=
void
0
!==
a
.
specular
?
new
THREE
.
Color
(
a
.
specular
):
new
THREE
.
Color
(
1118481
);
this
.
shininess
=
void
0
!==
a
.
shininess
?
a
.
shininess
:
30
;
this
.
metal
=
void
0
!==
a
.
metal
?
a
.
metal
:
!
1
;
this
.
perPixel
=
void
0
!==
a
.
perPixel
?
a
.
perPixel
:
!
1
;
this
.
wrapAround
=
void
0
!==
a
.
wrapAround
?
a
.
wrapAround
:
!
1
;
this
.
wrapRGB
=
new
THREE
.
Vector3
(
1
,
1
,
1
);
this
.
map
=
void
0
!==
a
.
map
?
a
.
map
:
null
;
this
.
lightMap
=
void
0
!==
a
.
lightMap
?
a
.
lightMap
:
null
;
this
.
envMap
=
void
0
!==
a
.
envMap
?
a
.
envMap
:
null
;
this
.
combine
=
void
0
!==
a
.
combine
?
a
.
combine
:
THREE
.
MultiplyOperation
;
this
.
reflectivity
=
void
0
!==
a
.
reflectivity
?
a
.
reflectivity
:
1
;
this
.
refractionRatio
=
void
0
!==
a
.
refractionRatio
?
a
.
refractionRatio
:
0.98
;
this
.
fog
=
void
0
!==
a
.
fog
?
a
.
fog
:
!
0
;
this
.
shading
=
void
0
!==
a
.
shading
?
a
.
shading
:
THREE
.
SmoothShading
;
this
.
wireframe
=
void
0
!==
a
.
wireframe
?
a
.
wireframe
:
!
1
;
this
.
wireframeLinewidth
=
void
0
!==
a
.
wireframeLinewidth
?
a
.
wireframeLinewidth
:
1
;
this
.
wireframeLinecap
=
void
0
!==
a
.
wireframeLinecap
?
a
.
wireframeLinecap
:
"
round
"
;
this
.
wireframeLinejoin
=
void
0
!==
a
.
wireframeLinejoin
?
a
.
wireframeLinejoin
:
"
round
"
;
this
.
vertexColors
=
void
0
!==
a
.
vertexColors
?
a
.
vertexColors
:
!
1
;
this
.
skinning
=
void
0
!==
a
.
skinning
?
a
.
skinning
:
!
1
;
this
.
morphTargets
=
void
0
!==
a
.
morphTargets
?
a
.
morphTargets
:
!
1
};
THREE
.
MeshPhongMaterial
.
prototype
=
new
THREE
.
Material
;
THREE
.
MeshPhongMaterial
.
prototype
.
constructor
=
THREE
.
MeshPhongMaterial
;
THREE
.
MeshDepthMaterial
=
function
(
a
){
THREE
.
Material
.
call
(
this
,
a
);
a
=
a
||
{};
this
.
shading
=
void
0
!==
a
.
shading
?
a
.
shading
:
THREE
.
SmoothShading
;
this
.
wireframe
=
void
0
!==
a
.
wireframe
?
a
.
wireframe
:
!
1
;
this
.
wireframeLinewidth
=
void
0
!==
a
.
wireframeLinewidth
?
a
.
wireframeLinewidth
:
1
};
THREE
.
MeshDepthMaterial
.
prototype
=
new
THREE
.
Material
;
THREE
.
MeshDepthMaterial
.
prototype
.
constructor
=
THREE
.
MeshDepthMaterial
;
...
...
build/custom/ThreeWebGL.js
浏览文件 @
5da812d1
...
...
@@ -113,10 +113,10 @@ THREE.LineBasicMaterial=function(a){THREE.Material.call(this,a);a=a||{};this.col
THREE
.
MeshBasicMaterial
=
function
(
a
){
THREE
.
Material
.
call
(
this
,
a
);
a
=
a
||
{};
this
.
color
=
void
0
!==
a
.
color
?
new
THREE
.
Color
(
a
.
color
):
new
THREE
.
Color
(
16777215
);
this
.
map
=
void
0
!==
a
.
map
?
a
.
map
:
null
;
this
.
lightMap
=
void
0
!==
a
.
lightMap
?
a
.
lightMap
:
null
;
this
.
envMap
=
void
0
!==
a
.
envMap
?
a
.
envMap
:
null
;
this
.
combine
=
void
0
!==
a
.
combine
?
a
.
combine
:
THREE
.
MultiplyOperation
;
this
.
reflectivity
=
void
0
!==
a
.
reflectivity
?
a
.
reflectivity
:
1
;
this
.
refractionRatio
=
void
0
!==
a
.
refractionRatio
?
a
.
refractionRatio
:
0.98
;
this
.
fog
=
void
0
!==
a
.
fog
?
a
.
fog
:
!
0
;
this
.
shading
=
void
0
!==
a
.
shading
?
a
.
shading
:
THREE
.
SmoothShading
;
this
.
wireframe
=
void
0
!==
a
.
wireframe
?
a
.
wireframe
:
!
1
;
this
.
wireframeLinewidth
=
void
0
!==
a
.
wireframeLinewidth
?
a
.
wireframeLinewidth
:
1
;
this
.
wireframeLinecap
=
void
0
!==
a
.
wireframeLinecap
?
a
.
wireframeLinecap
:
"
round
"
;
this
.
wireframeLinejoin
=
void
0
!==
a
.
wireframeLinejoin
?
a
.
wireframeLinejoin
:
"
round
"
;
this
.
vertexColors
=
void
0
!==
a
.
vertexColors
?
a
.
vertexColors
:
!
1
;
this
.
skinning
=
void
0
!==
a
.
skinning
?
a
.
skinning
:
!
1
;
this
.
morphTargets
=
void
0
!==
a
.
morphTargets
?
a
.
morphTargets
:
!
1
};
THREE
.
MeshBasicMaterial
.
prototype
=
new
THREE
.
Material
;
THREE
.
MeshBasicMaterial
.
prototype
.
constructor
=
THREE
.
MeshBasicMaterial
;
THREE
.
MeshLambertMaterial
=
function
(
a
){
THREE
.
Material
.
call
(
this
,
a
);
a
=
a
||
{};
this
.
color
=
void
0
!==
a
.
color
?
new
THREE
.
Color
(
a
.
color
):
new
THREE
.
Color
(
16777215
);
this
.
ambient
=
void
0
!==
a
.
ambient
?
new
THREE
.
Color
(
a
.
ambient
):
new
THREE
.
Color
(
328965
);
this
.
wrapAround
=
void
0
!==
a
.
wrapAround
?
a
.
wrapAround
:
!
1
;
this
.
wrapRGB
=
new
THREE
.
Vector3
(
1
,
1
,
1
);
this
.
map
=
void
0
!==
a
.
map
?
a
.
map
:
null
;
this
.
lightMap
=
void
0
!==
a
.
lightMap
?
a
.
lightMap
:
null
;
this
.
envMap
=
void
0
!==
a
.
envMap
?
a
.
envMap
:
null
;
this
.
combine
=
void
0
!==
a
.
combine
?
a
.
combine
:
THREE
.
MultiplyOperation
;
this
.
reflectivity
=
void
0
!==
a
.
reflectivity
?
a
.
reflectivity
:
1
;
this
.
refractionRatio
=
void
0
!==
a
.
refractionRatio
?
a
.
refractionRatio
:
0.98
;
this
.
fog
=
void
0
!==
a
.
fog
?
a
.
fog
:
!
0
;
this
.
shading
=
void
0
!==
a
.
shading
?
a
.
shading
:
THREE
.
SmoothShading
;
this
.
wireframe
=
void
0
!==
a
.
wireframe
?
a
.
wireframe
:
!
1
;
this
.
wireframeLinewidth
=
void
0
!==
a
.
wireframeLinewidth
?
a
.
wireframeLinewidth
:
1
;
this
.
wireframeLinecap
=
void
0
!==
a
.
wireframeLinecap
?
a
.
wireframeLinecap
:
"
round
"
;
this
.
wireframeLinejoin
=
void
0
!==
a
.
wireframeLinejoin
?
a
.
wireframeLinejoin
:
"
round
"
;
this
.
vertexColors
=
void
0
!==
a
.
vertexColors
?
a
.
vertexColors
:
!
1
;
this
.
skinning
=
void
0
!==
a
.
skinning
?
a
.
skinning
:
!
1
;
this
.
morphTargets
=
void
0
!==
a
.
morphTargets
?
a
.
morphTargets
:
!
1
};
THREE
.
MeshLambertMaterial
.
prototype
=
new
THREE
.
Material
;
THREE
.
MeshLambertMaterial
.
prototype
.
constructor
=
THREE
.
MeshLambertMaterial
;
THREE
.
MeshPhongMaterial
=
function
(
a
){
THREE
.
Material
.
call
(
this
,
a
);
a
=
a
||
{};
this
.
color
=
void
0
!==
a
.
color
?
new
THREE
.
Color
(
a
.
color
):
new
THREE
.
Color
(
16777215
);
this
.
ambient
=
void
0
!==
a
.
ambient
?
new
THREE
.
Color
(
a
.
ambient
):
new
THREE
.
Color
(
32896
5
);
this
.
specular
=
void
0
!==
a
.
specular
?
new
THREE
.
Color
(
a
.
specular
):
new
THREE
.
Color
(
1118481
);
this
.
shininess
=
void
0
!==
a
.
shininess
?
a
.
shininess
:
30
;
this
.
metal
=
void
0
!==
a
.
metal
?
a
.
metal
:
!
1
;
this
.
perPixel
=
void
0
!==
a
.
perPixel
?
a
.
perPixel
:
!
1
;
this
.
wrapAround
=
void
0
!==
a
.
wrapAround
?
a
.
wrapAround
:
THREE
.
MeshLambertMaterial
=
function
(
a
){
THREE
.
Material
.
call
(
this
,
a
);
a
=
a
||
{};
this
.
color
=
void
0
!==
a
.
color
?
new
THREE
.
Color
(
a
.
color
):
new
THREE
.
Color
(
16777215
);
this
.
ambient
=
void
0
!==
a
.
ambient
?
new
THREE
.
Color
(
a
.
ambient
):
new
THREE
.
Color
(
16777215
);
this
.
wrapAround
=
void
0
!==
a
.
wrapAround
?
a
.
wrapAround
:
!
1
;
this
.
wrapRGB
=
new
THREE
.
Vector3
(
1
,
1
,
1
);
this
.
map
=
void
0
!==
a
.
map
?
a
.
map
:
null
;
this
.
lightMap
=
void
0
!==
a
.
lightMap
?
a
.
lightMap
:
null
;
this
.
envMap
=
void
0
!==
a
.
envMap
?
a
.
envMap
:
null
;
this
.
combine
=
void
0
!==
a
.
combine
?
a
.
combine
:
THREE
.
MultiplyOperation
;
this
.
reflectivity
=
void
0
!==
a
.
reflectivity
?
a
.
reflectivity
:
1
;
this
.
refractionRatio
=
void
0
!==
a
.
refractionRatio
?
a
.
refractionRatio
:
0.98
;
this
.
fog
=
void
0
!==
a
.
fog
?
a
.
fog
:
!
0
;
this
.
shading
=
void
0
!==
a
.
shading
?
a
.
shading
:
THREE
.
SmoothShading
;
this
.
wireframe
=
void
0
!==
a
.
wireframe
?
a
.
wireframe
:
!
1
;
this
.
wireframeLinewidth
=
void
0
!==
a
.
wireframeLinewidth
?
a
.
wireframeLinewidth
:
1
;
this
.
wireframeLinecap
=
void
0
!==
a
.
wireframeLinecap
?
a
.
wireframeLinecap
:
"
round
"
;
this
.
wireframeLinejoin
=
void
0
!==
a
.
wireframeLinejoin
?
a
.
wireframeLinejoin
:
"
round
"
;
this
.
vertexColors
=
void
0
!==
a
.
vertexColors
?
a
.
vertexColors
:
!
1
;
this
.
skinning
=
void
0
!==
a
.
skinning
?
a
.
skinning
:
!
1
;
this
.
morphTargets
=
void
0
!==
a
.
morphTargets
?
a
.
morphTargets
:
!
1
};
THREE
.
MeshLambertMaterial
.
prototype
=
new
THREE
.
Material
;
THREE
.
MeshLambertMaterial
.
prototype
.
constructor
=
THREE
.
MeshLambertMaterial
;
THREE
.
MeshPhongMaterial
=
function
(
a
){
THREE
.
Material
.
call
(
this
,
a
);
a
=
a
||
{};
this
.
color
=
void
0
!==
a
.
color
?
new
THREE
.
Color
(
a
.
color
):
new
THREE
.
Color
(
16777215
);
this
.
ambient
=
void
0
!==
a
.
ambient
?
new
THREE
.
Color
(
a
.
ambient
):
new
THREE
.
Color
(
1677721
5
);
this
.
specular
=
void
0
!==
a
.
specular
?
new
THREE
.
Color
(
a
.
specular
):
new
THREE
.
Color
(
1118481
);
this
.
shininess
=
void
0
!==
a
.
shininess
?
a
.
shininess
:
30
;
this
.
metal
=
void
0
!==
a
.
metal
?
a
.
metal
:
!
1
;
this
.
perPixel
=
void
0
!==
a
.
perPixel
?
a
.
perPixel
:
!
1
;
this
.
wrapAround
=
void
0
!==
a
.
wrapAround
?
a
.
wrapAround
:
!
1
;
this
.
wrapRGB
=
new
THREE
.
Vector3
(
1
,
1
,
1
);
this
.
map
=
void
0
!==
a
.
map
?
a
.
map
:
null
;
this
.
lightMap
=
void
0
!==
a
.
lightMap
?
a
.
lightMap
:
null
;
this
.
envMap
=
void
0
!==
a
.
envMap
?
a
.
envMap
:
null
;
this
.
combine
=
void
0
!==
a
.
combine
?
a
.
combine
:
THREE
.
MultiplyOperation
;
this
.
reflectivity
=
void
0
!==
a
.
reflectivity
?
a
.
reflectivity
:
1
;
this
.
refractionRatio
=
void
0
!==
a
.
refractionRatio
?
a
.
refractionRatio
:
0.98
;
this
.
fog
=
void
0
!==
a
.
fog
?
a
.
fog
:
!
0
;
this
.
shading
=
void
0
!==
a
.
shading
?
a
.
shading
:
THREE
.
SmoothShading
;
this
.
wireframe
=
void
0
!==
a
.
wireframe
?
a
.
wireframe
:
!
1
;
this
.
wireframeLinewidth
=
void
0
!==
a
.
wireframeLinewidth
?
a
.
wireframeLinewidth
:
1
;
this
.
wireframeLinecap
=
void
0
!==
a
.
wireframeLinecap
?
a
.
wireframeLinecap
:
"
round
"
;
this
.
wireframeLinejoin
=
void
0
!==
a
.
wireframeLinejoin
?
a
.
wireframeLinejoin
:
"
round
"
;
this
.
vertexColors
=
void
0
!==
a
.
vertexColors
?
a
.
vertexColors
:
!
1
;
this
.
skinning
=
void
0
!==
a
.
skinning
?
a
.
skinning
:
!
1
;
this
.
morphTargets
=
void
0
!==
a
.
morphTargets
?
a
.
morphTargets
:
!
1
};
THREE
.
MeshPhongMaterial
.
prototype
=
new
THREE
.
Material
;
THREE
.
MeshPhongMaterial
.
prototype
.
constructor
=
THREE
.
MeshPhongMaterial
;
THREE
.
MeshDepthMaterial
=
function
(
a
){
THREE
.
Material
.
call
(
this
,
a
);
a
=
a
||
{};
this
.
shading
=
void
0
!==
a
.
shading
?
a
.
shading
:
THREE
.
SmoothShading
;
this
.
wireframe
=
void
0
!==
a
.
wireframe
?
a
.
wireframe
:
!
1
;
this
.
wireframeLinewidth
=
void
0
!==
a
.
wireframeLinewidth
?
a
.
wireframeLinewidth
:
1
};
THREE
.
MeshDepthMaterial
.
prototype
=
new
THREE
.
Material
;
THREE
.
MeshDepthMaterial
.
prototype
.
constructor
=
THREE
.
MeshDepthMaterial
;
...
...
examples/webgl_loader_ctm.html
浏览文件 @
5da812d1
...
...
@@ -90,7 +90,7 @@
// LIGHTS
var
ambient
=
new
THREE
.
AmbientLight
(
0x
aaaaaa
);
var
ambient
=
new
THREE
.
AmbientLight
(
0x
050505
);
scene
.
add
(
ambient
);
var
directionalLight
=
new
THREE
.
DirectionalLight
(
0xffeedd
);
...
...
examples/webgl_loader_ctm_materials.html
浏览文件 @
5da812d1
...
...
@@ -139,7 +139,7 @@
THREE
.
ColorUtils
.
adjustHSV
(
light
.
color
,
0
,
-
0.5
,
0
);
scene
.
add
(
new
THREE
.
AmbientLight
(
0x
ffffff
)
);
scene
.
add
(
new
THREE
.
AmbientLight
(
0x
050505
)
);
// RENDERER
...
...
examples/webgl_materials_cars.html
浏览文件 @
5da812d1
...
...
@@ -176,7 +176,7 @@
// LIGHTS
var
ambient
=
new
THREE
.
AmbientLight
(
0x
55555
5
);
var
ambient
=
new
THREE
.
AmbientLight
(
0x
05050
5
);
scene
.
add
(
ambient
);
directionalLight
=
new
THREE
.
DirectionalLight
(
0xffffff
,
2
);
...
...
examples/webgl_materials_cars_anaglyph.html
浏览文件 @
5da812d1
...
...
@@ -166,7 +166,7 @@
// LIGHTS
var
ambient
=
new
THREE
.
AmbientLight
(
0x
55555
5
);
var
ambient
=
new
THREE
.
AmbientLight
(
0x
05050
5
);
scene
.
add
(
ambient
);
directionalLight
=
new
THREE
.
DirectionalLight
(
0xffffff
,
2
);
...
...
examples/webgl_materials_cars_camaro_crosseyed.html
浏览文件 @
5da812d1
...
...
@@ -78,7 +78,7 @@
// LIGHTS
var
ambient
=
new
THREE
.
AmbientLight
(
0x
555555
);
var
ambient
=
new
THREE
.
AmbientLight
(
0x
020202
);
scene
.
add
(
ambient
);
directionalLight
=
new
THREE
.
DirectionalLight
(
0xffffff
);
...
...
examples/webgl_morphtargets.html
浏览文件 @
5da812d1
...
...
@@ -104,7 +104,7 @@
light
.
position
.
set
(
100
,
100
,
100
);
scene
.
add
(
light
);
var
light
=
new
THREE
.
AmbientLight
(
0x
333333
);
var
light
=
new
THREE
.
AmbientLight
(
0x
111111
);
scene
.
add
(
light
);
...
...
src/extras/ShaderUtils.js
浏览文件 @
5da812d1
...
...
@@ -125,9 +125,9 @@ THREE.ShaderUtils = {
"
uDisplacementBias
"
:
{
type
:
"
f
"
,
value
:
0.0
},
"
uDisplacementScale
"
:
{
type
:
"
f
"
,
value
:
1.0
},
"
uDiffuseColor
"
:
{
type
:
"
c
"
,
value
:
new
THREE
.
Color
(
0x
eeeeee
)
},
"
uDiffuseColor
"
:
{
type
:
"
c
"
,
value
:
new
THREE
.
Color
(
0x
ffffff
)
},
"
uSpecularColor
"
:
{
type
:
"
c
"
,
value
:
new
THREE
.
Color
(
0x111111
)
},
"
uAmbientColor
"
:
{
type
:
"
c
"
,
value
:
new
THREE
.
Color
(
0x
050505
)
},
"
uAmbientColor
"
:
{
type
:
"
c
"
,
value
:
new
THREE
.
Color
(
0x
ffffff
)
},
"
uShininess
"
:
{
type
:
"
f
"
,
value
:
30
},
"
uOpacity
"
:
{
type
:
"
f
"
,
value
:
1
},
...
...
src/extras/loaders/SceneLoader.js
浏览文件 @
5da812d1
...
...
@@ -74,7 +74,7 @@ THREE.SceneLoader.prototype.createScene = function ( json, callbackFinished, url
g
,
o
,
m
,
l
,
d
,
p
,
r
,
q
,
s
,
c
,
t
,
f
,
tt
,
pp
,
u
,
geometry
,
material
,
camera
,
fog
,
texture
,
images
,
materials
,
light
,
light
,
data
,
binLoader
,
jsonLoader
,
counter_models
,
counter_textures
,
total_models
,
total_textures
,
...
...
@@ -183,13 +183,8 @@ THREE.SceneLoader.prototype.createScene = function ( json, callbackFinished, url
// not anymore support for multiple materials
// shouldn't really be array
for
(
i
=
0
;
i
<
o
.
materials
.
length
;
i
++
)
{
materials
=
result
.
materials
[
o
.
materials
[
i
]
];
hasNormals
=
materials
instanceof
THREE
.
ShaderMaterial
;
}
material
=
result
.
materials
[
o
.
materials
[
0
]
];
hasNormals
=
material
instanceof
THREE
.
ShaderMaterial
;
if
(
hasNormals
)
{
...
...
@@ -206,22 +201,22 @@ THREE.SceneLoader.prototype.createScene = function ( json, callbackFinished, url
q
=
0
;
if
(
materials
.
length
==
0
)
{
if
(
o
.
materials
.
length
==
0
)
{
material
s
=
new
THREE
.
MeshFaceMaterial
();
material
=
new
THREE
.
MeshFaceMaterial
();
}
// dirty hack to handle meshes with multiple materials
// just use face materials defined in model
if
(
materials
.
length
>
1
)
{
if
(
o
.
materials
.
length
>
1
)
{
material
s
=
new
THREE
.
MeshFaceMaterial
();
material
=
new
THREE
.
MeshFaceMaterial
();
}
object
=
new
THREE
.
Mesh
(
geometry
,
material
s
);
object
=
new
THREE
.
Mesh
(
geometry
,
material
);
object
.
name
=
dd
;
object
.
position
.
set
(
p
[
0
],
p
[
1
],
p
[
2
]
);
...
...
@@ -414,7 +409,7 @@ THREE.SceneLoader.prototype.createScene = function ( json, callbackFinished, url
camera
=
new
THREE
.
OrthographicCamera
(
c
.
left
,
c
.
right
,
c
.
top
,
c
.
bottom
,
c
.
near
,
c
.
far
);
}
p
=
c
.
position
;
t
=
c
.
target
;
u
=
c
.
up
;
...
...
@@ -422,7 +417,7 @@ THREE.SceneLoader.prototype.createScene = function ( json, callbackFinished, url
camera
.
position
.
set
(
p
[
0
],
p
[
1
],
p
[
2
]
);
camera
.
target
=
new
THREE
.
Vector3
(
t
[
0
],
t
[
1
],
t
[
2
]
);
if
(
u
)
camera
.
up
.
set
(
u
[
0
],
u
[
1
],
u
[
2
]
);
result
.
cameras
[
dc
]
=
camera
;
}
...
...
src/materials/MeshLambertMaterial.js
浏览文件 @
5da812d1
...
...
@@ -37,7 +37,7 @@ THREE.MeshLambertMaterial = function ( parameters ) {
parameters
=
parameters
||
{};
this
.
color
=
parameters
.
color
!==
undefined
?
new
THREE
.
Color
(
parameters
.
color
)
:
new
THREE
.
Color
(
0xffffff
);
this
.
ambient
=
parameters
.
ambient
!==
undefined
?
new
THREE
.
Color
(
parameters
.
ambient
)
:
new
THREE
.
Color
(
0x
050505
);
this
.
ambient
=
parameters
.
ambient
!==
undefined
?
new
THREE
.
Color
(
parameters
.
ambient
)
:
new
THREE
.
Color
(
0x
ffffff
);
this
.
wrapAround
=
parameters
.
wrapAround
!==
undefined
?
parameters
.
wrapAround
:
false
;
this
.
wrapRGB
=
new
THREE
.
Vector3
(
1
,
1
,
1
);
...
...
src/materials/MeshPhongMaterial.js
浏览文件 @
5da812d1
...
...
@@ -39,7 +39,7 @@ THREE.MeshPhongMaterial = function ( parameters ) {
parameters
=
parameters
||
{};
this
.
color
=
parameters
.
color
!==
undefined
?
new
THREE
.
Color
(
parameters
.
color
)
:
new
THREE
.
Color
(
0xffffff
);
this
.
ambient
=
parameters
.
ambient
!==
undefined
?
new
THREE
.
Color
(
parameters
.
ambient
)
:
new
THREE
.
Color
(
0x
050505
);
this
.
ambient
=
parameters
.
ambient
!==
undefined
?
new
THREE
.
Color
(
parameters
.
ambient
)
:
new
THREE
.
Color
(
0x
ffffff
);
this
.
specular
=
parameters
.
specular
!==
undefined
?
new
THREE
.
Color
(
parameters
.
specular
)
:
new
THREE
.
Color
(
0x111111
);
this
.
shininess
=
parameters
.
shininess
!==
undefined
?
parameters
.
shininess
:
30
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录