Implemented "pixel perfect" height from heightmap.

Seems to handle scaling fine as well.