Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
9b7850d9
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,发现更多精彩内容 >>
提交
9b7850d9
编写于
5月 07, 2017
作者:
D
Don McCurdy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[gltf] Add MetalRoughSpheres example.
上级
70febf8e
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
643 addition
and
2 deletion
+643
-2
examples/models/gltf/MetalRoughSpheres/README.md
examples/models/gltf/MetalRoughSpheres/README.md
+11
-0
examples/models/gltf/MetalRoughSpheres/glTF/MetalRoughSpheres.gltf
...models/gltf/MetalRoughSpheres/glTF/MetalRoughSpheres.gltf
+622
-0
examples/models/gltf/MetalRoughSpheres/glTF/MetalRoughSpheres0.bin
...models/gltf/MetalRoughSpheres/glTF/MetalRoughSpheres0.bin
+0
-0
examples/models/gltf/MetalRoughSpheres/glTF/Spheres_BaseColor.png
.../models/gltf/MetalRoughSpheres/glTF/Spheres_BaseColor.png
+0
-0
examples/models/gltf/MetalRoughSpheres/glTF/Spheres_MetalRough.png
...models/gltf/MetalRoughSpheres/glTF/Spheres_MetalRough.png
+0
-0
examples/models/gltf/MetalRoughSpheres/screenshot/screenshot.png
...s/models/gltf/MetalRoughSpheres/screenshot/screenshot.png
+0
-0
examples/webgl_loader_gltf2.html
examples/webgl_loader_gltf2.html
+10
-2
未找到文件。
examples/models/gltf/MetalRoughSpheres/README.md
0 → 100755
浏览文件 @
9b7850d9
# Metal-Rough Spheres
## Screenshot
![
screenshot
](
screenshot/screenshot.png
)
## License Information
Copyright 2017 Analytical Graphics, Inc.
CC-BY 4.0 https://creativecommons.org/licenses/by/4.0/
Model and textures by Ed Mackey.
examples/models/gltf/MetalRoughSpheres/glTF/MetalRoughSpheres.gltf
0 → 100755
浏览文件 @
9b7850d9
{
"asset": {
"copyright": "Copyright 2017 Analytical Graphics, Inc, CC-BY 4.0 https://creativecommons.org/licenses/by/4.0/ - Model and textures by Ed Mackey.",
"generator": "COLLADA2GLTF with hand-edits",
"version": "2.0"
},
"scene": 0,
"scenes": [
{
"nodes": [
0
]
}
],
"nodes": [
{
"children": [
5,
4,
3,
2,
1
],
"matrix": [
1.0,
0.0,
0.0,
0.0,
0.0,
0.0,
-1.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
0.0,
1.0
]
},
{
"mesh": 0,
"matrix": [
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0
]
},
{
"mesh": 1,
"matrix": [
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0
]
},
{
"mesh": 2,
"matrix": [
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0
]
},
{
"mesh": 3,
"matrix": [
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0
]
},
{
"mesh": 4,
"matrix": [
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0
]
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"NORMAL": 1,
"POSITION": 2,
"TEXCOORD_0": 3
},
"indices": 0,
"mode": 4,
"material": 0
}
],
"name": "Spheres.004"
},
{
"primitives": [
{
"attributes": {
"NORMAL": 5,
"POSITION": 6,
"TEXCOORD_0": 7
},
"indices": 4,
"mode": 4,
"material": 0
}
],
"name": "Spheres.003"
},
{
"primitives": [
{
"attributes": {
"NORMAL": 9,
"POSITION": 10,
"TEXCOORD_0": 11
},
"indices": 8,
"mode": 4,
"material": 0
}
],
"name": "Spheres.002"
},
{
"primitives": [
{
"attributes": {
"NORMAL": 13,
"POSITION": 14,
"TEXCOORD_0": 15
},
"indices": 12,
"mode": 4,
"material": 0
}
],
"name": "Spheres.001"
},
{
"primitives": [
{
"attributes": {
"NORMAL": 17,
"POSITION": 18,
"TEXCOORD_0": 19
},
"indices": 16,
"mode": 4,
"material": 0
}
],
"name": "Spheres"
}
],
"accessors": [
{
"bufferView": 0,
"byteOffset": 1474560,
"byteStride": 0,
"componentType": 5123,
"count": 184320,
"max": [
31331.0
],
"min": [
0.0
],
"type": "SCALAR"
},
{
"bufferView": 1,
"byteOffset": 4010496,
"byteStride": 0,
"componentType": 5126,
"count": 31332,
"max": [
0.9999999403953552,
1.0,
1.0
],
"min": [
-0.9999999403953552,
-1.0,
-1.0
],
"type": "VEC3"
},
{
"bufferView": 1,
"byteOffset": 4386480,
"byteStride": 0,
"componentType": 5126,
"count": 31332,
"max": [
-8.0,
9.0,
10.0
],
"min": [
-10.0,
-1.0,
-7.0
],
"type": "VEC3"
},
{
"bufferView": 1,
"byteOffset": 4762464,
"byteStride": 0,
"componentType": 5126,
"count": 31332,
"max": [
0.1278132051229477,
0.7597609758377075
],
"min": [
0.03436123952269554,
0.013921022415161133
],
"type": "VEC2"
},
{
"bufferView": 0,
"byteOffset": 737280,
"byteStride": 0,
"componentType": 5123,
"count": 368640,
"max": [
62663.0
],
"min": [
0.0
],
"type": "SCALAR"
},
{
"bufferView": 1,
"byteOffset": 2005248,
"byteStride": 0,
"componentType": 5126,
"count": 62664,
"max": [
0.9999999403953552,
1.0,
1.0
],
"min": [
-0.9999999403953552,
-1.0,
-1.0
],
"type": "VEC3"
},
{
"bufferView": 1,
"byteOffset": 2757216,
"byteStride": 0,
"componentType": 5126,
"count": 62664,
"max": [
-2.0,
9.0,
10.0
],
"min": [
-7.0,
-1.0,
-7.0
],
"type": "VEC3"
},
{
"bufferView": 1,
"byteOffset": 3509184,
"byteStride": 0,
"componentType": 5126,
"count": 62664,
"max": [
0.41614970564842226,
0.7597609758377075
],
"min": [
0.15740810334682465,
0.012456059455871582
],
"type": "VEC2"
},
{
"bufferView": 0,
"byteOffset": 0,
"byteStride": 0,
"componentType": 5123,
"count": 368640,
"max": [
62663.0
],
"min": [
0.0
],
"type": "SCALAR"
},
{
"bufferView": 1,
"byteOffset": 0,
"byteStride": 0,
"componentType": 5126,
"count": 62664,
"max": [
0.9999999403953552,
1.0,
1.0
],
"min": [
-0.9999999403953552,
-1.0,
-1.0
],
"type": "VEC3"
},
{
"bufferView": 1,
"byteOffset": 751968,
"byteStride": 0,
"componentType": 5126,
"count": 62664,
"max": [
4.0,
9.0,
10.0
],
"min": [
-1.0,
-1.0,
-7.0
],
"type": "VEC3"
},
{
"bufferView": 1,
"byteOffset": 1503936,
"byteStride": 0,
"componentType": 5126,
"count": 62664,
"max": [
0.7028239369392395,
0.7636672854423523
],
"min": [
0.4482637047767639,
0.015471160411834717
],
"type": "VEC2"
},
{
"bufferView": 0,
"byteOffset": 2273376,
"byteStride": 0,
"componentType": 5123,
"count": 368640,
"max": [
62663.0
],
"min": [
0.0
],
"type": "SCALAR"
},
{
"bufferView": 1,
"byteOffset": 6184000,
"byteStride": 0,
"componentType": 5126,
"count": 62664,
"max": [
0.9999999403953552,
1.0,
1.0
],
"min": [
-0.9999999403953552,
-1.0,
-1.0
],
"type": "VEC3"
},
{
"bufferView": 1,
"byteOffset": 6935968,
"byteStride": 0,
"componentType": 5126,
"count": 62664,
"max": [
10.0,
9.0,
10.0
],
"min": [
5.0,
-1.0,
-7.0
],
"type": "VEC3"
},
{
"bufferView": 1,
"byteOffset": 7687936,
"byteStride": 0,
"componentType": 5126,
"count": 62664,
"max": [
0.9852716326713562,
0.7671433687210083
],
"min": [
0.7233805060386658,
0.016381680965423585
],
"type": "VEC2"
},
{
"bufferView": 0,
"byteOffset": 1843200,
"byteStride": 0,
"componentType": 5123,
"count": 215088,
"max": [
36589.0
],
"min": [
0.0
],
"type": "SCALAR"
},
{
"bufferView": 1,
"byteOffset": 5013120,
"byteStride": 0,
"componentType": 5126,
"count": 36590,
"max": [
0.9999999403953552,
1.0,
1.0
],
"min": [
-0.9999999403953552,
-1.0,
-1.0
],
"type": "VEC3"
},
{
"bufferView": 1,
"byteOffset": 5452200,
"byteStride": 0,
"componentType": 5126,
"count": 36590,
"max": [
11.874730110168456,
9.0,
10.969940185546877
],
"min": [
-12.186589241027832,
-1.0,
-12.35944938659668
],
"type": "VEC3"
},
{
"bufferView": 1,
"byteOffset": 5891280,
"byteStride": 0,
"componentType": 5126,
"count": 36590,
"max": [
0.9869875311851502,
0.9988328814506532
],
"min": [
0.0013856289442628625,
0.016568005084991456
],
"type": "VEC2"
}
],
"materials": [
{
"pbrMetallicRoughness": {
"baseColorFactor": [
1,
1,
1,
1
],
"baseColorTexture": {
"index": 0
},
"metallicRoughnessTexture": {
"index": 1
}
}
}
],
"textures": [
{
"sampler": 0,
"source": 0
},
{
"sampler": 0,
"source": 1
}
],
"images": [
{
"uri": "Spheres_BaseColor.png"
},
{
"uri": "Spheres_MetalRough.png"
}
],
"samplers": [
{
"magFilter": 9729,
"minFilter": 9986,
"wrapS": 33071,
"wrapT": 33071
}
],
"bufferViews": [
{
"buffer": 0,
"byteOffset": 8189248,
"byteLength": 3010656,
"target": 34963
},
{
"buffer": 0,
"byteOffset": 0,
"byteLength": 8189248,
"target": 34962
}
],
"buffers": [
{
"byteLength": 11199904,
"uri": "MetalRoughSpheres0.bin"
}
]
}
examples/models/gltf/MetalRoughSpheres/glTF/MetalRoughSpheres0.bin
0 → 100755
浏览文件 @
9b7850d9
文件已添加
examples/models/gltf/MetalRoughSpheres/glTF/Spheres_BaseColor.png
0 → 100755
浏览文件 @
9b7850d9
8.3 KB
examples/models/gltf/MetalRoughSpheres/glTF/Spheres_MetalRough.png
0 → 100755
浏览文件 @
9b7850d9
8.0 KB
examples/models/gltf/MetalRoughSpheres/screenshot/screenshot.png
0 → 100755
浏览文件 @
9b7850d9
129.5 KB
examples/webgl_loader_gltf2.html
浏览文件 @
9b7850d9
...
...
@@ -414,11 +414,19 @@
var
sceneList
=
[
{
name
:
"
BoomBox (PBR)
"
,
url
:
"
./models/gltf/BoomBox/%s/BoomBox.gltf
"
,
name
:
'
BoomBox (PBR)
'
,
url
:
'
./models/gltf/BoomBox/%s/BoomBox.gltf
'
,
cameraPos
:
new
THREE
.
Vector3
(
2
,
1
,
3
),
objectRotation
:
new
THREE
.
Euler
(
0
,
Math
.
PI
,
0
),
addLights
:
true
,
extensions
:
[
"
glTF
"
,
"
glTF-pbrSpecularGlossiness
"
,
"
glTF-Binary
"
],
extensions
:
[
'
glTF
'
,
'
glTF-pbrSpecularGlossiness
'
,
'
glTF-Binary
'
],
addEnvMap
:
true
},
{
name
:
'
MetalRoughSpheres (PBR)
'
,
url
:
'
./models/gltf/MetalRoughSpheres/%s/MetalRoughSpheres.gltf
'
,
cameraPos
:
new
THREE
.
Vector3
(
2
,
1
,
35
),
objectRotation
:
new
THREE
.
Euler
(
0
,
0
,
0
),
addLights
:
true
,
extensions
:
[
'
glTF
'
],
addEnvMap
:
true
}
];
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录