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

Comparing ray/src/px/neuclrtab.c (file contents):
Revision 2.2 by greg, Mon Jun 13 13:29:56 1994 UTC vs.
Revision 2.3 by greg, Tue Jun 14 12:36:04 1994 UTC

# Line 312 | Line 312 | initnet()
312          
313          for (i=0; i<clrtabsiz; i++) {
314                  p = network[i];
315 <                p[0] = i << netbiasshift;
316 <                p[1] = i << netbiasshift;
317 <                p[2] = i << netbiasshift;
318 <                freq[i] = intbias >> 8;  /* 1/256 */
315 >                p[0] =
316 >                p[1] =
317 >                p[2] = (i<<8) / clrtabsiz;
318 >                freq[i] = intbias/clrtabsiz;  /* 1/256 */
319                  bias[i] = 0;
320          }
321   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines