void Update() { //Send a varying value to the plugin to oscillate the Texture's colours float value = Mathf.Abs(Mathf.Sin(Time.time)); FBOPlugin.Update(value); }
void Start() { //Set the material's texture to the FBO texture renderer.material.mainTexture = FBOPlugin.GetTexture(); }