Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
51fe72c0
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,发现更多精彩内容 >>
提交
51fe72c0
编写于
9月 10, 2012
作者:
A
alteredq
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed shininess handling in MTLLoader. Tweaked new UTF8 example.
上级
9c3d5acd
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
11 addition
and
11 deletion
+11
-11
examples/js/loaders/MTLLoader.js
examples/js/loaders/MTLLoader.js
+1
-1
examples/models/utf8_r104/ben.js
examples/models/utf8_r104/ben.js
+4
-4
examples/models/utf8_r104/hand.js
examples/models/utf8_r104/hand.js
+2
-2
examples/webgl_loader_utf8_r104.html
examples/webgl_loader_utf8_r104.html
+4
-4
未找到文件。
examples/js/loaders/MTLLoader.js
浏览文件 @
51fe72c0
...
...
@@ -232,7 +232,7 @@ THREE.MTLLoader.MaterialCreator.prototype = {
params
[
'
map
'
].
wrapS
=
this
.
wrap
;
params
[
'
map
'
].
wrapT
=
this
.
wrap
;
break
;
case
'
N
s
'
:
case
'
n
s
'
:
// The specular exponent (defines the focus of the specular highlight)
// A high exponent results in a tight, concentrated highlight. Ns values normally range from 0 to 1000.
params
[
'
shininess
'
]
=
value
;
...
...
examples/models/utf8_r104/ben.js
浏览文件 @
51fe72c0
...
...
@@ -6,14 +6,14 @@
"
teethtop
"
:
{
"
Kd
"
:
[
251
,
248
,
248
]
},
"
topeyelashes
"
:
{
"
Kd
"
:
[
66
,
52
,
42
],
"
map_Kd
"
:
"
James_EyeLashTopTran.png
"
,
"
d
"
:
0.999
},
"
bottomeyelashes
"
:
{
"
Kd
"
:
[
66
,
52
,
42
],
"
map_Kd
"
:
"
James_EyeLashBotTran.png
"
,
"
d
"
:
0.999
},
"
head
"
:
{
"
map_Kd
"
:
"
James_Face_Color_Hair_Lores.jpg
"
},
"
head
"
:
{
"
map_Kd
"
:
"
James_Face_Color_Hair_Lores.jpg
"
,
"
Ks
"
:
[
30
,
30
,
30
],
"
Ns
"
:
100
},
"
eyetrans
"
:
{
"
Kd
"
:
[
0
,
0
,
0
]
},
"
pupil
"
:
{
"
Kd
"
:
[
1
,
1
,
1
]
},
"
iris
"
:
{
"
map_Kd
"
:
"
James_Eye_Inner_Green.jpg
"
},
"
eyeball
"
:
{
"
map_Kd
"
:
"
James_Eye_Green.jpg
"
},
"
pants
"
:
{
"
map_Kd
"
:
"
MJeans1TEX_Lores.jpg
"
},
"
tshirt3
"
:
{
"
map_Kd
"
:
"
MTshirt3TEX_Lores.jpg
"
},
"
skinbody
"
:
{
"
map_Kd
"
:
"
James_Body_Lores.jpg
"
},
"
pants
"
:
{
"
map_Kd
"
:
"
MJeans1TEX_Lores.jpg
"
,
"
Ks
"
:
[
30
,
30
,
30
],
"
Ns
"
:
20
},
"
tshirt3
"
:
{
"
map_Kd
"
:
"
MTshirt3TEX_Lores.jpg
"
,
"
Ks
"
:
[
30
,
30
,
30
],
"
Ns
"
:
20
},
"
skinbody
"
:
{
"
map_Kd
"
:
"
James_Body_Lores.jpg
"
,
"
Ks
"
:
[
30
,
30
,
30
],
"
Ns
"
:
100
},
"
fingernails
"
:
{
"
map_Kd
"
:
"
Nail_Hand_01_Lores.jpg
"
},
"
soleshoe
"
:
{
"
map_Kd
"
:
"
MCasShoe1TEX_Lores.jpg
"
},
"
sole
"
:
{
"
map_Kd
"
:
"
MCasShoe1TEX_Lores.jpg
"
},
...
...
examples/models/utf8_r104/hand.js
浏览文件 @
51fe72c0
{
"
materials
"
:
{
"
preview
"
:
{
"
Kd
"
:
[
184
,
136
,
234
]
},
"
nails
"
:
{
"
map_Kd
"
:
"
hand.jpg
"
},
"
skin
"
:
{
"
map_Kd
"
:
"
hand.jpg
"
}
"
nails
"
:
{
"
Kd
"
:
[
251
,
238
,
209
],
"
map_Kd
"
:
"
hand.jpg
"
,
"
Ks
"
:
[
30
,
30
,
30
],
"
Ns
"
:
100
},
"
skin
"
:
{
"
Kd
"
:
[
207
,
181
,
161
],
"
map_Kd
"
:
"
hand.jpg
"
,
"
Ks
"
:
[
30
,
30
,
30
],
"
Ns
"
:
30
}
},
"
decodeParams
"
:
{
"
decodeOffsets
"
:
[
-
7473
,
-
239
,
-
8362
,
0
,
0
,
-
511
,
-
511
,
-
511
],
...
...
examples/webgl_loader_utf8_r104.html
浏览文件 @
51fe72c0
...
...
@@ -86,10 +86,10 @@
// LIGHTS
var
ambient
=
new
THREE
.
AmbientLight
(
0x22
1100
);
var
ambient
=
new
THREE
.
AmbientLight
(
0x22
2222
);
scene
.
add
(
ambient
);
var
directionalLight
=
new
THREE
.
DirectionalLight
(
0xff
eedd
);
var
directionalLight
=
new
THREE
.
DirectionalLight
(
0xff
ffff
);
directionalLight
.
position
.
set
(
0
,
0
,
1
).
normalize
();
scene
.
add
(
directionalLight
);
...
...
@@ -127,7 +127,7 @@
object
.
position
.
y
=
-
125
;
scene
.
add
(
object
);
}
);
}
,
{
normalizeRGB
:
true
}
);
loader
.
load
(
"
models/utf8_r104/ben.js
"
,
function
(
object
)
{
...
...
@@ -137,7 +137,7 @@
object
.
position
.
y
=
-
125
;
scene
.
add
(
object
);
}
);
}
,
{
normalizeRGB
:
true
}
);
//
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录