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

Comparing ray/src/rt/t_func.c (file contents):
Revision 2.2 by greg, Mon Nov 25 09:50:59 1991 UTC vs.
Revision 2.5 by greg, Tue Feb 25 02:47:23 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1991 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   *  t_func.c - routine for procedural textures.
9 *
10 *     4/8/86
6   */
7  
8 + #include "copyright.h"
9 +
10   #include  "ray.h"
11  
12   #include  "func.h"
# Line 49 | Line 46 | register RAY  *r;
46                  disp[i] = evalue(mf->ep[i]);
47                  if (errno) {
48                          objerror(m, WARNING, "compute error");
49 <                        return;
49 >                        return(0);
50                  }
51          }
52          if (mf->f != &unitxf)
# Line 61 | Line 58 | register RAY  *r;
58                  d = 1.0 / mf->f->sca;
59          for (i = 0; i < 3; i++)
60                  r->pert[i] += disp[i] * d;
61 +        return(0);
62   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines