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.9 by greg, Thu Jan 16 12:05:29 1992 UTC vs.
Revision 2.10 by greg, Thu Jan 30 11:37:00 1992 UTC

# Line 194 | Line 194 | register RAY  *r;
194                                                  /* check threshold */
195                  if (specthresh > FTINY &&
196                                  ((specthresh >= 1.-FTINY ||
197 <                                specthresh + (.05 - .1*urand(8199+samplendx))
198 <                                        > nd.rspec)))
197 >                                specthresh + (.05 - .1*frandom()) > nd.rspec)))
198                          nd.specfl |= SP_RBLT;
199                                                  /* compute reflected ray */
200                  for (i = 0; i < 3; i++)
# Line 225 | Line 224 | register RAY  *r;
224                          if (specthresh > FTINY &&
225                                          ((specthresh >= 1.-FTINY ||
226                                          specthresh +
227 <                                            (.05 - .1*urand(7241+samplendx))
229 <                                                > nd.tspec)))
227 >                                            (.05 - .1*frandom()) > nd.tspec)))
228                                  nd.specfl |= SP_TBLT;
229                          if (r->crtype & SHADOW ||
230                                          DOT(r->pert,r->pert) <= FTINY*FTINY) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines