added scene loading
[csgray] / scene
1 # vi:set ts=4 sts=4 sw=4 ai:
2 csgray_scene {
3         viewer {
4                 position = [0, 0, 5]
5                 target = [0, 0, 0]
6                 fov = 50
7         }
8
9         subtract {
10                 subtract {
11                         sphere {
12                                 position = [0, 0, 0]
13                                 radius = 1
14                                 color = [1, 0.1, 0.05]
15                                 roughness = 0.3
16                         }
17                         sphere {
18                                 position = [0.3, 0.7, 0.7]
19                                 radius = 0.7
20                                 color = [0.2, 0.3, 1]
21                                 roughness = 0.3
22                         }
23                 }
24                 sphere {
25                         position = [-0.9, -0.1, 0.7]
26                         radius = 0.5
27                         color = [1, 0.9, 0.2]
28                         roughness = 0.3
29                 }
30         }
31
32         plane {
33                 position = [0, -1, 0]
34                 normal = [0, 1, 0]
35                 color = [0.4, 0.7, 0.4]
36         }
37
38         null {
39                 position = [-4, 10, 10]
40                 emission = [80, 80, 80]
41         }
42 }