Called when the effect is starting.
All state should be reset. The frame number, which is not supplied, is one.