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

Comparing ray/src/rt/source.c (file contents):
Revision 2.23 by greg, Thu Mar 21 15:33:09 1996 UTC vs.
Revision 2.24 by greg, Wed Apr 17 14:02:18 1996 UTC

# Line 413 | Line 413 | register RAY  *r;
413                                          sr.rsrc != r->slights[i])
414                                  continue;               /* no path */
415                          copycolor(sr.cext, r->cext);
416 <                        sr.albedo = r->albedo;
416 >                        copycolor(sr.albedo, r->albedo);
417                          sr.gecc = r->gecc;
418                          rayvalue(&sr);                  /* eval. source ray */
419                          if (bright(sr.rcol) <= FTINY)
# Line 433 | Line 433 | register RAY  *r;
433                                  d = (1. - r->gecc*r->gecc) / (d*d*d);
434                          }
435                                                          /* other factors */
436 <                        d *= si.dom * r->albedo * r->rot / (4.*PI*nsamps);
436 >                        d *= si.dom * r->rot / (4.*PI*nsamps);
437                          multcolor(sr.rcol, r->cext);
438 +                        multcolor(sr.rcol, r->albedo);
439                          scalecolor(sr.rcol, d);
440                          addcolor(cumval, sr.rcol);
441                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines