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

Comparing ray/src/rt/rcmain.c (file contents):
Revision 2.3 by greg, Mon Jun 11 05:07:55 2012 UTC vs.
Revision 2.7 by greg, Fri Jun 22 22:03:02 2012 UTC

# Line 9 | Line 9 | static const char      RCSid[] = "$Id$";
9  
10   #include <signal.h>
11   #include "rcontrib.h"
12 < #include "platform.h"
13 < #include "paths.h"
12 > #include "random.h"
13   #include "source.h"
14   #include "ambient.h"
15  
# Line 44 | Line 43 | int    lim_dist = 0;                   /* limit distance? */
43   const char      *modname[MAXMODLIST];   /* ordered modifier name list */
44   int             nmods = 0;              /* number of modifiers */
45  
46 + void    (*addobjnotify[8])() = {ambnotify, NULL};
47 +
48   char    RCCONTEXT[] = "RCONTRIB";       /* our special evaluation context */
49  
49 void    (*addobjnotify[8])() = {ambnotify, tranotify, NULL};
50  
51
51   static void
52   printdefaults(void)                     /* print default values to stdout */
53   {
# Line 170 | Line 169 | main(int argc, char *argv[])
169                                  case 'n': case 'N': case 'f': case 'F': \
170                                  case '-': case '0': var = 0; break; \
171                                  default: goto badopt; }
173        int     nprocs = 1;
172          char    *curout = NULL;
173          char    *binval = NULL;
174          int     bincnt = 0;
# Line 337 | Line 335 | main(int argc, char *argv[])
335          nsceneobjs = nobjects;
336  
337          marksources();                  /* find and mark sources */
338 +        for (i = 0; i < nsources; i++)  /* tracing to sources as well */
339 +                source[i].sflags |= SFOLLOW;
340  
341          setambient();                   /* initialize ambient calculation */
342  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines