aboutsummaryrefslogtreecommitdiff
path: root/scenefiles/intersect/extra_credit/mesh.json
blob: 8a406d3408c50ec1e8be97716663cc10f5fab324 (plain)
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
{
  "name": "root",
  "globalData": {
    "ambientCoeff": 0.5,
    "diffuseCoeff": 0.5,
    "specularCoeff": 0.5,
    "transparentCoeff": 0
  },
  "cameraData": {
    "position": [-2.25, 1.2, 2.5],
    "up": [0.0, 1.0, 0.0],
    "heightAngle": 45.0,
    "focus": [0.0, 0.0, 0.0]
  },
  "groups": [
    {
      "lights": [
        {
          "type": "directional",
          "direction": [0.0, -1.0, 0.0],
          "color": [1.0, 1.0, 1.0]
        }
      ]
    },
    {
      "groups": [
        {
          "scale": [2.5, 2.5, 2.5],
          "rotate": [0.0, 1.0, 0.0, -50.0],
          "primitives": [
            {
              "type": "mesh",
              "ambient": [0.4, 0.4, 0.4],
              "meshFile": "meshes/dragon.obj",
              "diffuse": [0.43, 0.73, 0.99],
              "specular": [1.0, 1.0, 1.0],
              "shininess": 30.0
            }
          ]
        }
      ]
    }
  ]
}