add simple function mapping
in triangle test using barycentric coordinates