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.14 by greg, Wed Apr 22 09:05:27 1992 UTC vs.
Revision 2.15 by greg, Thu May 14 11:32:09 1992 UTC

# Line 206 | Line 206 | register RAY  *r;
206                                                  /* check threshold */
207                  if (specthresh > FTINY &&
208                                  (specthresh >= 1.-FTINY ||
209 <                                specthresh > nd.rspec))
209 >                                specthresh + .05 - .1*frandom() > nd.rspec))
210                          nd.specfl |= SP_RBLT;
211                                                  /* compute refl. direction */
212                  for (i = 0; i < 3; i++)
# Line 225 | Line 225 | register RAY  *r;
225                                                          /* check threshold */
226                          if (specthresh > FTINY &&
227                                          (specthresh >= 1.-FTINY ||
228 <                                        specthresh > nd.tspec))
228 >                                specthresh + .05 - .1*frandom() > nd.tspec))
229                                  nd.specfl |= SP_TBLT;
230                          if (DOT(r->pert,r->pert) <= FTINY*FTINY) {
231                                  VCOPY(nd.prdir, r->rdir);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines