253 lines
8.8 KiB
C#
253 lines
8.8 KiB
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Avatars.Poseable;
|
|
using RecRoom.Core.Imposters;
|
|
using UnityEngine;
|
|
using UnityEngine.Experimental.Rendering;
|
|
|
|
// Token: 0x020023B6 RID: 9142
|
|
[Token(Token = "0x20023B6")]
|
|
public static class ENBLCMELCHA
|
|
{
|
|
// Token: 0x0600EB8C RID: 60300 RVA: 0x00363420 File Offset: 0x00361620
|
|
[Token(Token = "0x600EB8C")]
|
|
[Address(RVA = "0x129D7F0", Offset = "0x129C5F0", VA = "0x18129D7F0")]
|
|
public static RenderTexture GOGOEPEJEOB()
|
|
{
|
|
int imageResolution = ENBLCMELCHA.PBGBNMCPEAJ.ImageResolution;
|
|
int num;
|
|
RenderTexture renderTexture = new RenderTexture(imageResolution, imageResolution, 24, (RenderTextureFormat)num);
|
|
num = 0;
|
|
renderTexture.name = "[PoseableAvatarImage]RenderTexture";
|
|
Graphics.Blit(Texture2D.blackTexture, renderTexture);
|
|
return renderTexture;
|
|
}
|
|
|
|
// Token: 0x0600EB8D RID: 60301 RVA: 0x00363464 File Offset: 0x00361664
|
|
[Token(Token = "0x600EB8D")]
|
|
[Address(RVA = "0x129D910", Offset = "0x129C710", VA = "0x18129D910")]
|
|
public static DABKFAIHBBP IHIAJEDJADM(MNHEFLIMKGO KJAFOCJMDIH, RenderTexture LDEKHANDCBO)
|
|
{
|
|
PoseableAvatarAsset[] poses = ENBLCMELCHA.PBGBNMCPEAJ.Poses;
|
|
global::System.Random pnldcpgaopc = ENBLCMELCHA.PNLDCPGAOPC;
|
|
int length = poses.Length;
|
|
int num;
|
|
PoseableAvatarAsset poseableAvatarAsset = ENBLCMELCHA.PBGBNMCPEAJ.Poses[num];
|
|
return ENBLCMELCHA.MEKBLKFCOKE(KJAFOCJMDIH, poseableAvatarAsset, LDEKHANDCBO);
|
|
}
|
|
|
|
// Token: 0x0600EB8E RID: 60302 RVA: 0x003634B0 File Offset: 0x003616B0
|
|
[Token(Token = "0x600EB8E")]
|
|
[Address(RVA = "0x129DA00", Offset = "0x129C800", VA = "0x18129DA00")]
|
|
public static DABKFAIHBBP MEKBLKFCOKE(MNHEFLIMKGO KJAFOCJMDIH, PoseableAvatarAsset BEKEOBJFIAC, RenderTexture LDEKHANDCBO)
|
|
{
|
|
ENBLCMELCHA.EOGMOECOOGG eogmoecoogg = new ENBLCMELCHA.EOGMOECOOGG();
|
|
eogmoecoogg.renderTexture = LDEKHANDCBO;
|
|
eogmoecoogg.asset = BEKEOBJFIAC;
|
|
int num = 0;
|
|
bool flag = LDEKHANDCBO == num;
|
|
if (!flag && flag)
|
|
{
|
|
int graphicsFormat = (int)eogmoecoogg.renderTexture.graphicsFormat;
|
|
PoseableAvatarConfig pbgbnmcpeaj = ENBLCMELCHA.PBGBNMCPEAJ;
|
|
if (graphicsFormat == pbgbnmcpeaj.ImageResolution)
|
|
{
|
|
RenderTexture renderTexture = eogmoecoogg.renderTexture;
|
|
PoseableAvatarConfig pbgbnmcpeaj2 = ENBLCMELCHA.PBGBNMCPEAJ;
|
|
if (eogmoecoogg.renderTexture.format == RenderTextureFormat.ARGB32 && eogmoecoogg.renderTexture.depth == 24)
|
|
{
|
|
PoseableAvatarPuppet poseableAvatarPuppet = global::UnityEngine.Object.Instantiate<PoseableAvatarPuppet>(ENBLCMELCHA.PBGBNMCPEAJ.PuppetPrefab);
|
|
eogmoecoogg.puppetInstance = poseableAvatarPuppet;
|
|
poseableAvatarPuppet.gameObject.NHCPFEKJPIA(DAJFOCGPHGP.Water);
|
|
PoseableAvatarPuppet puppetInstance = eogmoecoogg.puppetInstance;
|
|
PoseableAvatarAsset asset = eogmoecoogg.asset;
|
|
DABKFAIHBBP dabkfaihbbp = puppetInstance.InitializeAsync(KJAFOCJMDIH, asset);
|
|
Func<DABKFAIHBBP> func = delegate
|
|
{
|
|
GameObject gameObject = eogmoecoogg.puppetInstance.gameObject;
|
|
RenderTexture renderTexture2 = eogmoecoogg.renderTexture;
|
|
ImposterRenderConfig renderConfiguration = eogmoecoogg.asset.RenderConfiguration;
|
|
if (renderConfiguration == 0)
|
|
{
|
|
PoseableAvatarConfig pbgbnmcpeaj3 = ENBLCMELCHA.PBGBNMCPEAJ;
|
|
}
|
|
JODFIHBJHJM.LHIJJOKKALC(gameObject, renderTexture2, renderConfiguration);
|
|
DABKFAIHBBP <EIDHKJMHBEC>k__BackingField = JJEKJGALHKO.<EIDHKJMHBEC>k__BackingField;
|
|
DABKFAIHBBP dabkfaihbbp2;
|
|
return dabkfaihbbp2;
|
|
};
|
|
int num2 = 0;
|
|
num2 += num2;
|
|
num2++;
|
|
Action action = delegate
|
|
{
|
|
global::UnityEngine.Object.Destroy(eogmoecoogg.puppetInstance.gameObject);
|
|
};
|
|
if (num2 < eogmoecoogg)
|
|
{
|
|
num2 += num2;
|
|
num2++;
|
|
}
|
|
action += action;
|
|
num2 += num2;
|
|
}
|
|
}
|
|
return JJEKJGALHKO.LIPGKFECLDO("Texture does not meet the expected requirements. Get a suitable texture by calling CreateAvatarImageRenderTexture()");
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600EB8F RID: 60303 RVA: 0x003635DC File Offset: 0x003617DC
|
|
[Token(Token = "0x600EB8F")]
|
|
[Address(RVA = "0x129DF80", Offset = "0x129CD80", VA = "0x18129DF80")]
|
|
public static void PFKMOKFOLCH(RenderTexture FAACBOBPIKK, RenderTexture LBPIJFELLCN)
|
|
{
|
|
PoseableAvatarConfig pbgbnmcpeaj = ENBLCMELCHA.PBGBNMCPEAJ;
|
|
GraphicsFormat graphicsFormat = FAACBOBPIKK.graphicsFormat;
|
|
int num = (int)graphicsFormat;
|
|
int num2 = (int)graphicsFormat;
|
|
int num3 = Mathf.Min(num, num2);
|
|
int num4 = Mathf.RoundToInt(Mathf.Log((float)num, 2f)) - 1;
|
|
int num5 = Mathf.Clamp(num, 1, num4);
|
|
RenderTexture[] array = new RenderTexture[num5];
|
|
int num6 = 0;
|
|
if (num5 > 0)
|
|
{
|
|
num -= num5;
|
|
num = num2;
|
|
num -= num5;
|
|
GraphicsFormat graphicsFormat2 = FAACBOBPIKK.graphicsFormat;
|
|
RenderTexture renderTexture;
|
|
if (renderTexture != 0)
|
|
{
|
|
}
|
|
array[0] = renderTexture;
|
|
int length = array.Length;
|
|
if (num6 == 0)
|
|
{
|
|
}
|
|
RenderTexture renderTexture2 = array[num6];
|
|
int num7 = 0;
|
|
ENBLCMELCHA.OMCPCPLPCNK(renderTexture2, renderTexture, num7);
|
|
num6++;
|
|
}
|
|
GraphicsFormat graphicsFormat3 = FAACBOBPIKK.graphicsFormat;
|
|
int num8 = num5 - 1;
|
|
RenderTexture renderTexture3 = array[num8];
|
|
Material dropShadowMaterial = ENBLCMELCHA.PBGBNMCPEAJ.DropShadowMaterial;
|
|
RenderTexture renderTexture4;
|
|
ENBLCMELCHA.OMCPCPLPCNK(renderTexture3, renderTexture4, dropShadowMaterial);
|
|
RenderTexture.ReleaseTemporary(array[num8]);
|
|
if (renderTexture4 != 0)
|
|
{
|
|
}
|
|
array[0] = renderTexture4;
|
|
if (num5 > 0)
|
|
{
|
|
int length2 = array.Length;
|
|
RenderTexture renderTexture5 = array[num8];
|
|
if (num8 > 0)
|
|
{
|
|
}
|
|
if (num5 > 0)
|
|
{
|
|
RenderTexture.ReleaseTemporary(array[num6]);
|
|
num6++;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600EB90 RID: 60304 RVA: 0x00363710 File Offset: 0x00361910
|
|
[Token(Token = "0x600EB90")]
|
|
[Address(RVA = "0x129DE50", Offset = "0x129CC50", VA = "0x18129DE50")]
|
|
private static void OMCPCPLPCNK(RenderTexture DIEPOPNJNCO, RenderTexture IKAFBCDJOCL, [Optional] Material KFENPJENIOI)
|
|
{
|
|
Graphics.Blit(Texture2D.blackTexture, IKAFBCDJOCL);
|
|
int num = 0;
|
|
if (!(KFENPJENIOI != num))
|
|
{
|
|
Graphics.Blit(DIEPOPNJNCO, IKAFBCDJOCL);
|
|
}
|
|
Graphics.Blit(DIEPOPNJNCO, IKAFBCDJOCL, KFENPJENIOI);
|
|
}
|
|
|
|
// Token: 0x0600EB91 RID: 60305 RVA: 0x00363748 File Offset: 0x00361948
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x600EB91")]
|
|
[Address(RVA = "0x129E3E0", Offset = "0x129D1E0", VA = "0x18129E3E0")]
|
|
static ENBLCMELCHA()
|
|
{
|
|
DateTime now = DateTime.Now;
|
|
int num;
|
|
ENBLCMELCHA.PNLDCPGAOPC = new global::System.Random(num);
|
|
}
|
|
|
|
// Token: 0x04009BC1 RID: 39873
|
|
[Token(Token = "0x4009BC1")]
|
|
private static readonly PoseableAvatarConfig PBGBNMCPEAJ = OLJIOKGMCPN.MNKDOANEFLK<PoseableAvatarConfig>("LoadingScreen");
|
|
|
|
// Token: 0x04009BC2 RID: 39874
|
|
[Token(Token = "0x4009BC2")]
|
|
private static global::System.Random PNLDCPGAOPC;
|
|
|
|
// Token: 0x04009BC3 RID: 39875
|
|
[Token(Token = "0x4009BC3")]
|
|
public const string KBPLNLKJCMO = "LoadingScreen";
|
|
|
|
// Token: 0x020023B7 RID: 9143
|
|
[Token(Token = "0x20023B7")]
|
|
[CompilerGenerated]
|
|
private sealed class EOGMOECOOGG
|
|
{
|
|
// Token: 0x0600EB92 RID: 60306 RVA: 0x00363778 File Offset: 0x00361978
|
|
[Token(Token = "0x600EB92")]
|
|
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
|
public EOGMOECOOGG()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600EB93 RID: 60307 RVA: 0x0036378C File Offset: 0x0036198C
|
|
[Token(Token = "0x600EB93")]
|
|
[Address(RVA = "0x12A52A0", Offset = "0x12A40A0", VA = "0x1812A52A0")]
|
|
internal DABKFAIHBBP <CaptureAvatarPoseAsync>b__0()
|
|
{
|
|
GameObject gameObject = this.puppetInstance.gameObject;
|
|
RenderTexture renderTexture = this.renderTexture;
|
|
ImposterRenderConfig renderConfiguration = this.asset.RenderConfiguration;
|
|
if (renderConfiguration == 0)
|
|
{
|
|
PoseableAvatarConfig pbgbnmcpeaj = ENBLCMELCHA.PBGBNMCPEAJ;
|
|
}
|
|
JODFIHBJHJM.LHIJJOKKALC(gameObject, renderTexture, renderConfiguration);
|
|
DABKFAIHBBP <EIDHKJMHBEC>k__BackingField = JJEKJGALHKO.<EIDHKJMHBEC>k__BackingField;
|
|
DABKFAIHBBP dabkfaihbbp;
|
|
return dabkfaihbbp;
|
|
}
|
|
|
|
// Token: 0x0600EB94 RID: 60308 RVA: 0x003637EC File Offset: 0x003619EC
|
|
[Token(Token = "0x600EB94")]
|
|
[Address(RVA = "0x12A5470", Offset = "0x12A4270", VA = "0x1812A5470")]
|
|
internal void <CaptureAvatarPoseAsync>b__1()
|
|
{
|
|
global::UnityEngine.Object.Destroy(this.puppetInstance.gameObject);
|
|
}
|
|
|
|
// Token: 0x04009BC4 RID: 39876
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4009BC4")]
|
|
public PoseableAvatarPuppet puppetInstance;
|
|
|
|
// Token: 0x04009BC5 RID: 39877
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4009BC5")]
|
|
public RenderTexture renderTexture;
|
|
|
|
// Token: 0x04009BC6 RID: 39878
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4009BC6")]
|
|
public PoseableAvatarAsset asset;
|
|
}
|
|
}
|