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

Comparing ray/src/gen/mkillum2.c (file contents):
Revision 2.22 by greg, Sun Sep 30 19:05:26 2007 UTC vs.
Revision 2.23 by greg, Mon Nov 5 23:40:26 2007 UTC

# Line 232 | Line 232 | my_face(               /* make an illum face */
232          nmisses = 0;
233          for (dim[1] = 0; dim[1] < n; dim[1]++)
234                  for (i = 0; i < il->nsamps; i++) {
235 <                                        /* random direction */
235 >                                        /* randomize direction */
236                      h = ilhash(dim, 2) + i;
237                      if (il->sd != NULL) {
238                          r_BSDF_incvec(dir, il->sd, dim[1], urand(h), xfm);
# Line 246 | Line 246 | my_face(               /* make an illum face */
246                              dir[j] = -dn[0]*u[j] - dn[1]*v[j] -
247                                                  dn[2]*fa->norm[j];
248                      }
249 <                                        /* random location */
249 >                                        /* randomize location */
250                      do {
251                          multisamp(sp, 2, urand(h+4862+nmisses));
252                          r1 = ur[0] + (ur[1]-ur[0]) * sp[0];
# Line 403 | Line 403 | my_ring(               /* make an illum ring */
403                  for (i = 0; i < il->nsamps; i++) {
404                                          /* next sample point */
405                      h = ilhash(dim,2) + i;
406 <                                        /* random direction */
406 >                                        /* randomize direction */
407                      if (il->sd != NULL) {
408                          r_BSDF_incvec(dir, il->sd, dim[1], urand(h), xfm);
409                      } else {
# Line 415 | Line 415 | my_ring(               /* make an illum ring */
415                          for (j = 0; j < 3; j++)
416                          dir[j] = -dn[0]*u[j] - dn[1]*v[j] - dn[2]*co->ad[j];
417                      }
418 <                                        /* random location */
418 >                                        /* randomize location */
419                      multisamp(sp, 2, urand(h+8371));
420                      r3 = sqrt(CO_R0(co)*CO_R0(co) +
421                              sp[0]*(CO_R1(co)*CO_R1(co) - CO_R0(co)*CO_R0(co)));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines