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

Comparing ray/src/px/pf2.c (file contents):
Revision 2.8 by greg, Thu Jul 26 23:50:40 2018 UTC vs.
Revision 2.9 by greg, Thu Apr 21 03:11:55 2022 UTC

# Line 85 | Line 85 | pass1scan(             /* process first pass scanline */
85                          copycolor(hp->val, scan[x]);
86                          hp->x = x;
87                          hp->y = y;
88 <                        hp->slope = tan(PI*(0.5-(random()%npts+0.5)/npts));
88 >                        hp->slope = tan(PI*(0.5-(irandom(npts)+0.5)/npts));
89                          hp->next = head;
90                          head = hp;
91                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines