calculate ground heightmap dynamically from texture