-
Notifications
You must be signed in to change notification settings - Fork 114
Expand file tree
/
Copy pathheader-2D.inc
More file actions
60 lines (55 loc) · 1.38 KB
/
header-2D.inc
File metadata and controls
60 lines (55 loc) · 1.38 KB
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
camera {
location < 0.5, 0.5, 1 >
look_at < 0.5, 0.5, 0 >
rotate <0, 0, 0>
}
background {
color rgb < 1.0, 1.0, 1.0 >
}
light_source {
< 2.0, 1.0, 0.38372093023255816 >
color rgb < 1.0, 1.0, 1.0 >
}
light_source {
< 2.0, -1.0, 0.38372093023255816 >
color rgb < 1.0, 1.0, 1.0 >
}
light_source {
< 2.0, 1.0, -0.38372093023255816 >
color rgb < 1.0, 1.0, 1.0 >
}
light_source {
< -1.0, -1.0, -0.5 >
color rgb < 1.0, 1.0, 1.0 >
}
light_source {
< 2.5, 2.5, 2.5 >
color rgb < 1.0, 1.0, 1.0 >
}
union {
//#declare crossPlane= <0.5,0.,0.>;
#declare crossPlane= <0,0,0>;
#declare visibleFinish = finish { reflection 0.0 phong 0 };
#declare invisibleFinish = finish { phong 0 };
#declare NEC = color rgbt < 0.0 , 0.0 , 1.0>;
#declare NECFinish = visibleFinish;
#declare APOP = color rgb < 1.0 , 0.0 , 0.0 >;
#declare APOPFinish = visibleFinish;
#declare LIVE = color rgb < 0.0 , 0.8 , 0.0 >;
#declare LIVEFinish = visibleFinish;
#declare MISC = color rgb < 1.0 , 0.0 , 0.0 >;
#declare MISCFinish = visibleFinish;
#declare ENDO = color rgb < 1.0 , 0.0 , 0.0 >;
#declare ENDOFinish = visibleFinish;
#macro FinishMacro(loc, fin, col)
#if(loc.x>=crossPlane.x & loc.y>=crossPlane.y & loc.z>=crossPlane.z)
pigment { col }
finish{ fin }
no_reflection
#else
pigment { rgbt<1,1,1,1> }
finish { invisibleFinish }
no_shadow
no_reflection
#end
#end