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