-
Notifications
You must be signed in to change notification settings - Fork 0
/
mesh_test.json
82 lines (82 loc) · 1.98 KB
/
mesh_test.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"width": 800,
"height": 800,
"skip_denoise_pass": true,
"camera": { "position": [5, 5, 15] },
"lights": [
{ "type": "ambient", "color": [0.01, 0.01, 0.01] },
{
"type": "point",
"transform": [{ "translate": [0, 7, 3] }],
"color": [0.5, 0.5, 0.5]
},
{
"type": "point",
"transform": [{ "translate": [14, 5, 10] }],
"color": [0.5, 0.5, 0.5]
}
],
"objects": [
{
"type": "plane",
"normal": [0, 1, 0],
"transform": [{ "translate": [0, -2, 0] }],
"material": {
"type": "phong",
"color": [0.4, 0.7, 1],
"reflectivity": 0.5
}
},
{
"type": "mesh",
"file": "models/deer.obj",
"transform": [{ "scale": [0.005, 0.005, 0.005] }],
"material": { "type": "phong", "color": [0.5, 0.25, 0] }
},
{
"type": "triangle",
"vertices": [
[-0.2, -0.5, -0.5],
[-0.9, 0.5, 0],
[-0.2, -0.5, 0.5]
],
"transform": [{ "scale": [4, 4, 4] }, { "translate": [-1, 0, 0] }],
"material": { "type": "phong", "color": [0.7, 0.7, 0.8] }
},
{
"type": "cube",
"size": 1,
"transform": [
{ "scale": [0.7, 1, 1] },
{ "translate": [-0.55, 0, 0] },
{ "scale": [4, 4, 4] },
{ "translate": [-3, 1, 0] }
],
"material": { "type": "phong", "color": [0, 1, 0] }
},
{
"type": "mesh",
"file": "models/cerberus.obj",
"transform": [
{ "rotate": [[0, 1, 0], -30] },
{ "scale": [4, 4, 4] },
{ "translate": [3, -1, 6] }
],
"material": {
"type": "phong",
"color": [1, 1, 1],
"texture": "./textures/test.jpg"
}
},
{
"type": "mesh",
"file": "models/teapot.obj",
"transform": [
{ "rotate": [[0, 1, 0], -60] },
{ "scale": [0.6, 0.6, 0.6] },
{ "translate": [0, -1, 8] }
],
"material": { "type": "phong", "side": "Both", "color": [1, 0, 0] }
}
]
}