| 108 |
|
return(-1); |
| 109 |
|
} |
| 110 |
|
if (!direc || ourview.type == VT_PAR) { |
| 111 |
< |
rayorigin(&thisray, NULL, PRIMARY, 1.0); |
| 111 |
> |
rayorigin(&thisray, PRIMARY, NULL, NULL); |
| 112 |
|
if (!localhit(&thisray, &thescene)) { |
| 113 |
|
error(COMMAND, "not a local object"); |
| 114 |
|
return(-1); |
| 170 |
|
h/hresolu, v/vresolu)) < -FTINY) { |
| 171 |
|
setcolor(thisray.rcol, 0.0, 0.0, 0.0); |
| 172 |
|
} else { |
| 173 |
< |
rayorigin(&thisray, NULL, PRIMARY, 1.0); |
| 173 |
> |
rayorigin(&thisray, PRIMARY, NULL, NULL); |
| 174 |
|
samplendx++; |
| 175 |
|
rayvalue(&thisray); |
| 176 |
|
} |
| 416 |
|
nv.vaft += d - d*mag; |
| 417 |
|
if (nv.vaft <= nv.vfore) nv.vaft = 0.0; |
| 418 |
|
} |
| 419 |
< |
nv.vdist += d - d*mag; |
| 419 |
> |
nv.vdist /= mag; |
| 420 |
|
} |
| 421 |
|
for (i = 0; i < 3; i++) |
| 422 |
|
nv.vp[i] = vc[i] - d*nv.vdir[i]; |