if (intersectingCell != -1) {
// if lightening not computed, compute it
- if (octreeVolume.ce3[intersectingCell] == -1)
+ if (octreeVolume.cell3[intersectingCell] == -1)
// if cell is larger than 1
if (ray.hitCellSize > 1) {
// break it up
}
- final int cellColor = octreeVolume.ce2[intersectingCell];
+ final int cellColor = octreeVolume.cell2[intersectingCell];
red = (red * ((cellColor & 0xFF0000) >> 16)) / 255;
green = (green * ((cellColor & 0xFF00) >> 8)) / 255;
if (blue > 255)
blue = 255;
- octreeVolume.ce3[intersectingCell] = (((int) red) << 16)
+ octreeVolume.cell3[intersectingCell] = (((int) red) << 16)
+ (((int) green) << 8) + ((int) blue);
}
- if (octreeVolume.ce3[intersectingCell] == 0)
- return octreeVolume.ce2[intersectingCell];
- return octreeVolume.ce3[intersectingCell];
+ if (octreeVolume.cell3[intersectingCell] == 0)
+ return octreeVolume.cell2[intersectingCell];
+ return octreeVolume.cell3[intersectingCell];
}
// return (200 << 16) + (200 << 8) + 255;