Rerender CustomProceduralTexture when uniform changes

Hello,

i am currently experimenting with CustomProceduralTexture. I am using uniform in the shader and i have set refreshrate = 0, because the texture should change only when uniform changes, otherwise its static. However when changing the uniform the texture is not redrawn.

Is there any way to force rerender of the texture manually when i change the uniform?

Thanks.
L

You could try to assign back the refreshrate to 0 it should for new render only once.

Now when i tried to set the refreshRate i have noticed resetRefreshCounter() which i previously somehow missed. Calling that function after setting uniforms does the trick :wink:

2 Likes