-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsor1.pov
120 lines (100 loc) · 2.27 KB
/
sor1.pov
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
#include "colors.inc"
// Light control variables
#declare color_lights = 1;
#declare front_on = 0;
#declare top_on = 1;
camera {
location <5,15,-15> // Up, to the rear, and slightly to the right
look_at <0,4,0>
}
#if (color_lights = 1) // If we want color lights
#if (top_on = 1) // If using top lighting
light_source {
<0,20,-5>
rgb <1,0,0>
}
#end // End top lighting
#if (front_on = 1) // If using front lighting
light_source {
<-20,10,-20>
rgb <0,0,1>
}
light_source {
<20,10,-20>
rgb <0,1,0>
}
#end // End front lighting
#else // If we want plain lights
#if (top_on = 1) // If using top lighting
light_source {
<0,20,-5>
rgb <0.33,0.33,0.33>
}
#end // End top lighting
#if (front_on = 1) // If using front lighting
light_source {
<-20,10,-20>
rgb <0.33, 0.33, 0.33>
}
light_source {
<20,10,-20>
rgb <0.33, 0.33, 0.33>
}
#end // End front lighting
#end // End light controls
// Background
plane {
z, 10
pigment {
rgb <0.8, 0.6, 0.3>
}
}
// Mirror
box {
<-10,-5,9.5>
<10,10,10>
pigment {
rgb <0.5, 0.5, 0.5>
}
finish {
reflection 0.9
}
}
// Cup
sor {
8,
<0.0, -0.5>,
<3.0, 0.0>,
<1.0, 0.2>,
<0.5, 0.4>,
<0.5, 4.0>,
<1.0, 5.0>,
<3.0, 10.0>,
<4.0, 11.0>
open
pigment {
rgb <0.5, 0.6, 0.3>
}
finish {
diffuse 0.5
reflection { 0.2 }
phong 1
}
}
sphere {
<0,0,0>
2.9
scale <1,0.2,1>
translate y*9.9
pigment {
rgb <0.3, 0.05, 0.1>
}
normal {
ripples 1
frequency 10
phase 2
}
finish {
brilliance 6
}
}