reset method

void reset()

Implementation

void reset(){
  // wipe the normal cache
  for (int i = 0; i < size3; i ++ ) {
    normalCache[ i * 3 ] = 0.0;
    field[ i ] = 0.0;
    palette[ i * 3 ] = palette[ i * 3 + 1 ] = palette[i * 3 + 2] = 0.0;
  }
}