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.37 by schorsch, Tue Mar 30 16:13:01 2004 UTC vs.
Revision 2.39 by greg, Thu Apr 14 18:04:12 2005 UTC

# Line 85 | Line 85 | int  ambres = 256;                     /* ambient resolution */
85   int  ambdiv = 1024;                     /* ambient divisions */
86   int  ambssamp = 512;                    /* ambient super-samples */
87   int  ambounce = 0;                      /* ambient bounces */
88 < char  *amblist[128];                    /* ambient include/exclude list */
88 > char  *amblist[AMBLLEN];                /* ambient include/exclude list */
89   int  ambincl = -1;                      /* include == 1, exclude == 0 */
90  
91   static int  castonly = 0;
# Line 97 | Line 97 | static putf_t puta, putd, putf;
97  
98   typedef void oputf_t(RAY *r);
99   static oputf_t  oputo, oputd, oputv, oputl, oputL, oputc,
100 <                oputp, oputn, oputN, oputs, oputw, oputm;
100 >                oputp, oputn, oputN, oputs, oputw, oputm, oputM;
101  
102   static void setoutput(char *vs);
103   static void tranotify(OBJECT obj);
# Line 274 | Line 274 | setoutput(                             /* set up output tables */
274                  case 'm':                               /* modifier */
275                          *table++ = oputm;
276                          break;
277 +                case 'M':                               /* material */
278 +                        *table++ = oputM;
279 +                        break;
280                  }
281          *table = NULL;
282   }
# Line 612 | Line 615 | oputm(                         /* print modifier */
615                  else
616                          fputs(VOIDID, stdout);
617          else
618 +                putchar('*');
619 +        putchar('\t');
620 + }
621 +
622 +
623 + static void
624 + oputM(                          /* print material */
625 +        RAY  *r
626 + )
627 + {
628 +        OBJREC  *mat;
629 +
630 +        if (r->ro != NULL) {
631 +                if ((mat = findmaterial(r->ro)) != NULL)
632 +                        fputs(mat->oname, stdout);
633 +                else
634 +                        fputs(VOIDID, stdout);
635 +        } else
636                  putchar('*');
637          putchar('\t');
638   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines