-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdesc.scene
85 lines (72 loc) · 1.65 KB
/
desc.scene
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
decl sphere (
center: vec3(0.0, 0.0, -4.0),
radius: 0.5,
material: lambertian(albedo: vec3(0.8, 0.3, 0.3)),
// material: light(emittance: vec3(1.0, 0.3, 0.3)),
);
decl sphere (
center: vec3(1.0, 0.0, -4.0),
radius: 0.5,
material: metal(albedo: vec3(0.8, 0.6, 0.2), fuzz: 0.2),
);
decl sphere (
center: vec3(-1.0, 0.0, -3.5),
radius: 0.5,
material: metal(albedo: vec3(0.8, 0.8, 0.8)),
);
decl sphere (
center: vec3(12.0, 12.0, -2.0),
radius: 3.0,
material: light(),
);
decl sphere (
center: vec3(0.0, 2.0, 5.0),
radius: 3.0,
material: light(),
);
let white_mat = lambertian(albedo: vec3(0.73));
decl plane (
point: vec3(0.0, -0.5, 0.0),
normal: vec3(0.0, 1.0, 0.0),
material: white_mat,
);
decl plane (
point: vec3(0.0, 2.0, 0.0),
normal: vec3(0.0, -1.0, 0.0),
material: white_mat,
);
decl plane (
point: vec3(0.0, 0.0, -7.0),
normal: vec3(0.0, 0.0, 1.0),
material: white_mat,
);
decl plane (
point: vec3(-2.5, 0.0, 0.0),
normal: vec3(1.0, 0.0, 0.0),
material: lambertian(albedo: vec3(0.12, 0.45, 0.15)),
);
decl plane (
point: vec3(2.5, 0.0, 0.0),
normal: vec3(-1.0, 0.0, 0.0),
material: lambertian(albedo: vec3(0.65, 0.05, 0.05)),
);
preset default {
width: 800,
height: 600,
look_from: vec3(0.0, 1.0, 0.0),
look_at: vec3(0.0, 0.0, -4.0),
up: vec3(0.0, 1.0, 0.0),
vfov: 90.0,
sample_count: 1,
max_depth: 1,
};
preset complete {
width: 800,
height: 600,
look_from: vec3(0.0, 1.0, 0.0),
look_at: vec3(0.0, 0.0, -4.0),
up: vec3(0.0, 1.0, 0.0),
vfov: 90.0,
sample_count: 128,
max_depth: 3,
};