ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/rpict.c
(Generate patch)

Comparing ray/src/rt/rpict.c (file contents):
Revision 1.21 by greg, Tue Jun 26 09:00:12 1990 UTC vs.
Revision 1.22 by greg, Sat Oct 13 21:32:25 1990 UTC

# Line 320 | Line 320 | int  x, y;                     /* pixel position */
320   {
321          static RAY  thisray;    /* our ray for this pixel */
322  
323 <        viewray(thisray.rorg, thisray.rdir, &ourview,
324 <                        (x+pixjitter())/hresolu, (y+pixjitter())/vresolu);
323 >        if (viewray(thisray.rorg, thisray.rdir, &ourview,
324 >                        (x+pixjitter())/hresolu, (y+pixjitter())/vresolu) < 0) {
325 >                setcolor(col, 0.0, 0.0, 0.0);
326 >                return(0.0);
327 >        }
328  
329          rayorigin(&thisray, NULL, PRIMARY, 1.0);
330          

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines