예제 #1
0
 void DestroyAssets()
 {
     if (_render != null)
     {
         _render.Dispose();
         _render = null;
     }
 }
예제 #2
0
 void CreateAssets()
 {
     DestroyAssets();
     _render = new SDKRender(this);
     if (VRMod.ModConfig.LIVHUD.Value)
     {
         VRMod.UIFixes.CreateLIVHUD(_render.uiCameraInstance);
     }
 }
예제 #3
0
 public static void ApplyUserSpaceTransform(SDKRender render)
 {
     if (render.stageTransform == null)
     {
         return;
     }
     render.stageTransform.localPosition = render.inputFrame.stageTransform.localPosition;
     render.stageTransform.localRotation = render.inputFrame.stageTransform.localRotation;
     render.stageTransform.localScale    = render.inputFrame.stageTransform.localScale;
 }
예제 #4
0
        public static void CreateBridgeOutputFrame(SDKRender render)
        {
            RENDERING_PIPELINE renderingPipeline = RENDERING_PIPELINE.UNDEFINED;

#if LIV_UNIVERSAL_RENDER
            renderingPipeline = RENDERING_PIPELINE.UNIVERSAL;
#else
            if (render.cameraInstance != null)
            {
                renderingPipeline = SDKUtils.GetRenderingPipeline(render.cameraInstance.actualRenderingPath);
            }
#endif
            SDKBridge.CreateFrame(new SDKOutputFrame()
            {
                renderingPipeline = renderingPipeline,
                trackedSpace      = SDKUtils.GetTrackedSpace(render.stageTransform == null ? render.stage : render.stageTransform)
            });
        }
예제 #5
0
 void CreateAssets()
 {
     DestroyAssets();
     _render = new SDKRender(this);
 }
예제 #6
0
        }                                                                       // 0x000000018113BEF0-0x000000018113C2D0

        public static void CreateBridgeOutputFrame(SDKRender render)
        {
        }                                                                                  // 0x000000018113C6A0-0x000000018113CB90
예제 #7
0
        }                                                                              // 0x000000018113D3B0-0x000000018113D450

        public static void ApplyUserSpaceTransform(SDKRender render)
        {
        }                                                                       // 0x000000018113BEF0-0x000000018113C2D0