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

Comparing ray/src/rt/raycalls.c (file contents):
Revision 2.10 by greg, Thu Oct 21 23:40:04 2004 UTC vs.
Revision 2.12 by greg, Mon Jun 13 20:07:56 2005 UTC

# Line 178 | Line 178 | ray_trace(                     /* trace a primary ray */
178          RAY     *r
179   )
180   {
181 <        rayorigin(r, NULL, PRIMARY, 1.0);
182 <        samplendx++;
181 >        rayorigin(r, PRIMARY, NULL, NULL);
182 >        samplendx = rand_samp ? random() : samplendx+1;
183          rayvalue(r);            /* assumes origin and direction are set */
184   }
185  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines