Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
 void Start()
 {
     //Set the material's texture to the FBO texture
     renderer.material.mainTexture = FBOPlugin.GetTexture();
 }