void DestroyAssets() { if (_render != null) { _render.Dispose(); _render = null; } }
void CreateAssets() { DestroyAssets(); _render = new SDKRender(this); if (VRMod.ModConfig.LIVHUD.Value) { VRMod.UIFixes.CreateLIVHUD(_render.uiCameraInstance); } }
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; }
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) }); }
void CreateAssets() { DestroyAssets(); _render = new SDKRender(this); }
} // 0x000000018113BEF0-0x000000018113C2D0 public static void CreateBridgeOutputFrame(SDKRender render) { } // 0x000000018113C6A0-0x000000018113CB90
} // 0x000000018113D3B0-0x000000018113D450 public static void ApplyUserSpaceTransform(SDKRender render) { } // 0x000000018113BEF0-0x000000018113C2D0