-
Notifications
You must be signed in to change notification settings - Fork 0
/
scene.json
42 lines (42 loc) · 1.44 KB
/
scene.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"cam" : {
"pos": {"x": 0, "y": 2, "z": -5},
"rot": {"x": 0, "y": 0, "z": 0}
},
"lighting" : {
"dir": {"x": 1, "y": 1, "z": 1}
},
"scene": [
{
"type": "model",
"name": "teapot",
"modelUrl": "https://raw.githubusercontent.com/OpenGLInsights/OpenGLInsightsCode/master/Chapter%2026%20Indexing%20Multiple%20Vertex%20Arrays/article/suzanne.obj",
"colorSource": "texture",
"textureUrl": "./maxresdefault.jpg",
"pos": {"x": -8, "y": 0, "z": 0},
"rot": {"x": 0, "y": 0, "z": 0},
"size": 3
},
{
"type": "model",
"name": "teapot2",
"modelUrl": "https://raw.githubusercontent.com/OpenGLInsights/OpenGLInsightsCode/master/Chapter%2026%20Indexing%20Multiple%20Vertex%20Arrays/article/suzanne.obj",
"colorSource": "texture",
"textureUrl": "./maxresdefault.jpg",
"pos": {"x": 8, "y": 0, "z": 0},
"rot": {"x": 0, "y": 0, "z": 0},
"size": 3
},
{
"name": "plane",
"type": "primative",
"primativeType": "cube",
"colorSource": "texture",
"textureUrl": "./maxresdefault.jpg",
"size": 3,
"color": {"r": 200, "g": 150, "b": 100},
"pos": {"x": 0, "y": 0, "z": 0},
"rot": {"x": 0, "y": 0, "z": 0}
}
]
}