When calling clear on a Ploma instance, textureSampleStep is not reset.
I am using Ploma in a way where randomization is not desired: I want to plug undo and redo onto it. There it is essential that the sequence "undo redo" restores the initial image. I can achieve that by simply overwriting Math.random with a function that returns an arbitrary chosen value. One could see this value as a representation of the unique structure of paper. However, since textureSampleStep is not being reset, the result after undoing and redoing is still distinct if I don't use a completely new Ploma instance.
In my opinion, textureSampleStep should be reset to 0 in this.clear routine.
When calling clear on a Ploma instance, textureSampleStep is not reset.
I am using Ploma in a way where randomization is not desired: I want to plug undo and redo onto it. There it is essential that the sequence "undo redo" restores the initial image. I can achieve that by simply overwriting Math.random with a function that returns an arbitrary chosen value. One could see this value as a representation of the unique structure of paper. However, since textureSampleStep is not being reset, the result after undoing and redoing is still distinct if I don't use a completely new Ploma instance.
In my opinion, textureSampleStep should be reset to 0 in this.clear routine.