add parameter to not transform z-value to depth