Recomputes the material's snapshot. This needs to be called if you have changed variables on your material and it isn't changing.
Be careful though - this function is slow - so try to call it only when needed!