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); |
174 |
< |
samplendx++; |
173 |
> |
rayorigin(&thisray, PRIMARY, NULL, NULL); |
174 |
> |
samplendx = rand_samp ? random() : samplendx+1; |
175 |
|
rayvalue(&thisray); |
176 |
|
} |
177 |
|
|