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

Comparing ray/src/rt/virtuals.c (file contents):
Revision 2.14 by schorsch, Tue Mar 30 16:13:01 2004 UTC vs.
Revision 2.16 by greg, Tue Apr 19 01:15:07 2005 UTC

# Line 361 | Line 361 | vstestvis(             /* pretest source visibility */
361                                  sr.rdir[i] = -onorm[i];
362                          }
363                          sr.rmax = 0.0;
364 <                        rayorigin(&sr, NULL, PRIMARY, 1.0);
364 >                        rayorigin(&sr, PRIMARY, NULL, NULL);
365                  } while (!(*ofun[o->otype].funp)(o, &sr));
366                                          /* check against source */
367                  VCOPY(sr.rorg, sr.rop); /* starting from intersection */
# Line 373 | Line 373 | vstestvis(             /* pretest source visibility */
373                          if (!srcray(&sr, NULL, &si) || sr.rsrc != sn)
374                                  continue;       /* can't get there from here */
375                  }
376 <                sr.revf = srcvalue;
377 <                rayvalue(&sr);                  /* check sample validity */
376 >                srcvalue(&sr);                  /* check sample validity */
377                  if (bright(sr.rcol) <= FTINY)
378                          continue;
379                  nok++;                  /* got sample; check obstructions */
380                  rayclear(&sr);
382                sr.revf = raytrace;
381                  rayvalue(&sr);
382                  if (bright(sr.rcol) > FTINY)
383                          nhit++;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines