21 |
|
* irradiance values are desired. |
22 |
|
*/ |
23 |
|
|
24 |
+ |
#include <time.h> |
25 |
+ |
|
26 |
|
#include "platform.h" |
27 |
|
#include "ray.h" |
28 |
|
#include "otypes.h" |
285 |
|
thisray.rmax = dmax; |
286 |
|
rayorigin(&thisray, NULL, PRIMARY, 1.0); |
287 |
|
if (castonly) { |
288 |
< |
if (!localhit(&thisray, &thescene)) |
288 |
> |
if (!localhit(&thisray, &thescene)) { |
289 |
|
if (thisray.ro == &Aftplane) { /* clipped */ |
290 |
|
thisray.ro = NULL; |
291 |
|
thisray.rot = FHUGE; |
292 |
|
} else |
293 |
|
sourcehit(&thisray); |
294 |
+ |
} |
295 |
|
} else |
296 |
|
rayvalue(&thisray); |
297 |
|
printvals(&thisray); |