Masked mesh gradients --> bad pdf