moved back pointer to patch to ray precomputations