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

Comparing ray/src/rt/normal.c (file contents):
Revision 2.26 by greg, Tue Aug 24 12:59:28 1993 UTC vs.
Revision 2.27 by greg, Wed Jan 12 16:46:45 1994 UTC

# Line 158 | Line 158 | register RAY  *r;
158          register int  i;
159                                                  /* easy shadow test */
160          if (r->crtype & SHADOW && m->otype != MAT_TRANS)
161 <                return;
161 >                return(1);
162  
163          if (m->oargs.nfargs != (m->otype == MAT_TRANS ? 7 : 5))
164                  objerror(m, USER, "bad number of arguments");
# Line 255 | Line 255 | register RAY  *r;
255                  transtest = 0;
256  
257          if (r->crtype & SHADOW)                 /* the rest is shadow */
258 <                return;
258 >                return(1);
259                                                  /* diffuse reflection */
260          nd.rdiff = 1.0 - nd.trans - nd.rspec;
261  
262          if (nd.specfl & SP_PURE && nd.rdiff <= FTINY && nd.tdiff <= FTINY)
263 <                return;                         /* 100% pure specular */
263 >                return(1);                      /* 100% pure specular */
264  
265          if (r->ro != NULL && (r->ro->otype == OBJ_FACE ||
266                          r->ro->otype == OBJ_RING))
# Line 294 | Line 294 | register RAY  *r;
294                                          /* check distance */
295          if (transtest > bright(r->rcol))
296                  r->rt = transdist;
297 +
298 +        return(1);
299   }
300  
301  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines