generate mesh gradient