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 1.8 by greg, Thu Jun 8 17:04:40 1989 UTC vs.
Revision 1.9 by greg, Tue Jun 13 10:57:45 1989 UTC

# Line 65 | Line 65 | char  *s;
65          if (pframe.d < 0) pframe.d = 0;
66          if (pframe.r > ourview.hresolu) pframe.r = ourview.hresolu;
67          if (pframe.u > ourview.vresolu) pframe.u = ourview.vresolu;
68 +        if (pframe.l > pframe.r) pframe.l = pframe.r;
69 +        if (pframe.d > pframe.u) pframe.d = pframe.u;
70          pdepth = 0;
71   }
72  
# Line 392 | Line 394 | register char  *s;
394          extern int  maxdepth;
395          extern double  dstrsrc;
396          extern double  shadthresh;
397 +        extern double  shadcert;
398          extern COLOR  ambval;
399          extern double  ambacc;
400          extern double  minarad;
# Line 404 | Line 407 | register char  *s;
407          char  buf[128];
408          
409          if (s[0] == '\0') {
410 <                (*dev->comout)("aa ab ad ar as av dj dt lr lw sp st: ");
410 >                (*dev->comout)("aa ab ad ar as av dc dj dt lr lw sp st: ");
411                  (*dev->comin)(buf);
412                  s = buf;
413          }
# Line 449 | Line 452 | register char  *s;
452                                          break;
453                          }
454                          dstrsrc = d0;
455 +                        break;
456 +                case 'c':                       /* certainty */
457 +                        if (sscanf(s+2, "%lf", &d0) != 1) {
458 +                                sprintf(buf, "direct certainty (%.6g): ",
459 +                                                shadcert);
460 +                                (*dev->comout)(buf);
461 +                                (*dev->comin)(buf);
462 +                                if (sscanf(buf, "%lf", &d0) != 1)
463 +                                        break;
464 +                        }
465 +                        shadcert = d0;
466                          break;
467                  case 't':                       /* threshold */
468                          if (sscanf(s+2, "%lf", &d0) != 1) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines