| 213 |
|
|
| 214 |
|
if ((thisray.rmax = viewray(thisray.rorg, thisray.rdir, &ourview, |
| 215 |
|
h/hresolu, v/vresolu)) < -FTINY) { |
| 216 |
< |
setcolor(thisray.rcol, 0.0, 0.0, 0.0); |
| 216 |
> |
scolorblack(thisray.rcol); |
| 217 |
|
} else if (!ray_pnprocs) { /* immediate mode */ |
| 218 |
|
ray_trace(&thisray); |
| 219 |
|
} else { /* queuing mode */ |
| 229 |
|
p = (PNODE *)thisray.rno; |
| 230 |
|
} |
| 231 |
|
|
| 232 |
< |
copycolor(p->v, thisray.rcol); |
| 232 |
> |
scolor_rgb(p->v, thisray.rcol); |
| 233 |
|
scalecolor(p->v, exposure); |
| 234 |
|
|
| 235 |
|
recolor(p); /* paint it */ |
| 271 |
|
return(0); |
| 272 |
|
while ((rval = ray_presult(&raydone, 0)) > 0) { |
| 273 |
|
PNODE *p = (PNODE *)raydone.rno; |
| 274 |
< |
copycolor(p->v, raydone.rcol); |
| 274 |
> |
scolor_rgb(p->v, raydone.rcol); |
| 275 |
|
scalecolor(p->v, exposure); |
| 276 |
|
recolor(p); |
| 277 |
|
nwaited++; |