Reset variables when reloading shader.