147 |
|
return; |
148 |
|
} |
149 |
|
/* jitter ray direction */ |
150 |
< |
p->x = h = xmin + (xmax-xmin)*frandom(); |
151 |
< |
h /= hresolu; |
152 |
< |
p->y = v = ymin + (ymax-ymin)*frandom(); |
153 |
< |
v /= vresolu; |
150 |
> |
h = xmin + (xmax-xmin)*frandom(); |
151 |
> |
v = ymin + (ymax-ymin)*frandom(); |
152 |
|
|
153 |
< |
viewray(thisray.rorg, thisray.rdir, &ourview, h, v); |
156 |
< |
|
153 |
> |
viewray(thisray.rorg, thisray.rdir, &ourview, h/hresolu, v/vresolu); |
154 |
|
rayorigin(&thisray, NULL, PRIMARY, 1.0); |
158 |
– |
|
155 |
|
rayvalue(&thisray); |
156 |
|
|
157 |
+ |
p->x = h; |
158 |
+ |
p->y = v; |
159 |
|
copycolor(p->v, thisray.rcol); |
162 |
– |
|
160 |
|
scalecolor(p->v, exposure); |
161 |
|
|
162 |
|
(*dev->paintr)(greyscale?greyof(p->v):p->v, xmin, ymin, xmax, ymax); |