WIP: Use depth buffer to terminate the ray