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.13 by greg, Thu Apr 16 13:31:28 1992 UTC vs.
Revision 2.14 by greg, Mon Apr 20 09:25:50 1992 UTC

# Line 108 | Line 108 | double  omega;                 /* light source size */
108                                                  /* worth using? */
109                  if (dtmp > FTINY) {
110                          copycolor(ctmp, np->scolor);
111 <                        dtmp *= omega / np->pdot;
111 >                        dtmp *= omega * sqrt(ldot/np->pdot);
112                          scalecolor(ctmp, dtmp);
113                          addcolor(cval, ctmp);
114                  }
# Line 134 | Line 134 | double  omega;                 /* light source size */
134                                                  /* worth using? */
135                  if (dtmp > FTINY) {
136                          copycolor(ctmp, np->mcolor);
137 <                        dtmp *= np->tspec * omega / np->pdot;
137 >                        dtmp *= np->tspec * omega * sqrt(ldot/np->pdot);
138                          scalecolor(ctmp, dtmp);
139                          addcolor(cval, ctmp);
140                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines