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

Comparing ray/src/rt/rtrace.c (file contents):
Revision 2.47 by greg, Mon Jun 13 20:07:56 2005 UTC vs.
Revision 2.49 by schorsch, Mon Sep 19 11:30:10 2005 UTC

# Line 29 | Line 29 | static const char      RCSid[] = "$Id$";
29   #include  "source.h"
30   #include  "otypes.h"
31   #include  "resolu.h"
32 + #include  "random.h"
33  
34   CUBE  thescene;                         /* our scene */
35   OBJECT  nsceneobjs;                     /* number of objects in our scene */
# Line 638 | Line 639 | oputW(                         /* print contribution */
639          RAY  *r
640   )
641   {
642 <        COLOR   contr;
642 >        double  contr[3];
643  
644          raycontrib(contr, r, PRIMARY);
645 <        (*putreal)(colval(contr,RED));
646 <        (*putreal)(colval(contr,GRN));
647 <        (*putreal)(colval(contr,BLU));
645 >        (*putreal)(contr[RED]);
646 >        (*putreal)(contr[GRN]);
647 >        (*putreal)(contr[BLU]);
648   }
649  
650  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines