private RenderTexture Interlace(RenderTexture inputTexture) { if (_interlaced) { if (_interlacedTexture == null || _interlaceMaterial == null) { Debug.LogError("[AVPro DeckLink] Something went really wrong, I should not be here :("); } Graphics.Blit(inputTexture, _interlacedTexture, _interlaceMaterial, _interlacePass); // Notify the plugin that the interlaced frame is complete now DeckLinkPlugin.SetInterlacedOutputFrameReady(_device.DeviceIndex, _interlacePass == 1); _interlacePass = (_interlacePass + 1) % 2; return(_interlacedTexture); } return(inputTexture); }