added heightMap support