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

Comparing ray/src/rt/ambio.c (file contents):
Revision 2.15 by greg, Wed Nov 15 18:02:52 2023 UTC vs.
Revision 2.16 by greg, Mon Dec 11 23:57:32 2023 UTC

# Line 132 | Line 132 | ambvalOK(                      /* check consistency of ambient value */
132          if (av->rad[0] > av->rad[1]+FTINY) return(0);
133          if (badflt(av->gpos[0]) | badflt(av->gpos[1])) return(0);
134          if (badflt(av->gdir[0]) | badflt(av->gdir[1])) return(0);
135 <        for (i = AMB_CNDX[3]; i-- > 0; )
135 >        for (i = NCSAMP; i-- > 0; )
136                  if ((av->val[i] < 0.) | (av->val[i] >= FHUGE))
137                          return(0);
138          return(1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines