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

Comparing ray/src/rt/aniso.c (file contents):
Revision 2.12 by greg, Thu Apr 16 13:29:06 1992 UTC vs.
Revision 2.13 by greg, Mon Apr 20 09:25:47 1992 UTC

# Line 119 | Line 119 | double  omega;                 /* light source size */
119                                                  /* worth using? */
120                  if (dtmp > FTINY) {
121                          copycolor(ctmp, np->scolor);
122 <                        dtmp *= omega / np->pdot;
122 >                        dtmp *= omega * sqrt(ldot/np->pdot);
123                          scalecolor(ctmp, dtmp);
124                          addcolor(cval, ctmp);
125                  }
# Line 144 | Line 144 | double  omega;                 /* light source size */
144                                                  /* worth using? */
145                  if (dtmp > FTINY) {
146                          copycolor(ctmp, np->mcolor);
147 <                        dtmp *= np->tspec * omega / np->pdot;
147 >                        dtmp *= np->tspec * omega * sqrt(ldot/np->pdot);
148                          scalecolor(ctmp, dtmp);
149                          addcolor(cval, ctmp);
150                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines