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

Comparing ray/src/rt/rpict.c (file contents):
Revision 2.81 by greg, Mon May 11 21:46:31 2009 UTC vs.
Revision 2.82 by greg, Sat May 15 15:31:30 2010 UTC

# Line 701 | Line 701 | pixvalue(              /* compute pixel value */
701          if (dblur > FTINY && vdist > FTINY) {
702                  double  vc, dfh, dfv;
703                                                  /* square/circle conv. */
704 <                dfh = vc = frandom();
705 <                dfv = frandom();
704 >                dfh = vc = 1. - 2.*frandom();
705 >                dfv = 1. - 2.*frandom();
706                  dfh *= .5*dblur*sqrt(1. - .5*dfv*dfv);
707                  dfv *= .5*dblur*sqrt(1. - .5*vc*vc);
708                  if (ourview.type == VT_PER || ourview.type == VT_PAR) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines