示例#1
0
 void OnEnable()
 {
     if (!shouldRunScript())
     {
         return;
     }
     NativePluginBridge.setApiState((int)NativePluginBridge.ApiStates.SendNDI);
     CreateTextureGetterAndRegister();
 }
示例#2
0
 private void OnEnable()
 {
     if (!Utils.isRendererMetal())
     {
         return;
     }
     NativePluginBridge.setApiState((int)NativePluginBridge.ApiStates.SendSyphonMetal);
     metalBlitShader = Shader.Find("UVO/Standalone/MetalBlit");
     CreateTextureGetterAndRegister();
 }
示例#3
0
 private void OnEnable()
 {
     if (!Utils.isRendererOpenGLCore())
     {
         return;
     }
     NativePluginBridge.setApiState((int)NativePluginBridge.ApiStates.SendSyphonGLCore);
     gammaShader = Shader.Find("UVO/Standalone/CoreGammaCorrect");
     lazyInit();
     CreateTextureGetterAndRegister();
 }
示例#4
0
 void OnEnable()
 {
     NativePluginBridge.setApiState((int)NativePluginBridge.ApiStates.SendSpout);
     CreateTextureGetterAndRegister();
 }