Replaced depth component by Z coordinate