by Amplify_Borba » Tue Jun 12, 2018 10:12 am
Hello, thank you for getting in touch!
Since shaders can't store states themselves, the only way accomplish this is to pass some kind parameter to the shader - e.g. we can reset a shader time via script, but not via shader.
This is an expected limitation, and all the options we can think of involve making use of a script:
* Create a Dissolve Time parameter which you reset every time you trigger a dissolve
* Use a simple script to do the time calculations and update the Dissolve Amount material parameter via script
Feel free to check our Smear sample, which provides an example on how to use scripting together with a shader, and don't hesitate to let me know if you have any further questions, thanks!