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

Comparing ray/src/rt/rv2.c (file contents):
Revision 2.34 by greg, Wed Feb 14 15:25:34 1996 UTC vs.
Revision 2.36 by greg, Fri Mar 7 16:58:58 1997 UTC

# Line 499 | Line 499 | register char  *s;
499          extern int  ambssamp;
500          extern int  ambounce;
501          extern COLOR  cextinction;
502 <        extern double  salbedo;
502 >        extern COLOR  salbedo;
503          extern double  seccg;
504          extern double  ssampdist;
505          extern int  directvis;
# Line 605 | Line 605 | register char  *s;
605                                          (COLOR *)cextinction);
606                          break;
607                  case 'a':                       /* scattering albedo */
608 <                        getparam(s+2, "scattering albedo", 'r', &salbedo);
608 >                        getparam(s+2, "scattering albedo", 'C',
609 >                                        (COLOR *)salbedo);
610                          break;
611                  case 'g':                       /* scattering eccentricity */
612                          getparam(s+2, "scattering eccentricity", 'r', &seccg);
# Line 661 | Line 662 | char  *s;
662   {
663          char  buf[128];
664          int  x, y;
665 +        OBJREC  *inst;
666          RAY  thisray;
667  
668          thisray.rmax = 0.0;
# Line 698 | Line 700 | char  *s;
700                                          objptr(thisray.ro->omod)->oname,
701                                  ofun[thisray.ro->otype].funame,
702                                  thisray.ro->oname);
703 +                if ((inst = objptr(thisray.robj)) != thisray.ro)
704 +                        sprintf(buf+strlen(buf), " in instance \"%s\"",
705 +                                        inst->oname);
706                  (*dev->comout)(buf);
707                  (*dev->comin)(buf, NULL);
708                  if (thisray.rot >= FHUGE)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines