Add terrain mask and test on background.