LUT issues for z-vector faces in mesh

I have issues with my LUT color map. I copied the example from three.js documentation and it looks quite good - but I always end up with black color faces for vertical surfaces. Any ideas why? When I add the ground that surface becomes black as well. But my color array has other color values in it.