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.20 by greg, Tue Mar 27 11:40:07 1990 UTC vs.
Revision 1.22 by greg, Sat Oct 13 21:32:25 1990 UTC

# Line 235 | Line 235 | int  xres, y, ysize;
235          COLOR  vline[MAXDIV+1];
236          float  zline[MAXDIV+1];
237          int  b = ysize;
238        double  z;
238          register int  i, j;
239          
240          for (i = 0; i < xres; i++) {
# Line 321 | 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