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

Comparing ray/src/rt/lookamb.c (file contents):
Revision 1.2 by greg, Fri Jan 19 00:00:13 1990 UTC vs.
Revision 1.3 by greg, Thu Jun 6 10:09:50 1991 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1986 Regents of the University of California */
1 > /* Copyright (c) 1991 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 15 | Line 15 | static char SCCSid[] = "$SunId$ LBL";
15   #include  "color.h"
16  
17  
18 typedef double  FVECT[3];
19
18   typedef struct ambval {
19 <        FVECT  pos;             /* position in space */
20 <        FVECT  dir;             /* normal direction */
19 >        float  pos[3];          /* position in space */
20 >        float  dir[3];          /* normal direction */
21          int  lvl;               /* recursion level of parent ray */
22          float  weight;          /* weight of parent ray */
23          COLOR  val;             /* computed ambient value */
# Line 105 | Line 103 | FILE  *fp;
103          for ( ; ; ) {
104                  if (!dataonly)
105                          fscanf(fp, "%*s");
106 <                if (fscanf(fp, "%lf %lf %lf",
106 >                if (fscanf(fp, "%f %f %f",
107                                  &av.pos[0], &av.pos[1], &av.pos[2]) != 3)
108                          return;
109                  if (!dataonly)
110                          fscanf(fp, "%*s");
111 <                if (fscanf(fp, "%lf %lf %lf",
111 >                if (fscanf(fp, "%f %f %f",
112                                  &av.dir[0], &av.dir[1], &av.dir[2]) != 3)
113                          return;
114                  if (!dataonly)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines