Read up on this!
https://twitter.com/jujuadams/status/781918355053838336
That would be the next step after figuring things out [and ensuring that a simple depth=-(x+y) won't be enough for the case]. This is an example of how to do coordinate conversions themselves.