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

Comparing ray/src/cv/mgflib/context.c (file contents):
Revision 1.20 by greg, Wed Apr 12 17:16:33 1995 UTC vs.
Revision 1.21 by greg, Thu Apr 13 12:11:26 1995 UTC

# Line 259 | Line 259 | register char  **av;
259                  *c_cmaterial = *(C_MATERIAL *)lp->data;
260                  c_cmaterial->clock = i + 1;
261                  return(MG_OK);
262 +        case MG_E_IR:           /* set index of refraction */
263 +                if (ac != 3)
264 +                        return(MG_EARGC);
265 +                if (!isflt(av[1]) | !isflt(av[2]))
266 +                        return(MG_ETYPE);
267 +                c_cmaterial->nr = atof(av[1]);
268 +                c_cmaterial->ni = atof(av[2]);
269 +                if (c_cmaterial->nr <= FTINY)
270 +                        return(MG_EILL);
271 +                c_cmaterial->clock++;
272 +                return(MG_OK);
273          case MG_E_RD:           /* set diffuse reflectance */
274                  if (ac != 2)
275                          return(MG_EARGC);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines