void OnRenderObject() { //if (Input.GetKey(KeyCode.Joystick1Button0)) //{ // currentOverlayType = OverlayType.None; //} //else if (Input.GetKey(KeyCode.Joystick1Button1)) //{ // currentOverlayType = OverlayType.OverlayShowLod; //} //else //{ // currentOverlayType = OverlayType.Overlay; //} //int eyeNum = (Camera.current.depth == (int)RenderEventType.RightEyeEndFrame) ? 1 : 0; //Matrix4x4 mv_Left = LeftAnchor.worldToCameraMatrix * this.transform.localToWorldMatrix * toOculusMatrix; //IVR_SetOverlay(LeftAnchor.targetTexture.GetNativeTextureID(), 0); System.IntPtr texutre = mCamera.targetTexture.GetNativeTexturePtr(); mActivity.Interface_javaobjcall("SetEyeTexture", texutre.ToInt32(), (int)eyeType); //Matrix4x4 mv_Right = RightAnchor.worldToCameraMatrix * this.transform.localToWorldMatrix * toOculusMatrix; //IVR_SetOverlay(RightAnchor.targetTexture.GetNativeTextureID(), 1); //mActivity.Interface_javaobjcall("SetEyeTexture", RightAnchor.targetTexture.GetNativeTextureID(), 1); }