78 lines
2.4 KiB
C#
78 lines
2.4 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace VRPanorama
|
|
{
|
|
// Token: 0x0200076C RID: 1900
|
|
[Token(Token = "0x200076C")]
|
|
[RequireComponent(typeof(Camera))]
|
|
[StructLayout(3)]
|
|
internal class Blitter : MonoBehaviour
|
|
{
|
|
// Token: 0x060036C8 RID: 14024 RVA: 0x000E62F0 File Offset: 0x000E44F0
|
|
[Token(Token = "0x60036C8")]
|
|
[Address(RVA = "0x19FE4C0", Offset = "0x19FCEC0", VA = "0x1819FE4C0")]
|
|
public static GameObject CreateGameObject(Camera GHIEONOLIJM)
|
|
{
|
|
Type[] padahclgbke = Blitter.PADAHCLGBKE;
|
|
GameObject gameObject = new GameObject("Blitter", padahclgbke);
|
|
gameObject.hideFlags = HideFlags.HideInHierarchy;
|
|
Camera component = gameObject.GetComponent<Camera>();
|
|
int num = 0;
|
|
component.cullingMask = num;
|
|
int targetDisplay = GHIEONOLIJM.targetDisplay;
|
|
component.targetDisplay = targetDisplay;
|
|
Blitter component2 = gameObject.GetComponent<Blitter>();
|
|
RenderTexture targetTexture = GHIEONOLIJM.targetTexture;
|
|
component2.DCCHGLDOEKG = targetTexture;
|
|
return gameObject;
|
|
}
|
|
|
|
// Token: 0x060036C9 RID: 14025 RVA: 0x000E6358 File Offset: 0x000E4558
|
|
[Token(Token = "0x60036C9")]
|
|
[Address(RVA = "0x19FE5E0", Offset = "0x19FCFE0", VA = "0x1819FE5E0")]
|
|
private void OnRenderImage(RenderTexture DIEPOPNJNCO, RenderTexture IKAFBCDJOCL)
|
|
{
|
|
Graphics.Blit(this.DCCHGLDOEKG, IKAFBCDJOCL);
|
|
}
|
|
|
|
// Token: 0x060036CA RID: 14026 RVA: 0x000E6374 File Offset: 0x000E4574
|
|
[Token(Token = "0x60036CA")]
|
|
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
|
|
public Blitter()
|
|
{
|
|
}
|
|
|
|
// Token: 0x060036CB RID: 14027 RVA: 0x000E6388 File Offset: 0x000E4588
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x60036CB")]
|
|
[Address(RVA = "0x19FE650", Offset = "0x19FD050", VA = "0x1819FE650")]
|
|
static Blitter()
|
|
{
|
|
Type[] array = new Type[2];
|
|
Type typeFromHandle = typeof(Camera);
|
|
if (typeFromHandle != 0)
|
|
{
|
|
}
|
|
array[0] = typeFromHandle;
|
|
Type typeFromHandle2 = typeof(Blitter);
|
|
if (typeFromHandle2 != 0)
|
|
{
|
|
}
|
|
array[1] = typeFromHandle2;
|
|
Blitter.PADAHCLGBKE = array;
|
|
}
|
|
|
|
// Token: 0x04002EF6 RID: 12022
|
|
[Token(Token = "0x4002EF6")]
|
|
private static Type[] PADAHCLGBKE;
|
|
|
|
// Token: 0x04002EF7 RID: 12023
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4002EF7")]
|
|
private RenderTexture DCCHGLDOEKG;
|
|
}
|
|
}
|