Added ambient adjustment according to depth.