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.17 by greg, Wed Jan 17 17:35:35 2024 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);
# Line 165 | Line 165 | readambval(                    /* read ambient value from stream */
165          } else {
166                  SCOLOR  scol;
167                  scolr2scolor(scol, sclr, AMB_CNDX[3]);
168 <                convertscolor(av->val, NCSAMP, WLPART[0], WLPART[3],
169 <                                scol, AMB_CNDX[3], AMB_WLPART[0], AMB_WLPART[3]);
168 >                convertscolorcol(av->val, scol, AMB_CNDX[3],
169 >                                AMB_WLPART[0], AMB_WLPART[3]);
170          }
171          return(feof(fp) ? 0 : ambvalOK(av));
172   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines