added possibility to use custom shift to depth conversion