This is used to compute Y-positions of map objects. It is called quite often, so this implementation creates and caches a height map of the instance by (re)using the shader for shadow mapping.