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.59 by greg, Wed Jan 14 20:27:00 2009 UTC vs.
Revision 2.61 by greg, Wed Oct 20 16:36:10 2010 UTC

# Line 539 | Line 539 | setparam(                              /* get/set program parameter */
539          
540          if (s[0] == '\0') {
541                  (*dev->comout)(
542 <                "aa ab ad ar as av aw b bv dc dv dj ds dt i lr lw me ma mg ms ps pt sj st u: ");
542 >                "aa ab ad ar as av aw b bv dc dv dj ds dt i lr lw me ma mg ms ps pt ss st u: ");
543                  (*dev->comin)(buf, NULL);
544                  s = buf;
545          }
# Line 687 | Line 687 | setparam(                              /* get/set program parameter */
687                  break;
688          case 's':                       /* specular */
689                  switch (s[1]) {
690 <                case 'j':                       /* jitter */
691 <                        getparam(s+2, "specular jitter", 'r',
690 >                case 's':                       /* sampling */
691 >                        getparam(s+2, "specular sampling", 'r',
692                                          (void *)&specjitter);
693                          break;
694                  case 't':                       /* threshold */
# Line 716 | Line 716 | traceray(                              /* trace a single ray */
716          char  *s
717   )
718   {
719 <        char  buf[128];
720 <        int  x, y;
721 <        OBJREC  *ino;
722 <        RAY  thisray;
719 >        RAY     thisray;
720 >        char    buf[512];
721  
722          thisray.rmax = 0.0;
723  
724          if (!sscanvec(s, thisray.rorg) ||
725                          !sscanvec(sskip2(s,3), thisray.rdir)) {
726 +                int  x, y;
727  
728                  if (dev->getcur == NULL)
729                          return;
# Line 751 | Line 750 | traceray(                              /* trace a single ray */
750                  OBJREC  *mat = NULL;
751                  OBJREC  *mod = NULL;
752                  char    matspec[256];
753 +                OBJREC  *ino;
754 +
755                  matspec[0] = '\0';
756                  if (thisray.ro->omod != OVOID) {
757                          mod = objptr(thisray.ro->omod);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines