Closed ghost closed 11 years ago
countarray stores light count for caculating average, but it doesn't have enough slots to store all light value. It's within 0 to 255. Levels of lights are 256! (not 255). It must have 256 slots to store count all light levels.
countarray stores light count for caculating average, but it doesn't have enough slots to store all light value. It's within 0 to 255. Levels of lights are 256! (not 255). It must have 256 slots to store count all light levels.