68 |
|
0 |
69 |
|
0 |
70 |
|
8 |
71 |
< |
${ cx0 } ${ cy0 } ${ cz0 } |
72 |
< |
${ cx1 } ${ cy1 } ${ cz1 } |
73 |
< |
${ cr0 } 0 |
71 |
> |
${ cx0 } ${ cy0 } ${ cz0 } |
72 |
> |
${ cx1 } ${ cy1 } ${ cz1 } |
73 |
> |
${ cr0 } 0 |
74 |
|
|
75 |
|
void brightfunc pgpat |
76 |
|
2 posfunc ambpos.cal |
77 |
|
0 |
78 |
|
6 ${ px } ${ py } ${ pz } ${ pgx } ${ pgy } ${ pgz } |
79 |
|
|
80 |
+ |
pgpat colorfunc pgpat |
81 |
+ |
4 1 if(corralled,.1,1) if(corralled,.1,1) ambpos.cal |
82 |
+ |
0 |
83 |
+ |
7 ${ px } ${ py } ${ pz } ${ ux } ${ uy } ${ uz } ${ cflags } |
84 |
+ |
|
85 |
|
pgpat glow pgval |
86 |
|
0 |
87 |
|
0 |
96 |
|
0 |
97 |
|
0 |
98 |
|
12 |
99 |
< |
${ px1 } ${ py1 } ${ pz1 } |
100 |
< |
${ px2 } ${ py2 } ${ pz2 } |
101 |
< |
${ px3 } ${ py3 } ${ pz3 } |
102 |
< |
${ px4 } ${ py4 } ${ pz4 } |
99 |
> |
${ px1 } ${ py1 } ${ pz1 } |
100 |
> |
${ px2 } ${ py2 } ${ pz2 } |
101 |
> |
${ px3 } ${ py3 } ${ pz3 } |
102 |
> |
${ px4 } ${ py4 } ${ pz4 } |
103 |
|
'; |
104 |
|
$posgradfmt .= ' |
105 |
|
void glow tipglow |
110 |
|
tipglow sphere atip |
111 |
|
0 |
112 |
|
0 |
113 |
< |
4 ${ cx1 } ${ cy1 } ${ cz1 } ${psiz/7} |
113 |
> |
4 ${ cx1 } ${ cy1 } ${ cz1 } ${psiz/7} |
114 |
|
' if ($dodirgrad); |
115 |
|
my $dirgradfmt=' |
116 |
|
void brightfunc dgpat |
127 |
|
0 |
128 |
|
0 |
129 |
|
8 |
130 |
< |
${ px+dgx*.001 } ${ py+dgy*.001 } ${ pz+dgz*.001 } |
130 |
> |
${ px+dgx/dg*eps*.5 } ${ py+dgy/dg*eps*.5 } ${ pz+dgz/dg*eps*.5 } |
131 |
|
${ dgx } ${ dgy } ${ dgz } |
132 |
< |
0 ${ r0/2 } |
132 |
> |
0 ${ r0/2 } |
133 |
|
|
134 |
|
dgval ring dgdisk${recno}b |
135 |
|
0 |
136 |
|
0 |
137 |
|
8 |
138 |
< |
${ px-dgx*.001 } ${ py-dgy*.001 } ${ pz-dgz*.001 } |
138 |
> |
${ px-dgx/dg*eps*.5 } ${ py-dgy/dg*eps*.5 } ${ pz-dgz/dg*eps*.5 } |
139 |
|
${ -dgx } ${ -dgy } ${ -dgz } |
140 |
< |
0 ${ r0/2 } |
140 |
> |
0 ${ r0/2 } |
141 |
|
'; |
142 |
|
# Load & convert ambient values |
143 |
|
print "# Output produced by: $savedARGV\n"; |