aboutsummaryrefslogtreecommitdiff
path: root/scenefiles/intersect/extra_credit/recursive_sphere_2_supersample.json
blob: 29bf9c3ed8aeb5097645d48f8668f753650d8582 (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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{
  "name": "root",
  "globalData": {
    "ambientCoeff": 0.5,
    "diffuseCoeff": 0.7,
    "specularCoeff": 0.54,
    "transparentCoeff": 0
  },
  "cameraData": {
    "position": [10, 4.1, 16],
    "up": [0, 1, 0],
    "heightAngle": 49.5,
    "look": [-9, -3.2, -16]
  },
  "templateGroups": [
    {
      "name": "level 1",
      "groups": [
        {
          "translate": [0, 0, 0],
          "scale": [3, 3, 3],
          "primitives": [
            {
              "type": "sphere",
              "reflective": [0.75, 1, 0.75],
              "diffuse": [0.75, 1, 0.75],
              "shininess": 25,
              "specular": [1, 1, 1],
              "textureFile": "textures/marsTexture.png",
              "textureU": 1,
              "textureV": 1,
              "blend": 0.75
            }
          ]
        }
      ]
    }
  ],
  "groups": [
    {
      "name": "Directional Lights",
      "lights": [
        {
          "type": "directional",
          "color": [1, 1, 1],
          "direction": [0.25, 1, -1]
        },
        {
          "type": "directional",
          "color": [1, 1, 1],
          "direction": [1, -1.8, -2]
        }
      ]
    },
    {
      "name": "Point Light",
      "translate": [10, 10, 10],
      "lights": [
        {
          "type": "point",
          "color": [1, 1, 1],
          "attenuationCoeff": [1.5, 0, 0]
        }
      ]
    },
    {
      "name": "level 0",
      "translate": [0, 0, 0],
      "scale": [6, 6, 6],
      "primitives": [
        {
          "type": "sphere",
          "reflective": [1, 0.75, 0.75],
          "diffuse": [1, 0.75, 0.75],
          "shininess": 25,
          "specular": [1, 1, 1],
          "textureFile": "textures/marsTexture.png",
          "textureU": 1,
          "textureV": 1,
          "blend": 0.75
        }
      ]
    },
    {
      "translate": [-4.5, 0, 0],
      "rotate": [0, 0, 1, 90],
      "groups": [
        {
          "name": "level 1"
        }
      ]
    },
    {
      "translate": [4.5, 0, 0],
      "rotate": [0, 0, 1, -90],
      "groups": [
        {
          "name": "level 1"
        }
      ]
    },
    {
      "translate": [0, 4.5, 0],
      "rotate": [1, 0, 0, 0],
      "groups": [
        {
          "name": "level 1"
        }
      ]
    },
    {
      "translate": [0, -4.5, 0],
      "rotate": [0, 0, 1, 180],
      "groups": [
        {
          "name": "level 1"
        }
      ]
    },
    {
      "translate": [0, 0, -4.5],
      "rotate": [1, 0, 0, -90],
      "groups": [
        {
          "name": "level 1"
        }
      ]
    },
    {
      "translate": [0, 0, 4.5],
      "rotate": [1, 0, 0, 90],
      "groups": [
        {
          "name": "level 1"
        }
      ]
    }
  ]
}