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