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.19 by greg, Mon Aug 21 10:29:20 1995 UTC vs.
Revision 2.23 by greg, Tue Jan 14 19:54:27 1997 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1994 Regents of the University of California */
1 > /* Copyright (c) 1995 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 58 | Line 58 | int  vspretest = 512;                  /* virtual source pretest dens
58   int  directvis = 1;                     /* sources visible? */
59   double  srcsizerat = .2;                /* maximum ratio source size/dist. */
60  
61 + COLOR  cextinction = BLKCOLOR;          /* global extinction coefficient */
62 + COLOR  salbedo = BLKCOLOR;              /* global scattering albedo */
63 + double  seccg = 0.;                     /* global scattering eccentricity */
64 + double  ssampdist = 0.;                 /* scatter sampling distance */
65 +
66   double  specthresh = .15;               /* specular sampling threshold */
67   double  specjitter = 1.;                /* specular sampling jitter */
68  
# Line 67 | Line 72 | int  maxdepth = 6;                     /* maximum recursion depth */
72   double  minweight = 4e-3;               /* minimum ray weight */
73  
74   COLOR  ambval = BLKCOLOR;               /* ambient value */
75 + int  ambvwt = 0;                        /* initial weight for ambient value */
76   double  ambacc = 0.2;                   /* ambient accuracy */
77   int  ambres = 128;                      /* ambient resolution */
78   int  ambdiv = 512;                      /* ambient divisions */
# Line 512 | Line 518 | oputm(r)                               /* print modifier */
518   register RAY  *r;
519   {
520          if (r->ro != NULL)
521 <                fputs(objptr(r->ro->omod)->oname, stdout);
521 >                if (r->ro->omod != OVOID)
522 >                        fputs(objptr(r->ro->omod)->oname, stdout);
523 >                else
524 >                        fputs(VOIDID, stdout);
525          else
526                  putchar('*');
527          putchar('\t');

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines