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

Comparing ray/src/util/findglare.c (file contents):
Revision 1.2 by greg, Mon Mar 18 14:32:12 1991 UTC vs.
Revision 1.3 by greg, Mon Mar 18 15:06:49 1991 UTC

# Line 215 | Line 215 | init()                         /* initialize global variables */
215                  memerr("indirect illuminances");
216          copystruct(&leftview, &ourview);
217          copystruct(&rightview, &ourview);
218 <        spinvector(leftview.vdir, ourview.vdir, ourview.vup, -maxtheta);
219 <        spinvector(rightview.vdir, ourview.vdir, ourview.vup, maxtheta);
218 >        spinvector(leftview.vdir, ourview.vdir, ourview.vup, maxtheta);
219 >        spinvector(rightview.vdir, ourview.vdir, ourview.vup, -maxtheta);
220          setview(&leftview);
221          setview(&rightview);
222          indirect[nglarangs].lcos =
# Line 337 | Line 337 | printillum()                   /* print out indirect illuminances */
337  
338          printf("BEGIN indirect illuminance\n");
339          for (i = 0; i < nglardirs; i++)
340 <                printf("\t%f\t%f\n", (180.0/PI)*indirect[i].theta,
340 >                printf("\t%.0f\t%f\n", (180.0/PI)*indirect[i].theta,
341                                  PI * indirect[i].sum / (double)indirect[i].n);
342          printf("END indirect illuminance\n");
343   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines