2361 lines
108 KiB
C#
2361 lines
108 KiB
C#
using System;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02001193 RID: 4499
|
|
[RequireComponent(typeof(Camera))]
|
|
public class DesaturateEffect : MonoBehaviour
|
|
{
|
|
// Token: 0x1700117E RID: 4478
|
|
// (get) Token: 0x060265D5 RID: 157141 RVA: 0x00AA3034 File Offset: 0x00AA1234
|
|
// (set) Token: 0x060265A1 RID: 157089 RVA: 0x00AA16F0 File Offset: 0x00A9F8F0
|
|
public DesaturateEffect.OMELIIGMIHD PNOOBNCKAMJ
|
|
{
|
|
get
|
|
{
|
|
return this.mode;
|
|
}
|
|
set
|
|
{
|
|
this.mode = value;
|
|
base.enabled = this.FKGJIIKIMGM > 0f || this.mode == DesaturateEffect.OMELIIGMIHD.TargetedToOverlayUI;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060265A2 RID: 157090 RVA: 0x00AA171C File Offset: 0x00A9F91C
|
|
public void LAIKKNNFGDL(DesaturateEffect.OMELIIGMIHD NOBAPCOKFIL)
|
|
{
|
|
this.mode = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM > 204f || this.mode == (DesaturateEffect.OMELIIGMIHD)7;
|
|
}
|
|
|
|
// Token: 0x060265A3 RID: 157091 RVA: 0x00AA1748 File Offset: 0x00A9F948
|
|
private void HKAIPJILKCA(RenderTexture ECFENKBBJOK, RenderTexture CECEGDBCMOD)
|
|
{
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("Product Category ", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("HTTPRequest", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("New level loaded. Removed ", this.mode == (DesaturateEffect.OMELIIGMIHD)3);
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.KIBDPCHHBOJ, new Vector4(this.desaturatedWhiteLevel - this.desaturatedBlackLevel, this.desaturatedBlackLevel, this.maxDesaturation, 1102f));
|
|
if (this.mode == DesaturateEffect.OMELIIGMIHD.TargetedToOverlayUI)
|
|
{
|
|
this.EFDIAPOBDNP.SetTexture(DesaturateEffect.KEMJECLOIPD, this.NKDJCPIOCEB);
|
|
}
|
|
else
|
|
{
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.IIAKBHDKCHD, new Vector4(this.partialScreenBottomLeft.x, this.partialScreenBottomLeft.y, this.partialScreenTopRight.x, this.partialScreenTopRight.y));
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.HHEPLCCPKFP, this.partialScreenEdgeFade);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.CEHMPDEAGOC, this.FKGJIIKIMGM);
|
|
}
|
|
Graphics.Blit(ECFENKBBJOK, CECEGDBCMOD);
|
|
}
|
|
|
|
// Token: 0x060265A4 RID: 157092 RVA: 0x00AA1870 File Offset: 0x00A9FA70
|
|
public float COHCEHGDMOB()
|
|
{
|
|
return this.FKGJIIKIMGM;
|
|
}
|
|
|
|
// Token: 0x060265A5 RID: 157093 RVA: 0x00AA1878 File Offset: 0x00A9FA78
|
|
private void IAELNEEEKGG(RenderTexture ECFENKBBJOK, RenderTexture CECEGDBCMOD)
|
|
{
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("gizmos", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("Failed to create room. There is already a room called ^", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("Missing Drawer for Tool : ", this.mode == (DesaturateEffect.OMELIIGMIHD)5);
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.KIBDPCHHBOJ, new Vector4(this.desaturatedWhiteLevel - this.desaturatedBlackLevel, this.desaturatedBlackLevel, this.maxDesaturation, 532f));
|
|
if (this.mode == (DesaturateEffect.OMELIIGMIHD)4)
|
|
{
|
|
this.EFDIAPOBDNP.SetTexture(DesaturateEffect.KEMJECLOIPD, this.NKDJCPIOCEB);
|
|
}
|
|
else
|
|
{
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.IIAKBHDKCHD, new Vector4(this.partialScreenBottomLeft.x, this.partialScreenBottomLeft.y, this.partialScreenTopRight.x, this.partialScreenTopRight.y));
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.HHEPLCCPKFP, this.partialScreenEdgeFade);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.CEHMPDEAGOC, this.FKGJIIKIMGM);
|
|
}
|
|
Graphics.Blit(ECFENKBBJOK, CECEGDBCMOD);
|
|
}
|
|
|
|
// Token: 0x060265A6 RID: 157094 RVA: 0x00AA19A0 File Offset: 0x00A9FBA0
|
|
public DesaturateEffect.OMELIIGMIHD OOKEDMPMMIM()
|
|
{
|
|
return this.mode;
|
|
}
|
|
|
|
// Token: 0x060265A7 RID: 157095 RVA: 0x00AA19A8 File Offset: 0x00A9FBA8
|
|
private void BHCHOMLPONM()
|
|
{
|
|
if (this.mode == (DesaturateEffect.OMELIIGMIHD)4)
|
|
{
|
|
this.HHMIAPGHOFB();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060265A8 RID: 157096 RVA: 0x00AA19BC File Offset: 0x00A9FBBC
|
|
private void MABOPNAICOO(RenderTexture ECFENKBBJOK, RenderTexture CECEGDBCMOD)
|
|
{
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("WatchMenu", this.mode == DesaturateEffect.OMELIIGMIHD.PartialScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("Enabled with header: ", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("DownloadLength", this.mode == (DesaturateEffect.OMELIIGMIHD)4);
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.KIBDPCHHBOJ, new Vector4(this.desaturatedWhiteLevel - this.desaturatedBlackLevel, this.desaturatedBlackLevel, this.maxDesaturation, 854f));
|
|
if (this.mode == DesaturateEffect.OMELIIGMIHD.PartialScreen)
|
|
{
|
|
this.EFDIAPOBDNP.SetTexture(DesaturateEffect.KEMJECLOIPD, this.NKDJCPIOCEB);
|
|
}
|
|
else
|
|
{
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.IIAKBHDKCHD, new Vector4(this.partialScreenBottomLeft.x, this.partialScreenBottomLeft.y, this.partialScreenTopRight.x, this.partialScreenTopRight.y));
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.HHEPLCCPKFP, this.partialScreenEdgeFade);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.CEHMPDEAGOC, this.FKGJIIKIMGM);
|
|
}
|
|
Graphics.Blit(ECFENKBBJOK, CECEGDBCMOD);
|
|
}
|
|
|
|
// Token: 0x060265A9 RID: 157097 RVA: 0x00AA1AE4 File Offset: 0x00A9FCE4
|
|
public void AGDOMPHNMHC(float NOBAPCOKFIL)
|
|
{
|
|
this.FKGJIIKIMGM = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM <= 1194f && this.mode == DesaturateEffect.OMELIIGMIHD.TargetedToOverlayUI;
|
|
}
|
|
|
|
// Token: 0x060265AA RID: 157098 RVA: 0x00AA1B10 File Offset: 0x00A9FD10
|
|
public void ICOFBINPBAN(float NOBAPCOKFIL)
|
|
{
|
|
this.FKGJIIKIMGM = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM <= 1040f && this.mode == (DesaturateEffect.OMELIIGMIHD)7;
|
|
}
|
|
|
|
// Token: 0x060265AB RID: 157099 RVA: 0x00AA1B3C File Offset: 0x00A9FD3C
|
|
private void EFEPOFEDLIC()
|
|
{
|
|
if (this.mode == DesaturateEffect.OMELIIGMIHD.TargetedToOverlayUI)
|
|
{
|
|
this.EIAFGFMKCCE();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060265AC RID: 157100 RVA: 0x00AA1B50 File Offset: 0x00A9FD50
|
|
public void HOCANLMFLFH(float NOBAPCOKFIL)
|
|
{
|
|
this.FKGJIIKIMGM = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM <= 793f && this.mode == DesaturateEffect.OMELIIGMIHD.PartialScreen;
|
|
}
|
|
|
|
// Token: 0x060265AD RID: 157101 RVA: 0x00AA1B7C File Offset: 0x00A9FD7C
|
|
private void DCBNPFAMOBL(RenderTexture ECFENKBBJOK, RenderTexture CECEGDBCMOD)
|
|
{
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("Content-Type", this.mode == DesaturateEffect.OMELIIGMIHD.PartialScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("YOU ARE ON OFFENSE", this.mode == DesaturateEffect.OMELIIGMIHD.PartialScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("<color=\"#02C85F\"><b>ObscuredPrefs:</b></color>\nsecure, lot of additional types and extra options", this.mode == (DesaturateEffect.OMELIIGMIHD)6);
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.KIBDPCHHBOJ, new Vector4(this.desaturatedWhiteLevel - this.desaturatedBlackLevel, this.desaturatedBlackLevel, this.maxDesaturation, 1967f));
|
|
if (this.mode == (DesaturateEffect.OMELIIGMIHD)3)
|
|
{
|
|
this.EFDIAPOBDNP.SetTexture(DesaturateEffect.KEMJECLOIPD, this.NKDJCPIOCEB);
|
|
}
|
|
else
|
|
{
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.IIAKBHDKCHD, new Vector4(this.partialScreenBottomLeft.x, this.partialScreenBottomLeft.y, this.partialScreenTopRight.x, this.partialScreenTopRight.y));
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.HHEPLCCPKFP, this.partialScreenEdgeFade);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.CEHMPDEAGOC, this.FKGJIIKIMGM);
|
|
}
|
|
Graphics.Blit(ECFENKBBJOK, CECEGDBCMOD);
|
|
}
|
|
|
|
// Token: 0x060265AE RID: 157102 RVA: 0x00AA1CA4 File Offset: 0x00A9FEA4
|
|
public void AAGNPNIIGCG(float NOBAPCOKFIL)
|
|
{
|
|
this.FKGJIIKIMGM = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM > 255f || this.mode == (DesaturateEffect.OMELIIGMIHD)6;
|
|
}
|
|
|
|
// Token: 0x060265AF RID: 157103 RVA: 0x00AA1CD0 File Offset: 0x00A9FED0
|
|
public DesaturateEffect.OMELIIGMIHD GKCENDJOPFD()
|
|
{
|
|
return this.mode;
|
|
}
|
|
|
|
// Token: 0x060265B0 RID: 157104 RVA: 0x00AA1CD8 File Offset: 0x00A9FED8
|
|
public float KOAGOANDOFK()
|
|
{
|
|
return this.FKGJIIKIMGM;
|
|
}
|
|
|
|
// Token: 0x060265B1 RID: 157105 RVA: 0x00AA1CE0 File Offset: 0x00A9FEE0
|
|
public float KPMPNIHKBEB()
|
|
{
|
|
return this.FKGJIIKIMGM;
|
|
}
|
|
|
|
// Token: 0x060265B2 RID: 157106 RVA: 0x00AA1CE8 File Offset: 0x00A9FEE8
|
|
public void FJKBMKIEPKO(DesaturateEffect.OMELIIGMIHD NOBAPCOKFIL)
|
|
{
|
|
this.mode = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM <= 800f && this.mode == (DesaturateEffect.OMELIIGMIHD)5;
|
|
}
|
|
|
|
// Token: 0x060265B3 RID: 157107 RVA: 0x00AA1D14 File Offset: 0x00A9FF14
|
|
private void GLHLBMJNHAJ()
|
|
{
|
|
if (this.mode == (DesaturateEffect.OMELIIGMIHD)7)
|
|
{
|
|
this.JOKHHCOPCPP();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060265B4 RID: 157108 RVA: 0x00AA1D28 File Offset: 0x00A9FF28
|
|
public void KICNPNKGLNA(float NOBAPCOKFIL)
|
|
{
|
|
this.FKGJIIKIMGM = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM <= 1300f && this.mode == (DesaturateEffect.OMELIIGMIHD)8;
|
|
}
|
|
|
|
// Token: 0x060265B5 RID: 157109 RVA: 0x00AA1D54 File Offset: 0x00A9FF54
|
|
public void LCLDKMCCIPL(DesaturateEffect.OMELIIGMIHD NOBAPCOKFIL)
|
|
{
|
|
this.mode = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM > 939f || this.mode == (DesaturateEffect.OMELIIGMIHD)7;
|
|
}
|
|
|
|
// Token: 0x060265B6 RID: 157110 RVA: 0x00AA1D80 File Offset: 0x00A9FF80
|
|
public void DNGOPFIBGHD(DesaturateEffect.OMELIIGMIHD NOBAPCOKFIL)
|
|
{
|
|
this.mode = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM > 1616f || this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen;
|
|
}
|
|
|
|
// Token: 0x060265B7 RID: 157111 RVA: 0x00AA1DAC File Offset: 0x00A9FFAC
|
|
private void JEEPGLPLFBJ()
|
|
{
|
|
if (this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen)
|
|
{
|
|
this.HHMIAPGHOFB();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060265B8 RID: 157112 RVA: 0x00AA1DC0 File Offset: 0x00A9FFC0
|
|
private void GDGFLNBPCHG(RenderTexture ECFENKBBJOK, RenderTexture CECEGDBCMOD)
|
|
{
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("Assets/Core/Content/Configs", this.mode == DesaturateEffect.OMELIIGMIHD.PartialScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("000abc123def", this.mode == DesaturateEffect.OMELIIGMIHD.PartialScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("money", this.mode == (DesaturateEffect.OMELIIGMIHD)7);
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.KIBDPCHHBOJ, new Vector4(this.desaturatedWhiteLevel - this.desaturatedBlackLevel, this.desaturatedBlackLevel, this.maxDesaturation, 750f));
|
|
if (this.mode == (DesaturateEffect.OMELIIGMIHD)7)
|
|
{
|
|
this.EFDIAPOBDNP.SetTexture(DesaturateEffect.KEMJECLOIPD, this.NKDJCPIOCEB);
|
|
}
|
|
else
|
|
{
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.IIAKBHDKCHD, new Vector4(this.partialScreenBottomLeft.x, this.partialScreenBottomLeft.y, this.partialScreenTopRight.x, this.partialScreenTopRight.y));
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.HHEPLCCPKFP, this.partialScreenEdgeFade);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.CEHMPDEAGOC, this.FKGJIIKIMGM);
|
|
}
|
|
Graphics.Blit(ECFENKBBJOK, CECEGDBCMOD);
|
|
}
|
|
|
|
// Token: 0x060265B9 RID: 157113 RVA: 0x00AA1EE8 File Offset: 0x00AA00E8
|
|
public float LMBEOMELMMG()
|
|
{
|
|
return this.FKGJIIKIMGM;
|
|
}
|
|
|
|
// Token: 0x060265BA RID: 157114 RVA: 0x00AA1EF0 File Offset: 0x00AA00F0
|
|
public DesaturateEffect.OMELIIGMIHD CHMPFHFIIOH()
|
|
{
|
|
return this.mode;
|
|
}
|
|
|
|
// Token: 0x1700117D RID: 4477
|
|
// (get) Token: 0x06026627 RID: 157223 RVA: 0x00AA6CD8 File Offset: 0x00AA4ED8
|
|
// (set) Token: 0x060265BC RID: 157116 RVA: 0x00AA1F70 File Offset: 0x00AA0170
|
|
public float INDEPOLKOHD
|
|
{
|
|
get
|
|
{
|
|
return this.FKGJIIKIMGM;
|
|
}
|
|
set
|
|
{
|
|
this.FKGJIIKIMGM = value;
|
|
base.enabled = this.FKGJIIKIMGM > 0f || this.mode == DesaturateEffect.OMELIIGMIHD.TargetedToOverlayUI;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060265BD RID: 157117 RVA: 0x00AA1F9C File Offset: 0x00AA019C
|
|
public DesaturateEffect.OMELIIGMIHD GFFOCHPMHIG()
|
|
{
|
|
return this.mode;
|
|
}
|
|
|
|
// Token: 0x060265BE RID: 157118 RVA: 0x00AA1FA4 File Offset: 0x00AA01A4
|
|
private void MODEPHEIOHG()
|
|
{
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.rect = new Rect(707f, 979f, 1747f, 891f);
|
|
this.PKPNODOPMGE.Render();
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.rect = new Rect(1298f, 1338f, 1216f, 1544f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
else
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.worldToCameraMatrix;
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.projectionMatrix;
|
|
this.PKPNODOPMGE.rect = new Rect(62f, 592f, 480f, 1605f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
int num = this.NKDJCPIOCEB.width / 2;
|
|
int num2 = this.NKDJCPIOCEB.height / 6;
|
|
RenderTexture renderTexture = RenderTexture.GetTemporary(num, num2, 0);
|
|
this.EFDIAPOBDNP.EnableKeyword("ReJoinRoom failed. Client is not on Master Server or not yet ready to call operations. Wait for callback: OnJoinedLobby or OnConnectedToMaster.");
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 1140f);
|
|
Graphics.Blit(this.NKDJCPIOCEB, renderTexture, this.EFDIAPOBDNP, 0);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 1636f);
|
|
for (int i = 0; i < this.expandIterations; i++)
|
|
{
|
|
RenderTexture temporary = RenderTexture.GetTemporary(num, num2, 1);
|
|
Graphics.Blit(renderTexture, temporary, this.EFDIAPOBDNP, 1);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary;
|
|
}
|
|
this.EFDIAPOBDNP.DisableKeyword("Could not snap because snapTransform is null :-(");
|
|
for (int j = 1; j < this.blurIterations; j += 0)
|
|
{
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 1632f + (float)j * 809f);
|
|
RenderTexture temporary2 = RenderTexture.GetTemporary(num, num2, 1);
|
|
Graphics.Blit(renderTexture, temporary2, this.EFDIAPOBDNP, 1);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary2;
|
|
}
|
|
Graphics.Blit(renderTexture, this.NKDJCPIOCEB);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
}
|
|
|
|
// Token: 0x060265BF RID: 157119 RVA: 0x00AA2204 File Offset: 0x00AA0404
|
|
private void HHMIAPGHOFB()
|
|
{
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.rect = new Rect(529f, 909f, 636f, 574f);
|
|
this.PKPNODOPMGE.Render();
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.rect = new Rect(1512f, 544f, 1354f, 446f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
else
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.worldToCameraMatrix;
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.projectionMatrix;
|
|
this.PKPNODOPMGE.rect = new Rect(987f, 24f, 857f, 419f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
int num = this.NKDJCPIOCEB.width / 6;
|
|
int num2 = this.NKDJCPIOCEB.height / 4;
|
|
RenderTexture renderTexture = RenderTexture.GetTemporary(num, num2, 1);
|
|
this.EFDIAPOBDNP.EnableKeyword(" to ");
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 1566f);
|
|
Graphics.Blit(this.NKDJCPIOCEB, renderTexture, this.EFDIAPOBDNP, 0);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 163f);
|
|
for (int i = 1; i < this.expandIterations; i++)
|
|
{
|
|
RenderTexture temporary = RenderTexture.GetTemporary(num, num2, 1);
|
|
Graphics.Blit(renderTexture, temporary, this.EFDIAPOBDNP, 1);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary;
|
|
}
|
|
this.EFDIAPOBDNP.DisableKeyword("Chat");
|
|
for (int j = 0; j < this.blurIterations; j++)
|
|
{
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 1708f + (float)j * 937f);
|
|
RenderTexture temporary2 = RenderTexture.GetTemporary(num, num2, 0);
|
|
Graphics.Blit(renderTexture, temporary2, this.EFDIAPOBDNP, 1);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary2;
|
|
}
|
|
Graphics.Blit(renderTexture, this.NKDJCPIOCEB);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
}
|
|
|
|
// Token: 0x060265C0 RID: 157120 RVA: 0x00AA2464 File Offset: 0x00AA0664
|
|
public float BPFDOJLBHLN()
|
|
{
|
|
return this.FKGJIIKIMGM;
|
|
}
|
|
|
|
// Token: 0x060265C1 RID: 157121 RVA: 0x00AA246C File Offset: 0x00AA066C
|
|
private void OnRenderImage(RenderTexture ECFENKBBJOK, RenderTexture CECEGDBCMOD)
|
|
{
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("FULL_SCREEN_DESATURATION", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("PARTIAL_SCREEN_DESATURATION", this.mode == DesaturateEffect.OMELIIGMIHD.PartialScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("USE_DESATURATION_MASK", this.mode == DesaturateEffect.OMELIIGMIHD.TargetedToOverlayUI);
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.KIBDPCHHBOJ, new Vector4(this.desaturatedWhiteLevel - this.desaturatedBlackLevel, this.desaturatedBlackLevel, this.maxDesaturation, 0f));
|
|
if (this.mode == DesaturateEffect.OMELIIGMIHD.TargetedToOverlayUI)
|
|
{
|
|
this.EFDIAPOBDNP.SetTexture(DesaturateEffect.KEMJECLOIPD, this.NKDJCPIOCEB);
|
|
}
|
|
else
|
|
{
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.IIAKBHDKCHD, new Vector4(this.partialScreenBottomLeft.x, this.partialScreenBottomLeft.y, this.partialScreenTopRight.x, this.partialScreenTopRight.y));
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.HHEPLCCPKFP, this.partialScreenEdgeFade);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.CEHMPDEAGOC, this.FKGJIIKIMGM);
|
|
}
|
|
Graphics.Blit(ECFENKBBJOK, CECEGDBCMOD);
|
|
}
|
|
|
|
// Token: 0x060265C2 RID: 157122 RVA: 0x00AA2594 File Offset: 0x00AA0794
|
|
private void BDFEHABENLK()
|
|
{
|
|
if (this.mode == (DesaturateEffect.OMELIIGMIHD)4)
|
|
{
|
|
this.GGLJAAIMKPK();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060265C3 RID: 157123 RVA: 0x00AA25A8 File Offset: 0x00AA07A8
|
|
public void AJNHLHCGBLF(DesaturateEffect.OMELIIGMIHD NOBAPCOKFIL)
|
|
{
|
|
this.mode = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM > 1103f || this.mode == (DesaturateEffect.OMELIIGMIHD)8;
|
|
}
|
|
|
|
// Token: 0x060265C4 RID: 157124 RVA: 0x00AA25D4 File Offset: 0x00AA07D4
|
|
private void IOOGFJJOJBJ()
|
|
{
|
|
if (this.mode == (DesaturateEffect.OMELIIGMIHD)8)
|
|
{
|
|
this.OBBHCBILGFF();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060265C5 RID: 157125 RVA: 0x00AA25E8 File Offset: 0x00AA07E8
|
|
public void NMPLOIAAKOH(float NOBAPCOKFIL)
|
|
{
|
|
this.FKGJIIKIMGM = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM <= 848f && this.mode == DesaturateEffect.OMELIIGMIHD.TargetedToOverlayUI;
|
|
}
|
|
|
|
// Token: 0x060265C6 RID: 157126 RVA: 0x00AA2614 File Offset: 0x00AA0814
|
|
public void ICPIHFAHHJI(float NOBAPCOKFIL)
|
|
{
|
|
this.FKGJIIKIMGM = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM > 1988f || this.mode == (DesaturateEffect.OMELIIGMIHD)7;
|
|
}
|
|
|
|
// Token: 0x060265C7 RID: 157127 RVA: 0x00AA2640 File Offset: 0x00AA0840
|
|
private void NPLABDLLDAC()
|
|
{
|
|
if (this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen)
|
|
{
|
|
this.OBBHCBILGFF();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060265C8 RID: 157128 RVA: 0x00AA2654 File Offset: 0x00AA0854
|
|
public DesaturateEffect.OMELIIGMIHD GFKKCHHALMO()
|
|
{
|
|
return this.mode;
|
|
}
|
|
|
|
// Token: 0x060265C9 RID: 157129 RVA: 0x00AA265C File Offset: 0x00AA085C
|
|
private void MHFJDFMKKLH(RenderTexture ECFENKBBJOK, RenderTexture CECEGDBCMOD)
|
|
{
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("x", this.mode == DesaturateEffect.OMELIIGMIHD.PartialScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("4441", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("y", this.mode == (DesaturateEffect.OMELIIGMIHD)8);
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.KIBDPCHHBOJ, new Vector4(this.desaturatedWhiteLevel - this.desaturatedBlackLevel, this.desaturatedBlackLevel, this.maxDesaturation, 561f));
|
|
if (this.mode == (DesaturateEffect.OMELIIGMIHD)8)
|
|
{
|
|
this.EFDIAPOBDNP.SetTexture(DesaturateEffect.KEMJECLOIPD, this.NKDJCPIOCEB);
|
|
}
|
|
else
|
|
{
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.IIAKBHDKCHD, new Vector4(this.partialScreenBottomLeft.x, this.partialScreenBottomLeft.y, this.partialScreenTopRight.x, this.partialScreenTopRight.y));
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.HHEPLCCPKFP, this.partialScreenEdgeFade);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.CEHMPDEAGOC, this.FKGJIIKIMGM);
|
|
}
|
|
Graphics.Blit(ECFENKBBJOK, CECEGDBCMOD);
|
|
}
|
|
|
|
// Token: 0x060265CA RID: 157130 RVA: 0x00AA2784 File Offset: 0x00AA0984
|
|
private void ICFPBKNFAEE()
|
|
{
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.rect = new Rect(1229f, 1368f, 448f, 30f);
|
|
this.PKPNODOPMGE.Render();
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.rect = new Rect(1670f, 1944f, 463f, 317f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
else
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.worldToCameraMatrix;
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.projectionMatrix;
|
|
this.PKPNODOPMGE.rect = new Rect(1458f, 1140f, 270f, 1113f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
int num = this.NKDJCPIOCEB.width / 3;
|
|
int num2 = this.NKDJCPIOCEB.height / 0;
|
|
RenderTexture renderTexture = RenderTexture.GetTemporary(num, num2, 0);
|
|
this.EFDIAPOBDNP.EnableKeyword("Campaign Name");
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 967f);
|
|
Graphics.Blit(this.NKDJCPIOCEB, renderTexture, this.EFDIAPOBDNP, 0);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 190f);
|
|
for (int i = 0; i < this.expandIterations; i += 0)
|
|
{
|
|
RenderTexture temporary = RenderTexture.GetTemporary(num, num2, 1);
|
|
Graphics.Blit(renderTexture, temporary, this.EFDIAPOBDNP, 0);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary;
|
|
}
|
|
this.EFDIAPOBDNP.DisableKeyword("auth-int");
|
|
for (int j = 1; j < this.blurIterations; j++)
|
|
{
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 87f + (float)j * 368f);
|
|
RenderTexture temporary2 = RenderTexture.GetTemporary(num, num2, 1);
|
|
Graphics.Blit(renderTexture, temporary2, this.EFDIAPOBDNP, 0);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary2;
|
|
}
|
|
Graphics.Blit(renderTexture, this.NKDJCPIOCEB);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
}
|
|
|
|
// Token: 0x060265CB RID: 157131 RVA: 0x00AA29E4 File Offset: 0x00AA0BE4
|
|
private void NMFIPLECLCD()
|
|
{
|
|
if (this.mode == (DesaturateEffect.OMELIIGMIHD)7)
|
|
{
|
|
this.KHAFAAPIEBC();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060265CC RID: 157132 RVA: 0x00AA29F8 File Offset: 0x00AA0BF8
|
|
public DesaturateEffect.OMELIIGMIHD HBIGMPOIMIJ()
|
|
{
|
|
return this.mode;
|
|
}
|
|
|
|
// Token: 0x060265CD RID: 157133 RVA: 0x00AA2A00 File Offset: 0x00AA0C00
|
|
private void OBBHCBILGFF()
|
|
{
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.rect = new Rect(1324f, 319f, 980f, 730f);
|
|
this.PKPNODOPMGE.Render();
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.rect = new Rect(480f, 1801f, 1713f, 1235f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
else
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.worldToCameraMatrix;
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.projectionMatrix;
|
|
this.PKPNODOPMGE.rect = new Rect(1519f, 1718f, 118f, 742f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
int num = this.NKDJCPIOCEB.width / 1;
|
|
int num2 = this.NKDJCPIOCEB.height / 2;
|
|
RenderTexture renderTexture = RenderTexture.GetTemporary(num, num2, 0);
|
|
this.EFDIAPOBDNP.EnableKeyword("Time's up!");
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 333f);
|
|
Graphics.Blit(this.NKDJCPIOCEB, renderTexture, this.EFDIAPOBDNP, 0);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 555f);
|
|
for (int i = 1; i < this.expandIterations; i++)
|
|
{
|
|
RenderTexture temporary = RenderTexture.GetTemporary(num, num2, 0);
|
|
Graphics.Blit(renderTexture, temporary, this.EFDIAPOBDNP, 0);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary;
|
|
}
|
|
this.EFDIAPOBDNP.DisableKeyword("RpcMasterRequestNewExtrusion");
|
|
for (int j = 0; j < this.blurIterations; j++)
|
|
{
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 1020f + (float)j * 1388f);
|
|
RenderTexture temporary2 = RenderTexture.GetTemporary(num, num2, 1);
|
|
Graphics.Blit(renderTexture, temporary2, this.EFDIAPOBDNP, 1);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary2;
|
|
}
|
|
Graphics.Blit(renderTexture, this.NKDJCPIOCEB);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
}
|
|
|
|
// Token: 0x060265CE RID: 157134 RVA: 0x00AA2C60 File Offset: 0x00AA0E60
|
|
private void KAEPFOILFCG()
|
|
{
|
|
DesaturateEffect.BEPNBMLNEFD = Shader.PropertyToID("EST");
|
|
DesaturateEffect.IIAKBHDKCHD = Shader.PropertyToID("You revived ");
|
|
DesaturateEffect.HHEPLCCPKFP = Shader.PropertyToID("InvincibleInGames");
|
|
DesaturateEffect.CEHMPDEAGOC = Shader.PropertyToID("api/images/");
|
|
DesaturateEffect.KIBDPCHHBOJ = Shader.PropertyToID("ObscuredInt:");
|
|
DesaturateEffect.KEMJECLOIPD = Shader.PropertyToID("ReplyMatch is false! ");
|
|
this.JLAMMIJECBK = base.GetComponent<Camera>();
|
|
int num = this.maskTextureSize;
|
|
int num2 = this.maskTextureSize;
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
num *= 4;
|
|
}
|
|
this.NKDJCPIOCEB = new RenderTexture(num, num2, 1);
|
|
string text = "WebSocketResponse";
|
|
Type[] array = new Type[0];
|
|
array[1] = typeof(Camera);
|
|
GameObject gameObject = new GameObject(text, array);
|
|
this.PKPNODOPMGE = gameObject.GetComponent<Camera>();
|
|
this.PKPNODOPMGE.transform.parent = base.transform;
|
|
this.PKPNODOPMGE.cullingMask = 116;
|
|
this.PKPNODOPMGE.clearFlags = (CameraClearFlags)5;
|
|
this.PKPNODOPMGE.backgroundColor = Color.clear;
|
|
this.PKPNODOPMGE.targetTexture = this.NKDJCPIOCEB;
|
|
this.PKPNODOPMGE.enabled = false;
|
|
this.EFDIAPOBDNP = new Material(this.desaturateEffectShader);
|
|
}
|
|
|
|
// Token: 0x060265CF RID: 157135 RVA: 0x00AA2DA0 File Offset: 0x00AA0FA0
|
|
public DesaturateEffect.OMELIIGMIHD GJAFKGAKFGC()
|
|
{
|
|
return this.mode;
|
|
}
|
|
|
|
// Token: 0x060265D0 RID: 157136 RVA: 0x00AA2DA8 File Offset: 0x00AA0FA8
|
|
private void DEGFJHAHJLG(RenderTexture ECFENKBBJOK, RenderTexture CECEGDBCMOD)
|
|
{
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("rect", this.mode == DesaturateEffect.OMELIIGMIHD.PartialScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI(":", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("multipart/form-data; boundary=\"", this.mode == (DesaturateEffect.OMELIIGMIHD)3);
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.KIBDPCHHBOJ, new Vector4(this.desaturatedWhiteLevel - this.desaturatedBlackLevel, this.desaturatedBlackLevel, this.maxDesaturation, 430f));
|
|
if (this.mode == (DesaturateEffect.OMELIIGMIHD)6)
|
|
{
|
|
this.EFDIAPOBDNP.SetTexture(DesaturateEffect.KEMJECLOIPD, this.NKDJCPIOCEB);
|
|
}
|
|
else
|
|
{
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.IIAKBHDKCHD, new Vector4(this.partialScreenBottomLeft.x, this.partialScreenBottomLeft.y, this.partialScreenTopRight.x, this.partialScreenTopRight.y));
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.HHEPLCCPKFP, this.partialScreenEdgeFade);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.CEHMPDEAGOC, this.FKGJIIKIMGM);
|
|
}
|
|
Graphics.Blit(ECFENKBBJOK, CECEGDBCMOD);
|
|
}
|
|
|
|
// Token: 0x060265D1 RID: 157137 RVA: 0x00AA2ED0 File Offset: 0x00AA10D0
|
|
public float ECIBCLOEPAF()
|
|
{
|
|
return this.FKGJIIKIMGM;
|
|
}
|
|
|
|
// Token: 0x060265D2 RID: 157138 RVA: 0x00AA2ED8 File Offset: 0x00AA10D8
|
|
private void AICNFCJCEMN(RenderTexture ECFENKBBJOK, RenderTexture CECEGDBCMOD)
|
|
{
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("' ping: ", this.mode == DesaturateEffect.OMELIIGMIHD.PartialScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("[PV] ", this.mode == DesaturateEffect.OMELIIGMIHD.PartialScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("RemoveFriends can't be called for empty or null list.", this.mode == (DesaturateEffect.OMELIIGMIHD)7);
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.KIBDPCHHBOJ, new Vector4(this.desaturatedWhiteLevel - this.desaturatedBlackLevel, this.desaturatedBlackLevel, this.maxDesaturation, 1440f));
|
|
if (this.mode == (DesaturateEffect.OMELIIGMIHD)4)
|
|
{
|
|
this.EFDIAPOBDNP.SetTexture(DesaturateEffect.KEMJECLOIPD, this.NKDJCPIOCEB);
|
|
}
|
|
else
|
|
{
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.IIAKBHDKCHD, new Vector4(this.partialScreenBottomLeft.x, this.partialScreenBottomLeft.y, this.partialScreenTopRight.x, this.partialScreenTopRight.y));
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.HHEPLCCPKFP, this.partialScreenEdgeFade);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.CEHMPDEAGOC, this.FKGJIIKIMGM);
|
|
}
|
|
Graphics.Blit(ECFENKBBJOK, CECEGDBCMOD);
|
|
}
|
|
|
|
// Token: 0x060265D3 RID: 157139 RVA: 0x00AA3000 File Offset: 0x00AA1200
|
|
public void LAKNCNFCBKN(float NOBAPCOKFIL)
|
|
{
|
|
this.FKGJIIKIMGM = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM <= 53f && this.mode == (DesaturateEffect.OMELIIGMIHD)6;
|
|
}
|
|
|
|
// Token: 0x060265D4 RID: 157140 RVA: 0x00AA302C File Offset: 0x00AA122C
|
|
public DesaturateEffect.OMELIIGMIHD CFNHGENCKBM()
|
|
{
|
|
return this.mode;
|
|
}
|
|
|
|
// Token: 0x060265D6 RID: 157142 RVA: 0x00AA303C File Offset: 0x00AA123C
|
|
public void EAONKFIBEMG(DesaturateEffect.OMELIIGMIHD NOBAPCOKFIL)
|
|
{
|
|
this.mode = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM > 899f || this.mode == (DesaturateEffect.OMELIIGMIHD)3;
|
|
}
|
|
|
|
// Token: 0x060265D7 RID: 157143 RVA: 0x00AA3068 File Offset: 0x00AA1268
|
|
private void OFJIDJKKNFH()
|
|
{
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.rect = new Rect(368f, 448f, 1017f, 947f);
|
|
this.PKPNODOPMGE.Render();
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.rect = new Rect(188f, 1828f, 928f, 283f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
else
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.worldToCameraMatrix;
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.projectionMatrix;
|
|
this.PKPNODOPMGE.rect = new Rect(1385f, 1206f, 1200f, 8f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
int num = this.NKDJCPIOCEB.width / 7;
|
|
int num2 = this.NKDJCPIOCEB.height / 8;
|
|
RenderTexture renderTexture = RenderTexture.GetTemporary(num, num2, 0);
|
|
this.EFDIAPOBDNP.EnableKeyword("Gifts");
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 225f);
|
|
Graphics.Blit(this.NKDJCPIOCEB, renderTexture, this.EFDIAPOBDNP, 1);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 383f);
|
|
for (int i = 1; i < this.expandIterations; i += 0)
|
|
{
|
|
RenderTexture temporary = RenderTexture.GetTemporary(num, num2, 1);
|
|
Graphics.Blit(renderTexture, temporary, this.EFDIAPOBDNP, 1);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary;
|
|
}
|
|
this.EFDIAPOBDNP.DisableKeyword("Vertex colors generated");
|
|
for (int j = 1; j < this.blurIterations; j += 0)
|
|
{
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 1407f + (float)j * 594f);
|
|
RenderTexture temporary2 = RenderTexture.GetTemporary(num, num2, 1);
|
|
Graphics.Blit(renderTexture, temporary2, this.EFDIAPOBDNP, 0);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary2;
|
|
}
|
|
Graphics.Blit(renderTexture, this.NKDJCPIOCEB);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
}
|
|
|
|
// Token: 0x060265D8 RID: 157144 RVA: 0x00AA32C8 File Offset: 0x00AA14C8
|
|
private void NFMHNLHGHJJ()
|
|
{
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.rect = new Rect(478f, 1451f, 1432f, 1183f);
|
|
this.PKPNODOPMGE.Render();
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.rect = new Rect(511f, 1313f, 208f, 1774f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
else
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.worldToCameraMatrix;
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.projectionMatrix;
|
|
this.PKPNODOPMGE.rect = new Rect(144f, 822f, 932f, 394f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
int num = this.NKDJCPIOCEB.width / 4;
|
|
int num2 = this.NKDJCPIOCEB.height / 1;
|
|
RenderTexture renderTexture = RenderTexture.GetTemporary(num, num2, 0);
|
|
this.EFDIAPOBDNP.EnableKeyword("GiftContext");
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 933f);
|
|
Graphics.Blit(this.NKDJCPIOCEB, renderTexture, this.EFDIAPOBDNP, 0);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 685f);
|
|
for (int i = 0; i < this.expandIterations; i += 0)
|
|
{
|
|
RenderTexture temporary = RenderTexture.GetTemporary(num, num2, 0);
|
|
Graphics.Blit(renderTexture, temporary, this.EFDIAPOBDNP, 0);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary;
|
|
}
|
|
this.EFDIAPOBDNP.DisableKeyword("_Color");
|
|
for (int j = 0; j < this.blurIterations; j += 0)
|
|
{
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 1007f + (float)j * 1845f);
|
|
RenderTexture temporary2 = RenderTexture.GetTemporary(num, num2, 1);
|
|
Graphics.Blit(renderTexture, temporary2, this.EFDIAPOBDNP, 0);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary2;
|
|
}
|
|
Graphics.Blit(renderTexture, this.NKDJCPIOCEB);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
}
|
|
|
|
// Token: 0x060265D9 RID: 157145 RVA: 0x00AA3528 File Offset: 0x00AA1728
|
|
public DesaturateEffect.OMELIIGMIHD LPAFKGEODJM()
|
|
{
|
|
return this.mode;
|
|
}
|
|
|
|
// Token: 0x060265DA RID: 157146 RVA: 0x00AA3530 File Offset: 0x00AA1730
|
|
public void FOGIFKAJKFM(DesaturateEffect.OMELIIGMIHD NOBAPCOKFIL)
|
|
{
|
|
this.mode = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM <= 1825f && this.mode == (DesaturateEffect.OMELIIGMIHD)4;
|
|
}
|
|
|
|
// Token: 0x060265DB RID: 157147 RVA: 0x00AA355C File Offset: 0x00AA175C
|
|
private void IFPLGLLGDIJ()
|
|
{
|
|
if (this.mode == DesaturateEffect.OMELIIGMIHD.PartialScreen)
|
|
{
|
|
this.ICFPBKNFAEE();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060265DC RID: 157148 RVA: 0x00AA3570 File Offset: 0x00AA1770
|
|
public float CJJPEFOEBLD()
|
|
{
|
|
return this.FKGJIIKIMGM;
|
|
}
|
|
|
|
// Token: 0x060265DD RID: 157149 RVA: 0x00AA3578 File Offset: 0x00AA1778
|
|
public DesaturateEffect.OMELIIGMIHD LLBBDNPEMKC()
|
|
{
|
|
return this.mode;
|
|
}
|
|
|
|
// Token: 0x060265DE RID: 157150 RVA: 0x00AA3580 File Offset: 0x00AA1780
|
|
public float FOLOEMICKHM()
|
|
{
|
|
return this.FKGJIIKIMGM;
|
|
}
|
|
|
|
// Token: 0x060265DF RID: 157151 RVA: 0x00AA3588 File Offset: 0x00AA1788
|
|
public void LNDPMDBEGJC(float NOBAPCOKFIL)
|
|
{
|
|
this.FKGJIIKIMGM = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM <= 233f && this.mode == (DesaturateEffect.OMELIIGMIHD)5;
|
|
}
|
|
|
|
// Token: 0x060265E0 RID: 157152 RVA: 0x00AA35B4 File Offset: 0x00AA17B4
|
|
public float BHDHINMBKAJ()
|
|
{
|
|
return this.FKGJIIKIMGM;
|
|
}
|
|
|
|
// Token: 0x060265E1 RID: 157153 RVA: 0x00AA35BC File Offset: 0x00AA17BC
|
|
private void HPAACLDJPBM()
|
|
{
|
|
if (this.mode == (DesaturateEffect.OMELIIGMIHD)7)
|
|
{
|
|
this.DLEGFDBLAGB();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060265E2 RID: 157154 RVA: 0x00AA35D0 File Offset: 0x00AA17D0
|
|
private void LMAJMHGEPDB()
|
|
{
|
|
DesaturateEffect.BEPNBMLNEFD = Shader.PropertyToID("Failed to update objective");
|
|
DesaturateEffect.IIAKBHDKCHD = Shader.PropertyToID("PreferFullRoomsFrequency");
|
|
DesaturateEffect.HHEPLCCPKFP = Shader.PropertyToID("x2");
|
|
DesaturateEffect.CEHMPDEAGOC = Shader.PropertyToID("[Steamworks.NET] Could not load [lib]steam_api.dll/so/dylib. It's likely not in the correct location. Refer to the README for more details.\n");
|
|
DesaturateEffect.KIBDPCHHBOJ = Shader.PropertyToID("Your cheer is sent.");
|
|
DesaturateEffect.KEMJECLOIPD = Shader.PropertyToID("Date");
|
|
this.JLAMMIJECBK = base.GetComponent<Camera>();
|
|
int num = this.maskTextureSize;
|
|
int num2 = this.maskTextureSize;
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
num *= 7;
|
|
}
|
|
this.NKDJCPIOCEB = new RenderTexture(num, num2, 1);
|
|
GameObject gameObject = new GameObject("GameSessionId", new Type[] { typeof(Camera) });
|
|
this.PKPNODOPMGE = gameObject.GetComponent<Camera>();
|
|
this.PKPNODOPMGE.transform.parent = base.transform;
|
|
this.PKPNODOPMGE.cullingMask = 166;
|
|
this.PKPNODOPMGE.clearFlags = CameraClearFlags.Skybox;
|
|
this.PKPNODOPMGE.backgroundColor = Color.clear;
|
|
this.PKPNODOPMGE.targetTexture = this.NKDJCPIOCEB;
|
|
this.PKPNODOPMGE.enabled = false;
|
|
this.EFDIAPOBDNP = new Material(this.desaturateEffectShader);
|
|
}
|
|
|
|
// Token: 0x060265E3 RID: 157155 RVA: 0x00AA3710 File Offset: 0x00AA1910
|
|
public float HKEPOLMBMHM()
|
|
{
|
|
return this.FKGJIIKIMGM;
|
|
}
|
|
|
|
// Token: 0x060265E4 RID: 157156 RVA: 0x00AA3718 File Offset: 0x00AA1918
|
|
private void LKONBDPFMJE()
|
|
{
|
|
DesaturateEffect.BEPNBMLNEFD = Shader.PropertyToID("os_version");
|
|
DesaturateEffect.IIAKBHDKCHD = Shader.PropertyToID("AvatarItemDesc");
|
|
DesaturateEffect.HHEPLCCPKFP = Shader.PropertyToID("rotation");
|
|
DesaturateEffect.CEHMPDEAGOC = Shader.PropertyToID("You did not select a Hosting Type in your PhotonServerSettings. Please set it up or don't use ConnectUsingSettings().");
|
|
DesaturateEffect.KIBDPCHHBOJ = Shader.PropertyToID("#{0:00} '{1}'{2} {3}");
|
|
DesaturateEffect.KEMJECLOIPD = Shader.PropertyToID("WallHack Detector");
|
|
this.JLAMMIJECBK = base.GetComponent<Camera>();
|
|
int num = this.maskTextureSize;
|
|
int num2 = this.maskTextureSize;
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
num *= 4;
|
|
}
|
|
this.NKDJCPIOCEB = new RenderTexture(num, num2, 1);
|
|
GameObject gameObject = new GameObject("Sending...", new Type[] { typeof(Camera) });
|
|
this.PKPNODOPMGE = gameObject.GetComponent<Camera>();
|
|
this.PKPNODOPMGE.transform.parent = base.transform;
|
|
this.PKPNODOPMGE.cullingMask = -159;
|
|
this.PKPNODOPMGE.clearFlags = (CameraClearFlags)7;
|
|
this.PKPNODOPMGE.backgroundColor = Color.clear;
|
|
this.PKPNODOPMGE.targetTexture = this.NKDJCPIOCEB;
|
|
this.PKPNODOPMGE.enabled = false;
|
|
this.EFDIAPOBDNP = new Material(this.desaturateEffectShader);
|
|
}
|
|
|
|
// Token: 0x060265E5 RID: 157157 RVA: 0x00AA3858 File Offset: 0x00AA1A58
|
|
public DesaturateEffect.OMELIIGMIHD NFPJLKDLLMD()
|
|
{
|
|
return this.mode;
|
|
}
|
|
|
|
// Token: 0x060265E6 RID: 157158 RVA: 0x00AA3860 File Offset: 0x00AA1A60
|
|
private void OnPreRender()
|
|
{
|
|
if (this.mode == DesaturateEffect.OMELIIGMIHD.TargetedToOverlayUI)
|
|
{
|
|
this.JMMDNPADFAF();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060265E7 RID: 157159 RVA: 0x00AA3874 File Offset: 0x00AA1A74
|
|
private void BOPLFCBMKEL()
|
|
{
|
|
DesaturateEffect.BEPNBMLNEFD = Shader.PropertyToID("max_ping");
|
|
DesaturateEffect.IIAKBHDKCHD = Shader.PropertyToID("Received event Leave for unknown player ID: {0}");
|
|
DesaturateEffect.HHEPLCCPKFP = Shader.PropertyToID("error.log");
|
|
DesaturateEffect.CEHMPDEAGOC = Shader.PropertyToID("CheerMessageController missing visual for cheer reason : ");
|
|
DesaturateEffect.KIBDPCHHBOJ = Shader.PropertyToID("amplitude_sequence_number");
|
|
DesaturateEffect.KEMJECLOIPD = Shader.PropertyToID("http://j.mp/1gxg1tf");
|
|
this.JLAMMIJECBK = base.GetComponent<Camera>();
|
|
int num = this.maskTextureSize;
|
|
int num2 = this.maskTextureSize;
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
num *= 7;
|
|
}
|
|
this.NKDJCPIOCEB = new RenderTexture(num, num2, 0);
|
|
string text = "rotation";
|
|
Type[] array = new Type[0];
|
|
array[1] = typeof(Camera);
|
|
GameObject gameObject = new GameObject(text, array);
|
|
this.PKPNODOPMGE = gameObject.GetComponent<Camera>();
|
|
this.PKPNODOPMGE.transform.parent = base.transform;
|
|
this.PKPNODOPMGE.cullingMask = -182;
|
|
this.PKPNODOPMGE.clearFlags = (CameraClearFlags)0;
|
|
this.PKPNODOPMGE.backgroundColor = Color.clear;
|
|
this.PKPNODOPMGE.targetTexture = this.NKDJCPIOCEB;
|
|
this.PKPNODOPMGE.enabled = true;
|
|
this.EFDIAPOBDNP = new Material(this.desaturateEffectShader);
|
|
}
|
|
|
|
// Token: 0x060265E8 RID: 157160 RVA: 0x00AA39B4 File Offset: 0x00AA1BB4
|
|
private void GEGGICKMEAG(RenderTexture ECFENKBBJOK, RenderTexture CECEGDBCMOD)
|
|
{
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("MM/dd/yyyy", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("Map: ", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("OpusDcoder", this.mode == DesaturateEffect.OMELIIGMIHD.TargetedToOverlayUI);
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.KIBDPCHHBOJ, new Vector4(this.desaturatedWhiteLevel - this.desaturatedBlackLevel, this.desaturatedBlackLevel, this.maxDesaturation, 1483f));
|
|
if (this.mode == (DesaturateEffect.OMELIIGMIHD)7)
|
|
{
|
|
this.EFDIAPOBDNP.SetTexture(DesaturateEffect.KEMJECLOIPD, this.NKDJCPIOCEB);
|
|
}
|
|
else
|
|
{
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.IIAKBHDKCHD, new Vector4(this.partialScreenBottomLeft.x, this.partialScreenBottomLeft.y, this.partialScreenTopRight.x, this.partialScreenTopRight.y));
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.HHEPLCCPKFP, this.partialScreenEdgeFade);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.CEHMPDEAGOC, this.FKGJIIKIMGM);
|
|
}
|
|
Graphics.Blit(ECFENKBBJOK, CECEGDBCMOD);
|
|
}
|
|
|
|
// Token: 0x060265E9 RID: 157161 RVA: 0x00AA3ADC File Offset: 0x00AA1CDC
|
|
public DesaturateEffect.OMELIIGMIHD KDEEGINHHHE()
|
|
{
|
|
return this.mode;
|
|
}
|
|
|
|
// Token: 0x060265EA RID: 157162 RVA: 0x00AA3AE4 File Offset: 0x00AA1CE4
|
|
private void PNFPJEDAFHA()
|
|
{
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.rect = new Rect(522f, 522f, 1361f, 654f);
|
|
this.PKPNODOPMGE.Render();
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.rect = new Rect(726f, 220f, 1759f, 1087f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
else
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.worldToCameraMatrix;
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.projectionMatrix;
|
|
this.PKPNODOPMGE.rect = new Rect(1706f, 237f, 1112f, 289f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
int num = this.NKDJCPIOCEB.width / 7;
|
|
int num2 = this.NKDJCPIOCEB.height / 2;
|
|
RenderTexture renderTexture = RenderTexture.GetTemporary(num, num2, 1);
|
|
this.EFDIAPOBDNP.EnableKeyword("rw_dropped_frames_5to8p_perc");
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 687f);
|
|
Graphics.Blit(this.NKDJCPIOCEB, renderTexture, this.EFDIAPOBDNP, 0);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 1504f);
|
|
for (int i = 0; i < this.expandIterations; i++)
|
|
{
|
|
RenderTexture temporary = RenderTexture.GetTemporary(num, num2, 1);
|
|
Graphics.Blit(renderTexture, temporary, this.EFDIAPOBDNP, 1);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary;
|
|
}
|
|
this.EFDIAPOBDNP.DisableKeyword("pr");
|
|
for (int j = 1; j < this.blurIterations; j += 0)
|
|
{
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 409f + (float)j * 1986f);
|
|
RenderTexture temporary2 = RenderTexture.GetTemporary(num, num2, 0);
|
|
Graphics.Blit(renderTexture, temporary2, this.EFDIAPOBDNP, 1);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary2;
|
|
}
|
|
Graphics.Blit(renderTexture, this.NKDJCPIOCEB);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
}
|
|
|
|
// Token: 0x060265EB RID: 157163 RVA: 0x00AA3D44 File Offset: 0x00AA1F44
|
|
public DesaturateEffect.OMELIIGMIHD MKEHLKEJLKL()
|
|
{
|
|
return this.mode;
|
|
}
|
|
|
|
// Token: 0x060265EC RID: 157164 RVA: 0x00AA3D4C File Offset: 0x00AA1F4C
|
|
public DesaturateEffect.OMELIIGMIHD OLEONMAFEIF()
|
|
{
|
|
return this.mode;
|
|
}
|
|
|
|
// Token: 0x060265ED RID: 157165 RVA: 0x00AA3D54 File Offset: 0x00AA1F54
|
|
private void JOKHHCOPCPP()
|
|
{
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.rect = new Rect(1712f, 1192f, 468f, 690f);
|
|
this.PKPNODOPMGE.Render();
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.rect = new Rect(197f, 383f, 625f, 1617f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
else
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.worldToCameraMatrix;
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.projectionMatrix;
|
|
this.PKPNODOPMGE.rect = new Rect(1513f, 417f, 1873f, 1f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
int num = this.NKDJCPIOCEB.width / 4;
|
|
int num2 = this.NKDJCPIOCEB.height / 1;
|
|
RenderTexture renderTexture = RenderTexture.GetTemporary(num, num2, 0);
|
|
this.EFDIAPOBDNP.EnableKeyword("RpcOnTrapKilledPlayer");
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 1901f);
|
|
Graphics.Blit(this.NKDJCPIOCEB, renderTexture, this.EFDIAPOBDNP, 0);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 652f);
|
|
for (int i = 0; i < this.expandIterations; i += 0)
|
|
{
|
|
RenderTexture temporary = RenderTexture.GetTemporary(num, num2, 0);
|
|
Graphics.Blit(renderTexture, temporary, this.EFDIAPOBDNP, 1);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary;
|
|
}
|
|
this.EFDIAPOBDNP.DisableKeyword("{0}v1/sendlink");
|
|
for (int j = 0; j < this.blurIterations; j++)
|
|
{
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 696f + (float)j * 124f);
|
|
RenderTexture temporary2 = RenderTexture.GetTemporary(num, num2, 1);
|
|
Graphics.Blit(renderTexture, temporary2, this.EFDIAPOBDNP, 1);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary2;
|
|
}
|
|
Graphics.Blit(renderTexture, this.NKDJCPIOCEB);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
}
|
|
|
|
// Token: 0x060265EE RID: 157166 RVA: 0x00AA3FB4 File Offset: 0x00AA21B4
|
|
public float HIAPIKBPOLB()
|
|
{
|
|
return this.FKGJIIKIMGM;
|
|
}
|
|
|
|
// Token: 0x060265EF RID: 157167 RVA: 0x00AA3FBC File Offset: 0x00AA21BC
|
|
public void MJBHCGGJBNJ(DesaturateEffect.OMELIIGMIHD NOBAPCOKFIL)
|
|
{
|
|
this.mode = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM > 45f || this.mode == (DesaturateEffect.OMELIIGMIHD)6;
|
|
}
|
|
|
|
// Token: 0x060265F0 RID: 157168 RVA: 0x00AA3FE8 File Offset: 0x00AA21E8
|
|
public float BNPMLLKBNMN()
|
|
{
|
|
return this.FKGJIIKIMGM;
|
|
}
|
|
|
|
// Token: 0x060265F1 RID: 157169 RVA: 0x00AA3FF0 File Offset: 0x00AA21F0
|
|
private void OMNLBOLNHAJ(RenderTexture ECFENKBBJOK, RenderTexture CECEGDBCMOD)
|
|
{
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("Error updating room: ", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("Catch!", this.mode == DesaturateEffect.OMELIIGMIHD.PartialScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("Failed to ", this.mode == (DesaturateEffect.OMELIIGMIHD)4);
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.KIBDPCHHBOJ, new Vector4(this.desaturatedWhiteLevel - this.desaturatedBlackLevel, this.desaturatedBlackLevel, this.maxDesaturation, 1651f));
|
|
if (this.mode == (DesaturateEffect.OMELIIGMIHD)6)
|
|
{
|
|
this.EFDIAPOBDNP.SetTexture(DesaturateEffect.KEMJECLOIPD, this.NKDJCPIOCEB);
|
|
}
|
|
else
|
|
{
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.IIAKBHDKCHD, new Vector4(this.partialScreenBottomLeft.x, this.partialScreenBottomLeft.y, this.partialScreenTopRight.x, this.partialScreenTopRight.y));
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.HHEPLCCPKFP, this.partialScreenEdgeFade);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.CEHMPDEAGOC, this.FKGJIIKIMGM);
|
|
}
|
|
Graphics.Blit(ECFENKBBJOK, CECEGDBCMOD);
|
|
}
|
|
|
|
// Token: 0x060265F2 RID: 157170 RVA: 0x00AA4118 File Offset: 0x00AA2318
|
|
private void OLAAFONLKJM()
|
|
{
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.rect = new Rect(1742f, 1128f, 133f, 1764f);
|
|
this.PKPNODOPMGE.Render();
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.rect = new Rect(98f, 1716f, 415f, 1780f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
else
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.worldToCameraMatrix;
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.projectionMatrix;
|
|
this.PKPNODOPMGE.rect = new Rect(378f, 1265f, 927f, 1311f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
int num = this.NKDJCPIOCEB.width / 7;
|
|
int num2 = this.NKDJCPIOCEB.height / 5;
|
|
RenderTexture renderTexture = RenderTexture.GetTemporary(num, num2, 0);
|
|
this.EFDIAPOBDNP.EnableKeyword("PlatformId");
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 599f);
|
|
Graphics.Blit(this.NKDJCPIOCEB, renderTexture, this.EFDIAPOBDNP, 0);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 502f);
|
|
for (int i = 1; i < this.expandIterations; i += 0)
|
|
{
|
|
RenderTexture temporary = RenderTexture.GetTemporary(num, num2, 1);
|
|
Graphics.Blit(renderTexture, temporary, this.EFDIAPOBDNP, 1);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary;
|
|
}
|
|
this.EFDIAPOBDNP.DisableKeyword(")");
|
|
for (int j = 0; j < this.blurIterations; j += 0)
|
|
{
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 815f + (float)j * 1093f);
|
|
RenderTexture temporary2 = RenderTexture.GetTemporary(num, num2, 1);
|
|
Graphics.Blit(renderTexture, temporary2, this.EFDIAPOBDNP, 0);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary2;
|
|
}
|
|
Graphics.Blit(renderTexture, this.NKDJCPIOCEB);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
}
|
|
|
|
// Token: 0x060265F3 RID: 157171 RVA: 0x00AA4378 File Offset: 0x00AA2578
|
|
public void BKEBEEKJAEN(float NOBAPCOKFIL)
|
|
{
|
|
this.FKGJIIKIMGM = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM <= 1504f && this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen;
|
|
}
|
|
|
|
// Token: 0x060265F4 RID: 157172 RVA: 0x00AA43A4 File Offset: 0x00AA25A4
|
|
private void Awake()
|
|
{
|
|
DesaturateEffect.BEPNBMLNEFD = Shader.PropertyToID("_SampleOffset");
|
|
DesaturateEffect.IIAKBHDKCHD = Shader.PropertyToID("_RegionParams");
|
|
DesaturateEffect.HHEPLCCPKFP = Shader.PropertyToID("_ScreenEdgeFade");
|
|
DesaturateEffect.CEHMPDEAGOC = Shader.PropertyToID("_DesaturationAmount");
|
|
DesaturateEffect.KIBDPCHHBOJ = Shader.PropertyToID("_ColorMappingParams");
|
|
DesaturateEffect.KEMJECLOIPD = Shader.PropertyToID("_DesaturationMask");
|
|
this.JLAMMIJECBK = base.GetComponent<Camera>();
|
|
int num = this.maskTextureSize;
|
|
int num2 = this.maskTextureSize;
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
num *= 2;
|
|
}
|
|
this.NKDJCPIOCEB = new RenderTexture(num, num2, 0);
|
|
GameObject gameObject = new GameObject("DesatMaskGenerator", new Type[] { typeof(Camera) });
|
|
this.PKPNODOPMGE = gameObject.GetComponent<Camera>();
|
|
this.PKPNODOPMGE.transform.parent = base.transform;
|
|
this.PKPNODOPMGE.cullingMask = 4194304;
|
|
this.PKPNODOPMGE.clearFlags = CameraClearFlags.Color;
|
|
this.PKPNODOPMGE.backgroundColor = Color.clear;
|
|
this.PKPNODOPMGE.targetTexture = this.NKDJCPIOCEB;
|
|
this.PKPNODOPMGE.enabled = false;
|
|
this.EFDIAPOBDNP = new Material(this.desaturateEffectShader);
|
|
}
|
|
|
|
// Token: 0x060265F5 RID: 157173 RVA: 0x00AA44E4 File Offset: 0x00AA26E4
|
|
public DesaturateEffect.OMELIIGMIHD FOFOGKDBGOF()
|
|
{
|
|
return this.mode;
|
|
}
|
|
|
|
// Token: 0x060265F6 RID: 157174 RVA: 0x00AA44EC File Offset: 0x00AA26EC
|
|
private void MFJDFDMILCL()
|
|
{
|
|
DesaturateEffect.BEPNBMLNEFD = Shader.PropertyToID("Sec-WebSocket-Extensions");
|
|
DesaturateEffect.IIAKBHDKCHD = Shader.PropertyToID(": ");
|
|
DesaturateEffect.HHEPLCCPKFP = Shader.PropertyToID("PUNVoice: PhotonVoiceSettings instance already set, extra instance ignored.");
|
|
DesaturateEffect.CEHMPDEAGOC = Shader.PropertyToID(" lost packet decoded length: ");
|
|
DesaturateEffect.KIBDPCHHBOJ = Shader.PropertyToID("JoinRandomRoom failed. In offline mode you still have to leave a room to enter another.");
|
|
DesaturateEffect.KEMJECLOIPD = Shader.PropertyToID("Cannot Read after Writing.");
|
|
this.JLAMMIJECBK = base.GetComponent<Camera>();
|
|
int num = this.maskTextureSize;
|
|
int num2 = this.maskTextureSize;
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
num *= 1;
|
|
}
|
|
this.NKDJCPIOCEB = new RenderTexture(num, num2, 1);
|
|
GameObject gameObject = new GameObject("Not in any event", new Type[] { typeof(Camera) });
|
|
this.PKPNODOPMGE = gameObject.GetComponent<Camera>();
|
|
this.PKPNODOPMGE.transform.parent = base.transform;
|
|
this.PKPNODOPMGE.cullingMask = 14;
|
|
this.PKPNODOPMGE.clearFlags = (CameraClearFlags)7;
|
|
this.PKPNODOPMGE.backgroundColor = Color.clear;
|
|
this.PKPNODOPMGE.targetTexture = this.NKDJCPIOCEB;
|
|
this.PKPNODOPMGE.enabled = true;
|
|
this.EFDIAPOBDNP = new Material(this.desaturateEffectShader);
|
|
}
|
|
|
|
// Token: 0x060265F7 RID: 157175 RVA: 0x00AA462C File Offset: 0x00AA282C
|
|
public void IJJCAGGEJBN(DesaturateEffect.OMELIIGMIHD NOBAPCOKFIL)
|
|
{
|
|
this.mode = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM <= 823f && this.mode == (DesaturateEffect.OMELIIGMIHD)4;
|
|
}
|
|
|
|
// Token: 0x060265F8 RID: 157176 RVA: 0x00AA4658 File Offset: 0x00AA2858
|
|
public void LGPMAPGCGGN(float NOBAPCOKFIL)
|
|
{
|
|
this.FKGJIIKIMGM = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM > 1167f || this.mode == (DesaturateEffect.OMELIIGMIHD)8;
|
|
}
|
|
|
|
// Token: 0x060265F9 RID: 157177 RVA: 0x00AA4684 File Offset: 0x00AA2884
|
|
public void EKEFCBALIIC(float NOBAPCOKFIL)
|
|
{
|
|
this.FKGJIIKIMGM = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM > 668f || this.mode == (DesaturateEffect.OMELIIGMIHD)6;
|
|
}
|
|
|
|
// Token: 0x060265FA RID: 157178 RVA: 0x00AA46B0 File Offset: 0x00AA28B0
|
|
public DesaturateEffect.OMELIIGMIHD GCBODFNALNE()
|
|
{
|
|
return this.mode;
|
|
}
|
|
|
|
// Token: 0x060265FB RID: 157179 RVA: 0x00AA46B8 File Offset: 0x00AA28B8
|
|
public float BLBENBNHLPB()
|
|
{
|
|
return this.FKGJIIKIMGM;
|
|
}
|
|
|
|
// Token: 0x060265FC RID: 157180 RVA: 0x00AA46C0 File Offset: 0x00AA28C0
|
|
public DesaturateEffect.OMELIIGMIHD AGCDODNBIGG()
|
|
{
|
|
return this.mode;
|
|
}
|
|
|
|
// Token: 0x060265FD RID: 157181 RVA: 0x00AA46C8 File Offset: 0x00AA28C8
|
|
private void BIOPLCKCFFL()
|
|
{
|
|
DesaturateEffect.BEPNBMLNEFD = Shader.PropertyToID("/");
|
|
DesaturateEffect.IIAKBHDKCHD = Shader.PropertyToID("Missing canvas on ");
|
|
DesaturateEffect.HHEPLCCPKFP = Shader.PropertyToID("Scale");
|
|
DesaturateEffect.CEHMPDEAGOC = Shader.PropertyToID("delay");
|
|
DesaturateEffect.KIBDPCHHBOJ = Shader.PropertyToID("oldImageName");
|
|
DesaturateEffect.KEMJECLOIPD = Shader.PropertyToID("SteamVR_RenderModel");
|
|
this.JLAMMIJECBK = base.GetComponent<Camera>();
|
|
int num = this.maskTextureSize;
|
|
int num2 = this.maskTextureSize;
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
num *= 2;
|
|
}
|
|
this.NKDJCPIOCEB = new RenderTexture(num, num2, 1);
|
|
GameObject gameObject = new GameObject("CachedView Master Objects", new Type[] { typeof(Camera) });
|
|
this.PKPNODOPMGE = gameObject.GetComponent<Camera>();
|
|
this.PKPNODOPMGE.transform.parent = base.transform;
|
|
this.PKPNODOPMGE.cullingMask = 148;
|
|
this.PKPNODOPMGE.clearFlags = (CameraClearFlags)5;
|
|
this.PKPNODOPMGE.backgroundColor = Color.clear;
|
|
this.PKPNODOPMGE.targetTexture = this.NKDJCPIOCEB;
|
|
this.PKPNODOPMGE.enabled = false;
|
|
this.EFDIAPOBDNP = new Material(this.desaturateEffectShader);
|
|
}
|
|
|
|
// Token: 0x060265FE RID: 157182 RVA: 0x00AA4808 File Offset: 0x00AA2A08
|
|
private void JNOEFFBKLPN()
|
|
{
|
|
if (this.mode == (DesaturateEffect.OMELIIGMIHD)5)
|
|
{
|
|
this.HHMIAPGHOFB();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060265FF RID: 157183 RVA: 0x00AA481C File Offset: 0x00AA2A1C
|
|
private void LEMGDPHJENH()
|
|
{
|
|
DesaturateEffect.BEPNBMLNEFD = Shader.PropertyToID("PhoneNumber");
|
|
DesaturateEffect.IIAKBHDKCHD = Shader.PropertyToID("12345");
|
|
DesaturateEffect.HHEPLCCPKFP = Shader.PropertyToID("Memory was not allocated for the encoder");
|
|
DesaturateEffect.CEHMPDEAGOC = Shader.PropertyToID("Data");
|
|
DesaturateEffect.KIBDPCHHBOJ = Shader.PropertyToID("CubeGrid ON");
|
|
DesaturateEffect.KEMJECLOIPD = Shader.PropertyToID("{0}v1/create");
|
|
this.JLAMMIJECBK = base.GetComponent<Camera>();
|
|
int num = this.maskTextureSize;
|
|
int num2 = this.maskTextureSize;
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
num *= 6;
|
|
}
|
|
this.NKDJCPIOCEB = new RenderTexture(num, num2, 0);
|
|
string text = "\\b";
|
|
Type[] array = new Type[0];
|
|
array[0] = typeof(Camera);
|
|
GameObject gameObject = new GameObject(text, array);
|
|
this.PKPNODOPMGE = gameObject.GetComponent<Camera>();
|
|
this.PKPNODOPMGE.transform.parent = base.transform;
|
|
this.PKPNODOPMGE.cullingMask = -117;
|
|
this.PKPNODOPMGE.clearFlags = CameraClearFlags.Depth;
|
|
this.PKPNODOPMGE.backgroundColor = Color.clear;
|
|
this.PKPNODOPMGE.targetTexture = this.NKDJCPIOCEB;
|
|
this.PKPNODOPMGE.enabled = true;
|
|
this.EFDIAPOBDNP = new Material(this.desaturateEffectShader);
|
|
}
|
|
|
|
// Token: 0x06026600 RID: 157184 RVA: 0x00AA495C File Offset: 0x00AA2B5C
|
|
private void CHHNKPGMLEA(RenderTexture ECFENKBBJOK, RenderTexture CECEGDBCMOD)
|
|
{
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("ID", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("ROTATION_INCREMENT", this.mode == DesaturateEffect.OMELIIGMIHD.PartialScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("shadowdistance", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.KIBDPCHHBOJ, new Vector4(this.desaturatedWhiteLevel - this.desaturatedBlackLevel, this.desaturatedBlackLevel, this.maxDesaturation, 1328f));
|
|
if (this.mode == DesaturateEffect.OMELIIGMIHD.TargetedToOverlayUI)
|
|
{
|
|
this.EFDIAPOBDNP.SetTexture(DesaturateEffect.KEMJECLOIPD, this.NKDJCPIOCEB);
|
|
}
|
|
else
|
|
{
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.IIAKBHDKCHD, new Vector4(this.partialScreenBottomLeft.x, this.partialScreenBottomLeft.y, this.partialScreenTopRight.x, this.partialScreenTopRight.y));
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.HHEPLCCPKFP, this.partialScreenEdgeFade);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.CEHMPDEAGOC, this.FKGJIIKIMGM);
|
|
}
|
|
Graphics.Blit(ECFENKBBJOK, CECEGDBCMOD);
|
|
}
|
|
|
|
// Token: 0x06026601 RID: 157185 RVA: 0x00AA4A84 File Offset: 0x00AA2C84
|
|
private void CIFHJDNIHHK(RenderTexture ECFENKBBJOK, RenderTexture CECEGDBCMOD)
|
|
{
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("action", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("Upgrade", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("Failed to initialize PSN platform", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.KIBDPCHHBOJ, new Vector4(this.desaturatedWhiteLevel - this.desaturatedBlackLevel, this.desaturatedBlackLevel, this.maxDesaturation, 1251f));
|
|
if (this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen)
|
|
{
|
|
this.EFDIAPOBDNP.SetTexture(DesaturateEffect.KEMJECLOIPD, this.NKDJCPIOCEB);
|
|
}
|
|
else
|
|
{
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.IIAKBHDKCHD, new Vector4(this.partialScreenBottomLeft.x, this.partialScreenBottomLeft.y, this.partialScreenTopRight.x, this.partialScreenTopRight.y));
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.HHEPLCCPKFP, this.partialScreenEdgeFade);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.CEHMPDEAGOC, this.FKGJIIKIMGM);
|
|
}
|
|
Graphics.Blit(ECFENKBBJOK, CECEGDBCMOD);
|
|
}
|
|
|
|
// Token: 0x06026602 RID: 157186 RVA: 0x00AA4BAC File Offset: 0x00AA2DAC
|
|
private void JMMDNPADFAF()
|
|
{
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.rect = new Rect(0f, 0f, 0.5f, 1f);
|
|
this.PKPNODOPMGE.Render();
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.rect = new Rect(0.5f, 0f, 0.5f, 1f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
else
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.worldToCameraMatrix;
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.projectionMatrix;
|
|
this.PKPNODOPMGE.rect = new Rect(0f, 0f, 1f, 1f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
int num = this.NKDJCPIOCEB.width / 4;
|
|
int num2 = this.NKDJCPIOCEB.height / 4;
|
|
RenderTexture renderTexture = RenderTexture.GetTemporary(num, num2, 0);
|
|
this.EFDIAPOBDNP.EnableKeyword("COMBINE_MAX");
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 0.5f);
|
|
Graphics.Blit(this.NKDJCPIOCEB, renderTexture, this.EFDIAPOBDNP, 0);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 1f);
|
|
for (int i = 0; i < this.expandIterations; i++)
|
|
{
|
|
RenderTexture temporary = RenderTexture.GetTemporary(num, num2, 0);
|
|
Graphics.Blit(renderTexture, temporary, this.EFDIAPOBDNP, 0);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary;
|
|
}
|
|
this.EFDIAPOBDNP.DisableKeyword("COMBINE_MAX");
|
|
for (int j = 0; j < this.blurIterations; j++)
|
|
{
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 0.5f + (float)j * 0.6f);
|
|
RenderTexture temporary2 = RenderTexture.GetTemporary(num, num2, 0);
|
|
Graphics.Blit(renderTexture, temporary2, this.EFDIAPOBDNP, 0);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary2;
|
|
}
|
|
Graphics.Blit(renderTexture, this.NKDJCPIOCEB);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
}
|
|
|
|
// Token: 0x06026603 RID: 157187 RVA: 0x00AA4E0C File Offset: 0x00AA300C
|
|
private void KMDPHFJBFBA(RenderTexture ECFENKBBJOK, RenderTexture CECEGDBCMOD)
|
|
{
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("lifeBar", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("utv", this.mode == DesaturateEffect.OMELIIGMIHD.PartialScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI(" is missing a health bar.", this.mode == (DesaturateEffect.OMELIIGMIHD)4);
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.KIBDPCHHBOJ, new Vector4(this.desaturatedWhiteLevel - this.desaturatedBlackLevel, this.desaturatedBlackLevel, this.maxDesaturation, 1044f));
|
|
if (this.mode == (DesaturateEffect.OMELIIGMIHD)7)
|
|
{
|
|
this.EFDIAPOBDNP.SetTexture(DesaturateEffect.KEMJECLOIPD, this.NKDJCPIOCEB);
|
|
}
|
|
else
|
|
{
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.IIAKBHDKCHD, new Vector4(this.partialScreenBottomLeft.x, this.partialScreenBottomLeft.y, this.partialScreenTopRight.x, this.partialScreenTopRight.y));
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.HHEPLCCPKFP, this.partialScreenEdgeFade);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.CEHMPDEAGOC, this.FKGJIIKIMGM);
|
|
}
|
|
Graphics.Blit(ECFENKBBJOK, CECEGDBCMOD);
|
|
}
|
|
|
|
// Token: 0x06026604 RID: 157188 RVA: 0x00AA4F34 File Offset: 0x00AA3134
|
|
public void FJEPCNGELGG(DesaturateEffect.OMELIIGMIHD NOBAPCOKFIL)
|
|
{
|
|
this.mode = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM > 585f || this.mode == DesaturateEffect.OMELIIGMIHD.TargetedToOverlayUI;
|
|
}
|
|
|
|
// Token: 0x06026605 RID: 157189 RVA: 0x00AA4F60 File Offset: 0x00AA3160
|
|
private void FAMABEBNDIH()
|
|
{
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.rect = new Rect(1204f, 417f, 1253f, 1391f);
|
|
this.PKPNODOPMGE.Render();
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.rect = new Rect(1129f, 1838f, 1547f, 1102f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
else
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.worldToCameraMatrix;
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.projectionMatrix;
|
|
this.PKPNODOPMGE.rect = new Rect(1935f, 153f, 1503f, 1807f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
int num = this.NKDJCPIOCEB.width / 0;
|
|
int num2 = this.NKDJCPIOCEB.height / 3;
|
|
RenderTexture renderTexture = RenderTexture.GetTemporary(num, num2, 1);
|
|
this.EFDIAPOBDNP.EnableKeyword("dma");
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 967f);
|
|
Graphics.Blit(this.NKDJCPIOCEB, renderTexture, this.EFDIAPOBDNP, 1);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 547f);
|
|
for (int i = 0; i < this.expandIterations; i++)
|
|
{
|
|
RenderTexture temporary = RenderTexture.GetTemporary(num, num2, 0);
|
|
Graphics.Blit(renderTexture, temporary, this.EFDIAPOBDNP, 0);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary;
|
|
}
|
|
this.EFDIAPOBDNP.DisableKeyword(": *True*\n");
|
|
for (int j = 1; j < this.blurIterations; j++)
|
|
{
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 374f + (float)j * 1760f);
|
|
RenderTexture temporary2 = RenderTexture.GetTemporary(num, num2, 0);
|
|
Graphics.Blit(renderTexture, temporary2, this.EFDIAPOBDNP, 0);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary2;
|
|
}
|
|
Graphics.Blit(renderTexture, this.NKDJCPIOCEB);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
}
|
|
|
|
// Token: 0x06026606 RID: 157190 RVA: 0x00AA51C0 File Offset: 0x00AA33C0
|
|
private void IABDGAJLFNK()
|
|
{
|
|
DesaturateEffect.BEPNBMLNEFD = Shader.PropertyToID("duration_before_entering");
|
|
DesaturateEffect.IIAKBHDKCHD = Shader.PropertyToID("RpcAttachToObject");
|
|
DesaturateEffect.HHEPLCCPKFP = Shader.PropertyToID("Request status: ");
|
|
DesaturateEffect.CEHMPDEAGOC = Shader.PropertyToID("AllocateViewID() failed. User {0} is out of subIds, as all viewIDs are used.");
|
|
DesaturateEffect.KIBDPCHHBOJ = Shader.PropertyToID("Event Not Started");
|
|
DesaturateEffect.KEMJECLOIPD = Shader.PropertyToID("WaitUntilPlayerOpensMenuNoTimeout");
|
|
this.JLAMMIJECBK = base.GetComponent<Camera>();
|
|
int num = this.maskTextureSize;
|
|
int num2 = this.maskTextureSize;
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
num *= 3;
|
|
}
|
|
this.NKDJCPIOCEB = new RenderTexture(num, num2, 1);
|
|
string text = "playerCreated";
|
|
Type[] array = new Type[0];
|
|
array[1] = typeof(Camera);
|
|
GameObject gameObject = new GameObject(text, array);
|
|
this.PKPNODOPMGE = gameObject.GetComponent<Camera>();
|
|
this.PKPNODOPMGE.transform.parent = base.transform;
|
|
this.PKPNODOPMGE.cullingMask = 6;
|
|
this.PKPNODOPMGE.clearFlags = CameraClearFlags.Skybox;
|
|
this.PKPNODOPMGE.backgroundColor = Color.clear;
|
|
this.PKPNODOPMGE.targetTexture = this.NKDJCPIOCEB;
|
|
this.PKPNODOPMGE.enabled = false;
|
|
this.EFDIAPOBDNP = new Material(this.desaturateEffectShader);
|
|
}
|
|
|
|
// Token: 0x06026607 RID: 157191 RVA: 0x00AA5300 File Offset: 0x00AA3500
|
|
private void AMNNBMEMJGB()
|
|
{
|
|
DesaturateEffect.BEPNBMLNEFD = Shader.PropertyToID("PUNVoice: Setting global microphone device to {0}");
|
|
DesaturateEffect.IIAKBHDKCHD = Shader.PropertyToID("VisualProgress");
|
|
DesaturateEffect.HHEPLCCPKFP = Shader.PropertyToID("z");
|
|
DesaturateEffect.CEHMPDEAGOC = Shader.PropertyToID("Plugin DLL Version : ");
|
|
DesaturateEffect.KIBDPCHHBOJ = Shader.PropertyToID("looktarget");
|
|
DesaturateEffect.KEMJECLOIPD = Shader.PropertyToID("SystemInfo");
|
|
this.JLAMMIJECBK = base.GetComponent<Camera>();
|
|
int num = this.maskTextureSize;
|
|
int num2 = this.maskTextureSize;
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
num *= 7;
|
|
}
|
|
this.NKDJCPIOCEB = new RenderTexture(num, num2, 0);
|
|
GameObject gameObject = new GameObject("Failed to send image link: ", new Type[] { typeof(Camera) });
|
|
this.PKPNODOPMGE = gameObject.GetComponent<Camera>();
|
|
this.PKPNODOPMGE.transform.parent = base.transform;
|
|
this.PKPNODOPMGE.cullingMask = -197;
|
|
this.PKPNODOPMGE.clearFlags = CameraClearFlags.Depth;
|
|
this.PKPNODOPMGE.backgroundColor = Color.clear;
|
|
this.PKPNODOPMGE.targetTexture = this.NKDJCPIOCEB;
|
|
this.PKPNODOPMGE.enabled = true;
|
|
this.EFDIAPOBDNP = new Material(this.desaturateEffectShader);
|
|
}
|
|
|
|
// Token: 0x06026608 RID: 157192 RVA: 0x00AA5440 File Offset: 0x00AA3640
|
|
private void EGLCJOOJLPJ(RenderTexture ECFENKBBJOK, RenderTexture CECEGDBCMOD)
|
|
{
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("Failed to ", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("ExtrusionColor", this.mode == DesaturateEffect.OMELIIGMIHD.PartialScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("content-encoding", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.KIBDPCHHBOJ, new Vector4(this.desaturatedWhiteLevel - this.desaturatedBlackLevel, this.desaturatedBlackLevel, this.maxDesaturation, 730f));
|
|
if (this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen)
|
|
{
|
|
this.EFDIAPOBDNP.SetTexture(DesaturateEffect.KEMJECLOIPD, this.NKDJCPIOCEB);
|
|
}
|
|
else
|
|
{
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.IIAKBHDKCHD, new Vector4(this.partialScreenBottomLeft.x, this.partialScreenBottomLeft.y, this.partialScreenTopRight.x, this.partialScreenTopRight.y));
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.HHEPLCCPKFP, this.partialScreenEdgeFade);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.CEHMPDEAGOC, this.FKGJIIKIMGM);
|
|
}
|
|
Graphics.Blit(ECFENKBBJOK, CECEGDBCMOD);
|
|
}
|
|
|
|
// Token: 0x06026609 RID: 157193 RVA: 0x00AA5568 File Offset: 0x00AA3768
|
|
public void KEPHKDDGKJK(float NOBAPCOKFIL)
|
|
{
|
|
this.FKGJIIKIMGM = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM > 1633f || this.mode == (DesaturateEffect.OMELIIGMIHD)5;
|
|
}
|
|
|
|
// Token: 0x0602660A RID: 157194 RVA: 0x00AA5594 File Offset: 0x00AA3794
|
|
private void KHAFAAPIEBC()
|
|
{
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.rect = new Rect(315f, 1484f, 1584f, 1259f);
|
|
this.PKPNODOPMGE.Render();
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.rect = new Rect(937f, 448f, 140f, 823f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
else
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.worldToCameraMatrix;
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.projectionMatrix;
|
|
this.PKPNODOPMGE.rect = new Rect(1955f, 1019f, 1318f, 1327f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
int num = this.NKDJCPIOCEB.width / 5;
|
|
int num2 = this.NKDJCPIOCEB.height / 1;
|
|
RenderTexture renderTexture = RenderTexture.GetTemporary(num, num2, 0);
|
|
this.EFDIAPOBDNP.EnableKeyword("Can't connect: Loading settings failed. ServerSettings asset must be in any 'Resources' folder as: PhotonServerSettings");
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 384f);
|
|
Graphics.Blit(this.NKDJCPIOCEB, renderTexture, this.EFDIAPOBDNP, 0);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 354f);
|
|
for (int i = 0; i < this.expandIterations; i += 0)
|
|
{
|
|
RenderTexture temporary = RenderTexture.GetTemporary(num, num2, 0);
|
|
Graphics.Blit(renderTexture, temporary, this.EFDIAPOBDNP, 1);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary;
|
|
}
|
|
this.EFDIAPOBDNP.DisableKeyword("\\n");
|
|
for (int j = 1; j < this.blurIterations; j += 0)
|
|
{
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 1035f + (float)j * 1500f);
|
|
RenderTexture temporary2 = RenderTexture.GetTemporary(num, num2, 1);
|
|
Graphics.Blit(renderTexture, temporary2, this.EFDIAPOBDNP, 0);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary2;
|
|
}
|
|
Graphics.Blit(renderTexture, this.NKDJCPIOCEB);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
}
|
|
|
|
// Token: 0x0602660B RID: 157195 RVA: 0x00AA57F4 File Offset: 0x00AA39F4
|
|
private void BEBJBDNLHFC(RenderTexture ECFENKBBJOK, RenderTexture CECEGDBCMOD)
|
|
{
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("Xp", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("gizmos", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("VoiceVolume", this.mode == (DesaturateEffect.OMELIIGMIHD)6);
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.KIBDPCHHBOJ, new Vector4(this.desaturatedWhiteLevel - this.desaturatedBlackLevel, this.desaturatedBlackLevel, this.maxDesaturation, 633f));
|
|
if (this.mode == (DesaturateEffect.OMELIIGMIHD)6)
|
|
{
|
|
this.EFDIAPOBDNP.SetTexture(DesaturateEffect.KEMJECLOIPD, this.NKDJCPIOCEB);
|
|
}
|
|
else
|
|
{
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.IIAKBHDKCHD, new Vector4(this.partialScreenBottomLeft.x, this.partialScreenBottomLeft.y, this.partialScreenTopRight.x, this.partialScreenTopRight.y));
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.HHEPLCCPKFP, this.partialScreenEdgeFade);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.CEHMPDEAGOC, this.FKGJIIKIMGM);
|
|
}
|
|
Graphics.Blit(ECFENKBBJOK, CECEGDBCMOD);
|
|
}
|
|
|
|
// Token: 0x0602660C RID: 157196 RVA: 0x00AA591C File Offset: 0x00AA3B1C
|
|
private void OGAHFEMNGBG(RenderTexture ECFENKBBJOK, RenderTexture CECEGDBCMOD)
|
|
{
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("The word was: ", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("prev_activity", this.mode == DesaturateEffect.OMELIIGMIHD.PartialScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("{0}v1/update", this.mode == (DesaturateEffect.OMELIIGMIHD)8);
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.KIBDPCHHBOJ, new Vector4(this.desaturatedWhiteLevel - this.desaturatedBlackLevel, this.desaturatedBlackLevel, this.maxDesaturation, 316f));
|
|
if (this.mode == DesaturateEffect.OMELIIGMIHD.PartialScreen)
|
|
{
|
|
this.EFDIAPOBDNP.SetTexture(DesaturateEffect.KEMJECLOIPD, this.NKDJCPIOCEB);
|
|
}
|
|
else
|
|
{
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.IIAKBHDKCHD, new Vector4(this.partialScreenBottomLeft.x, this.partialScreenBottomLeft.y, this.partialScreenTopRight.x, this.partialScreenTopRight.y));
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.HHEPLCCPKFP, this.partialScreenEdgeFade);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.CEHMPDEAGOC, this.FKGJIIKIMGM);
|
|
}
|
|
Graphics.Blit(ECFENKBBJOK, CECEGDBCMOD);
|
|
}
|
|
|
|
// Token: 0x0602660D RID: 157197 RVA: 0x00AA5A44 File Offset: 0x00AA3C44
|
|
public void BIBAGDOKPFL(float NOBAPCOKFIL)
|
|
{
|
|
this.FKGJIIKIMGM = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM <= 1567f && this.mode == (DesaturateEffect.OMELIIGMIHD)4;
|
|
}
|
|
|
|
// Token: 0x0602660E RID: 157198 RVA: 0x00AA5A70 File Offset: 0x00AA3C70
|
|
public void DPACPHLAKNA(DesaturateEffect.OMELIIGMIHD NOBAPCOKFIL)
|
|
{
|
|
this.mode = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM <= 11f && this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen;
|
|
}
|
|
|
|
// Token: 0x0602660F RID: 157199 RVA: 0x00AA5A9C File Offset: 0x00AA3C9C
|
|
public void GLDKNJPINFL(DesaturateEffect.OMELIIGMIHD NOBAPCOKFIL)
|
|
{
|
|
this.mode = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM > 116f || this.mode == (DesaturateEffect.OMELIIGMIHD)4;
|
|
}
|
|
|
|
// Token: 0x06026610 RID: 157200 RVA: 0x00AA5AC8 File Offset: 0x00AA3CC8
|
|
private void KNMDLHBHHDF(RenderTexture ECFENKBBJOK, RenderTexture CECEGDBCMOD)
|
|
{
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("DEFEND IT!", this.mode == DesaturateEffect.OMELIIGMIHD.PartialScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("CiRzYW5kYm94X3NwYXduZWRfZXF1aXBtZW50X2RhdGEucHJvdG8SB3JlY3Jv", this.mode == DesaturateEffect.OMELIIGMIHD.PartialScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI(" Rounds", this.mode == (DesaturateEffect.OMELIIGMIHD)7);
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.KIBDPCHHBOJ, new Vector4(this.desaturatedWhiteLevel - this.desaturatedBlackLevel, this.desaturatedBlackLevel, this.maxDesaturation, 1568f));
|
|
if (this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen)
|
|
{
|
|
this.EFDIAPOBDNP.SetTexture(DesaturateEffect.KEMJECLOIPD, this.NKDJCPIOCEB);
|
|
}
|
|
else
|
|
{
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.IIAKBHDKCHD, new Vector4(this.partialScreenBottomLeft.x, this.partialScreenBottomLeft.y, this.partialScreenTopRight.x, this.partialScreenTopRight.y));
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.HHEPLCCPKFP, this.partialScreenEdgeFade);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.CEHMPDEAGOC, this.FKGJIIKIMGM);
|
|
}
|
|
Graphics.Blit(ECFENKBBJOK, CECEGDBCMOD);
|
|
}
|
|
|
|
// Token: 0x06026611 RID: 157201 RVA: 0x00AA5BF0 File Offset: 0x00AA3DF0
|
|
private void DCFGLBNFNCN(RenderTexture ECFENKBBJOK, RenderTexture CECEGDBCMOD)
|
|
{
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("min_fps", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI(".Item.Used.", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("Loading render model ", this.mode == (DesaturateEffect.OMELIIGMIHD)3);
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.KIBDPCHHBOJ, new Vector4(this.desaturatedWhiteLevel - this.desaturatedBlackLevel, this.desaturatedBlackLevel, this.maxDesaturation, 1163f));
|
|
if (this.mode == (DesaturateEffect.OMELIIGMIHD)3)
|
|
{
|
|
this.EFDIAPOBDNP.SetTexture(DesaturateEffect.KEMJECLOIPD, this.NKDJCPIOCEB);
|
|
}
|
|
else
|
|
{
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.IIAKBHDKCHD, new Vector4(this.partialScreenBottomLeft.x, this.partialScreenBottomLeft.y, this.partialScreenTopRight.x, this.partialScreenTopRight.y));
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.HHEPLCCPKFP, this.partialScreenEdgeFade);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.CEHMPDEAGOC, this.FKGJIIKIMGM);
|
|
}
|
|
Graphics.Blit(ECFENKBBJOK, CECEGDBCMOD);
|
|
}
|
|
|
|
// Token: 0x06026612 RID: 157202 RVA: 0x00AA5D18 File Offset: 0x00AA3F18
|
|
private void GGLJAAIMKPK()
|
|
{
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.rect = new Rect(1415f, 1508f, 969f, 170f);
|
|
this.PKPNODOPMGE.Render();
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.rect = new Rect(290f, 52f, 664f, 1265f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
else
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.worldToCameraMatrix;
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.projectionMatrix;
|
|
this.PKPNODOPMGE.rect = new Rect(1093f, 1146f, 1879f, 507f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
int num = this.NKDJCPIOCEB.width / 7;
|
|
int num2 = this.NKDJCPIOCEB.height / 8;
|
|
RenderTexture renderTexture = RenderTexture.GetTemporary(num, num2, 1);
|
|
this.EFDIAPOBDNP.EnableKeyword("room_reloaded");
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 120f);
|
|
Graphics.Blit(this.NKDJCPIOCEB, renderTexture, this.EFDIAPOBDNP, 0);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 178f);
|
|
for (int i = 1; i < this.expandIterations; i += 0)
|
|
{
|
|
RenderTexture temporary = RenderTexture.GetTemporary(num, num2, 0);
|
|
Graphics.Blit(renderTexture, temporary, this.EFDIAPOBDNP, 0);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary;
|
|
}
|
|
this.EFDIAPOBDNP.DisableKeyword("Switch to Seated");
|
|
for (int j = 0; j < this.blurIterations; j++)
|
|
{
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 1774f + (float)j * 826f);
|
|
RenderTexture temporary2 = RenderTexture.GetTemporary(num, num2, 0);
|
|
Graphics.Blit(renderTexture, temporary2, this.EFDIAPOBDNP, 1);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary2;
|
|
}
|
|
Graphics.Blit(renderTexture, this.NKDJCPIOCEB);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
}
|
|
|
|
// Token: 0x06026613 RID: 157203 RVA: 0x00AA5F78 File Offset: 0x00AA4178
|
|
private void LAMAMPMAMKE(RenderTexture ECFENKBBJOK, RenderTexture CECEGDBCMOD)
|
|
{
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("Publishing...", this.mode == DesaturateEffect.OMELIIGMIHD.PartialScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("Buffer empty, stopping ", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("\n\t", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.KIBDPCHHBOJ, new Vector4(this.desaturatedWhiteLevel - this.desaturatedBlackLevel, this.desaturatedBlackLevel, this.maxDesaturation, 1297f));
|
|
if (this.mode == (DesaturateEffect.OMELIIGMIHD)7)
|
|
{
|
|
this.EFDIAPOBDNP.SetTexture(DesaturateEffect.KEMJECLOIPD, this.NKDJCPIOCEB);
|
|
}
|
|
else
|
|
{
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.IIAKBHDKCHD, new Vector4(this.partialScreenBottomLeft.x, this.partialScreenBottomLeft.y, this.partialScreenTopRight.x, this.partialScreenTopRight.y));
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.HHEPLCCPKFP, this.partialScreenEdgeFade);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.CEHMPDEAGOC, this.FKGJIIKIMGM);
|
|
}
|
|
Graphics.Blit(ECFENKBBJOK, CECEGDBCMOD);
|
|
}
|
|
|
|
// Token: 0x06026614 RID: 157204 RVA: 0x00AA60A0 File Offset: 0x00AA42A0
|
|
private void HKBNFKNLICF()
|
|
{
|
|
DesaturateEffect.BEPNBMLNEFD = Shader.PropertyToID("<pre style=\"font-family:Consolas;font-size:13;color:black;background:silver;\"><span style=\"color:blue;\">using</span> System;\r\n\r\n<span style=\"color:blue;\">using</span> UnityEngine;\r\n<span style=\"color:blue;\">using</span> BestHTTP.SignalR;\r\n\r\n<span style=\"color:blue;\">sealed</span> <span style=\"color:blue;\">class</span> <span style=\"color:#2b91af;\">SimpleStreamingSample</span> : <span style=\"color:#2b91af;\">MonoBehaviour</span>\r\n{\r\n <span style=\"color:blue;\">readonly</span> <span style=\"color:#2b91af;\">Uri</span> URI = <span style=\"color:blue;\">new</span> <span style=\"color:#2b91af;\">Uri</span>(<span style=\"color:#a31515;\">"http://besthttpsignalr.azurewebsites.net/streaming-connection"</span>);\r\n\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"><summary></span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> Reference to the SignalR Connection</span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"></summary></span>\r\n <span style=\"color:#2b91af;\">Connection</span> signalRConnection;\r\n\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"><summary></span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> Helper GUI class to handle and display a string-list</span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"></summary></span>\r\n <span style=\"color:#2b91af;\">GUIMessageList</span> messages = <span style=\"color:blue;\">new</span> <span style=\"color:#2b91af;\">GUIMessageList</span>();\r\n\r\n<span style=\"color:blue;\"> #region</span> Unity Events\r\n\r\n <span style=\"color:blue;\">void</span> Start()\r\n {\r\n <span style=\"color:green;\">// Create the SignalR connection</span>\r\n signalRConnection = <span style=\"color:blue;\">new</span> <span style=\"color:#2b91af;\">Connection</span>(URI);\r\n\r\n <span style=\"color:green;\">// set event handlers</span>\r\n signalRConnection.OnNonHubMessage += signalRConnection_OnNonHubMessage;\r\n signalRConnection.OnStateChanged += signalRConnection_OnStateChanged;\r\n signalRConnection.OnError += signalRConnection_OnError;\r\n\r\n <span style=\"color:green;\">// Start connecting to the server</span>\r\n signalRConnection.Open();\r\n }\r\n\r\n <span style=\"color:blue;\">void</span> OnDestroy()\r\n {\r\n <span style=\"color:green;\">// Close the connection when the sample is closed</span>\r\n signalRConnection.Close();\r\n }\r\n\r\n <span style=\"color:blue;\">void</span> OnGUI()\r\n {\r\n <span style=\"color:#2b91af;\">GUIHelper</span>.DrawArea(<span style=\"color:#2b91af;\">GUIHelper</span>.ClientArea, <span style=\"color:blue;\">true</span>, () =>\r\n {\r\n <span style=\"color:#2b91af;\">GUILayout</span>.Label(<span style=\"color:#a31515;\">"Messages"</span>);\r\n\r\n <span style=\"color:#2b91af;\">GUILayout</span>.BeginHorizontal();\r\n <span style=\"color:#2b91af;\">GUILayout</span>.Space(20);\r\n messages.Draw(<span style=\"color:#2b91af;\">Screen</span>.width - 20, 0);\r\n <span style=\"color:#2b91af;\">GUILayout</span>.EndHorizontal();\r\n });\r\n }\r\n\r\n<span style=\"color:blue;\"> #endregion</span>\r\n\r\n<span style=\"color:blue;\"> #region</span> SignalR Events\r\n\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"><summary></span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> Handle Server-sent messages</span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"></summary></span>\r\n <span style=\"color:blue;\">void</span> signalRConnection_OnNonHubMessage(<span style=\"color:#2b91af;\">Connection</span> connection, <span style=\"color:blue;\">object</span> data)\r\n {\r\n messages.Add(<span style=\"color:#a31515;\">"[Server Message] "</span> + data.ToString());\r\n }\r\n\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"><summary></span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> Display state changes</span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"></summary></span>\r\n <span style=\"color:blue;\">void</span> signalRConnection_OnStateChanged(<span style=\"color:#2b91af;\">Connection</span> connection, <span style=\"color:#2b91af;\">ConnectionStates</span> oldState, <span style=\"color:#2b91af;\">ConnectionStates</span> newState)\r\n {\r\n messages.Add(<span style=\"color:blue;\">string</span>.Format(<span style=\"color:#a31515;\">"[State Change] {0} => {1}"</span>, oldState, newState));\r\n }\r\n\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"><summary></span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> Display errors.</span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"></summary></span>\r\n <span style=\"color:blue;\">void</span> signalRConnection_OnError(<span style=\"color:#2b91af;\">Connection</span> connection, <span style=\"color:blue;\">string</span> error)\r\n {\r\n messages.Add(<span style=\"color:#a31515;\">"[Error] "</span> + error);\r\n }\r\n\r\n<span style=\"color:blue;\"> #endregion</span>\r\n}</pre>");
|
|
DesaturateEffect.IIAKBHDKCHD = Shader.PropertyToID("3D Button ");
|
|
DesaturateEffect.HHEPLCCPKFP = Shader.PropertyToID("FriendCount");
|
|
DesaturateEffect.CEHMPDEAGOC = Shader.PropertyToID("You are not allowed on stage!");
|
|
DesaturateEffect.KIBDPCHHBOJ = Shader.PropertyToID("{0}v1/crashdump");
|
|
DesaturateEffect.KEMJECLOIPD = Shader.PropertyToID("Failed to ");
|
|
this.JLAMMIJECBK = base.GetComponent<Camera>();
|
|
int num = this.maskTextureSize;
|
|
int num2 = this.maskTextureSize;
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
num *= 1;
|
|
}
|
|
this.NKDJCPIOCEB = new RenderTexture(num, num2, 0);
|
|
string text = "handles";
|
|
Type[] array = new Type[0];
|
|
array[0] = typeof(Camera);
|
|
GameObject gameObject = new GameObject(text, array);
|
|
this.PKPNODOPMGE = gameObject.GetComponent<Camera>();
|
|
this.PKPNODOPMGE.transform.parent = base.transform;
|
|
this.PKPNODOPMGE.cullingMask = 20;
|
|
this.PKPNODOPMGE.clearFlags = (CameraClearFlags)5;
|
|
this.PKPNODOPMGE.backgroundColor = Color.clear;
|
|
this.PKPNODOPMGE.targetTexture = this.NKDJCPIOCEB;
|
|
this.PKPNODOPMGE.enabled = true;
|
|
this.EFDIAPOBDNP = new Material(this.desaturateEffectShader);
|
|
}
|
|
|
|
// Token: 0x06026615 RID: 157205 RVA: 0x00AA61E0 File Offset: 0x00AA43E0
|
|
private void GECAJFDAOOM()
|
|
{
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.rect = new Rect(1056f, 310f, 1958f, 1354f);
|
|
this.PKPNODOPMGE.Render();
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.rect = new Rect(1617f, 1854f, 1667f, 1827f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
else
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.worldToCameraMatrix;
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.projectionMatrix;
|
|
this.PKPNODOPMGE.rect = new Rect(356f, 837f, 1511f, 1409f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
int num = this.NKDJCPIOCEB.width / 2;
|
|
int num2 = this.NKDJCPIOCEB.height / 0;
|
|
RenderTexture renderTexture = RenderTexture.GetTemporary(num, num2, 1);
|
|
this.EFDIAPOBDNP.EnableKeyword("Oculus platform is not implemented on this platform yet.");
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 1200f);
|
|
Graphics.Blit(this.NKDJCPIOCEB, renderTexture, this.EFDIAPOBDNP, 0);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 327f);
|
|
for (int i = 1; i < this.expandIterations; i += 0)
|
|
{
|
|
RenderTexture temporary = RenderTexture.GetTemporary(num, num2, 1);
|
|
Graphics.Blit(renderTexture, temporary, this.EFDIAPOBDNP, 0);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary;
|
|
}
|
|
this.EFDIAPOBDNP.DisableKeyword("activityName");
|
|
for (int j = 0; j < this.blurIterations; j++)
|
|
{
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 698f + (float)j * 1863f);
|
|
RenderTexture temporary2 = RenderTexture.GetTemporary(num, num2, 0);
|
|
Graphics.Blit(renderTexture, temporary2, this.EFDIAPOBDNP, 1);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary2;
|
|
}
|
|
Graphics.Blit(renderTexture, this.NKDJCPIOCEB);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
}
|
|
|
|
// Token: 0x06026616 RID: 157206 RVA: 0x00AA6440 File Offset: 0x00AA4640
|
|
public float MICLAPIIGFC()
|
|
{
|
|
return this.FKGJIIKIMGM;
|
|
}
|
|
|
|
// Token: 0x06026617 RID: 157207 RVA: 0x00AA6448 File Offset: 0x00AA4648
|
|
public float KGGBKEGGKIO()
|
|
{
|
|
return this.FKGJIIKIMGM;
|
|
}
|
|
|
|
// Token: 0x06026618 RID: 157208 RVA: 0x00AA6450 File Offset: 0x00AA4650
|
|
public void FABNBLBFHMK(float NOBAPCOKFIL)
|
|
{
|
|
this.FKGJIIKIMGM = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM <= 1568f && this.mode == (DesaturateEffect.OMELIIGMIHD)8;
|
|
}
|
|
|
|
// Token: 0x06026619 RID: 157209 RVA: 0x00AA647C File Offset: 0x00AA467C
|
|
private void KMCJNIPIKBA()
|
|
{
|
|
DesaturateEffect.BEPNBMLNEFD = Shader.PropertyToID("Mouse ScrollWheel");
|
|
DesaturateEffect.IIAKBHDKCHD = Shader.PropertyToID("): ");
|
|
DesaturateEffect.HHEPLCCPKFP = Shader.PropertyToID("No Deflate State!");
|
|
DesaturateEffect.CEHMPDEAGOC = Shader.PropertyToID("_Color");
|
|
DesaturateEffect.KIBDPCHHBOJ = Shader.PropertyToID("BackDown");
|
|
DesaturateEffect.KEMJECLOIPD = Shader.PropertyToID("y");
|
|
this.JLAMMIJECBK = base.GetComponent<Camera>();
|
|
int num = this.maskTextureSize;
|
|
int num2 = this.maskTextureSize;
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
num *= 1;
|
|
}
|
|
this.NKDJCPIOCEB = new RenderTexture(num, num2, 1);
|
|
string text = "MAJAMDPBALF";
|
|
Type[] array = new Type[0];
|
|
array[1] = typeof(Camera);
|
|
GameObject gameObject = new GameObject(text, array);
|
|
this.PKPNODOPMGE = gameObject.GetComponent<Camera>();
|
|
this.PKPNODOPMGE.transform.parent = base.transform;
|
|
this.PKPNODOPMGE.cullingMask = -101;
|
|
this.PKPNODOPMGE.clearFlags = (CameraClearFlags)6;
|
|
this.PKPNODOPMGE.backgroundColor = Color.clear;
|
|
this.PKPNODOPMGE.targetTexture = this.NKDJCPIOCEB;
|
|
this.PKPNODOPMGE.enabled = false;
|
|
this.EFDIAPOBDNP = new Material(this.desaturateEffectShader);
|
|
}
|
|
|
|
// Token: 0x0602661A RID: 157210 RVA: 0x00AA65BC File Offset: 0x00AA47BC
|
|
public void DEDOHPMEFPE(DesaturateEffect.OMELIIGMIHD NOBAPCOKFIL)
|
|
{
|
|
this.mode = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM > 573f || this.mode == (DesaturateEffect.OMELIIGMIHD)5;
|
|
}
|
|
|
|
// Token: 0x0602661B RID: 157211 RVA: 0x00AA65E8 File Offset: 0x00AA47E8
|
|
private void DLEGFDBLAGB()
|
|
{
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.rect = new Rect(409f, 710f, 164f, 1809f);
|
|
this.PKPNODOPMGE.Render();
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.rect = new Rect(627f, 401f, 598f, 632f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
else
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.worldToCameraMatrix;
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.projectionMatrix;
|
|
this.PKPNODOPMGE.rect = new Rect(1410f, 172f, 468f, 1763f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
int num = this.NKDJCPIOCEB.width / 0;
|
|
int num2 = this.NKDJCPIOCEB.height / 5;
|
|
RenderTexture renderTexture = RenderTexture.GetTemporary(num, num2, 1);
|
|
this.EFDIAPOBDNP.EnableKeyword("Operation failed: ");
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 1573f);
|
|
Graphics.Blit(this.NKDJCPIOCEB, renderTexture, this.EFDIAPOBDNP, 1);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 209f);
|
|
for (int i = 1; i < this.expandIterations; i += 0)
|
|
{
|
|
RenderTexture temporary = RenderTexture.GetTemporary(num, num2, 0);
|
|
Graphics.Blit(renderTexture, temporary, this.EFDIAPOBDNP, 0);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary;
|
|
}
|
|
this.EFDIAPOBDNP.DisableKeyword("[");
|
|
for (int j = 0; j < this.blurIterations; j++)
|
|
{
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 1750f + (float)j * 1125f);
|
|
RenderTexture temporary2 = RenderTexture.GetTemporary(num, num2, 0);
|
|
Graphics.Blit(renderTexture, temporary2, this.EFDIAPOBDNP, 1);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary2;
|
|
}
|
|
Graphics.Blit(renderTexture, this.NKDJCPIOCEB);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
}
|
|
|
|
// Token: 0x0602661C RID: 157212 RVA: 0x00AA6848 File Offset: 0x00AA4A48
|
|
private void EIAFGFMKCCE()
|
|
{
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.rect = new Rect(1730f, 1461f, 927f, 501f);
|
|
this.PKPNODOPMGE.Render();
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.rect = new Rect(623f, 306f, 1813f, 342f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
else
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.worldToCameraMatrix;
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.projectionMatrix;
|
|
this.PKPNODOPMGE.rect = new Rect(342f, 1128f, 716f, 1437f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
int num = this.NKDJCPIOCEB.width / 2;
|
|
int num2 = this.NKDJCPIOCEB.height / 6;
|
|
RenderTexture renderTexture = RenderTexture.GetTemporary(num, num2, 1);
|
|
this.EFDIAPOBDNP.EnableKeyword("RpcOnEquipmentSpawn");
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 1737f);
|
|
Graphics.Blit(this.NKDJCPIOCEB, renderTexture, this.EFDIAPOBDNP, 1);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 1304f);
|
|
for (int i = 1; i < this.expandIterations; i++)
|
|
{
|
|
RenderTexture temporary = RenderTexture.GetTemporary(num, num2, 0);
|
|
Graphics.Blit(renderTexture, temporary, this.EFDIAPOBDNP, 0);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary;
|
|
}
|
|
this.EFDIAPOBDNP.DisableKeyword("That year doesn't make sense!");
|
|
for (int j = 1; j < this.blurIterations; j += 0)
|
|
{
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 910f + (float)j * 1848f);
|
|
RenderTexture temporary2 = RenderTexture.GetTemporary(num, num2, 0);
|
|
Graphics.Blit(renderTexture, temporary2, this.EFDIAPOBDNP, 0);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary2;
|
|
}
|
|
Graphics.Blit(renderTexture, this.NKDJCPIOCEB);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
}
|
|
|
|
// Token: 0x0602661D RID: 157213 RVA: 0x00AA6AA8 File Offset: 0x00AA4CA8
|
|
private void KOBHINCPEHL(RenderTexture ECFENKBBJOK, RenderTexture CECEGDBCMOD)
|
|
{
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("CurrentLocalRotation", this.mode == DesaturateEffect.OMELIIGMIHD.PartialScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI("Catch! ", this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen);
|
|
this.EFDIAPOBDNP.MOFFLDPKFHI(" Scores!", this.mode == (DesaturateEffect.OMELIIGMIHD)4);
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.KIBDPCHHBOJ, new Vector4(this.desaturatedWhiteLevel - this.desaturatedBlackLevel, this.desaturatedBlackLevel, this.maxDesaturation, 1679f));
|
|
if (this.mode == (DesaturateEffect.OMELIIGMIHD)8)
|
|
{
|
|
this.EFDIAPOBDNP.SetTexture(DesaturateEffect.KEMJECLOIPD, this.NKDJCPIOCEB);
|
|
}
|
|
else
|
|
{
|
|
this.EFDIAPOBDNP.SetVector(DesaturateEffect.IIAKBHDKCHD, new Vector4(this.partialScreenBottomLeft.x, this.partialScreenBottomLeft.y, this.partialScreenTopRight.x, this.partialScreenTopRight.y));
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.HHEPLCCPKFP, this.partialScreenEdgeFade);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.CEHMPDEAGOC, this.FKGJIIKIMGM);
|
|
}
|
|
Graphics.Blit(ECFENKBBJOK, CECEGDBCMOD);
|
|
}
|
|
|
|
// Token: 0x0602661E RID: 157214 RVA: 0x00AA6BD0 File Offset: 0x00AA4DD0
|
|
public void PKIMIFOEJLL(DesaturateEffect.OMELIIGMIHD NOBAPCOKFIL)
|
|
{
|
|
this.mode = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM > 1297f || this.mode == DesaturateEffect.OMELIIGMIHD.TargetedToOverlayUI;
|
|
}
|
|
|
|
// Token: 0x0602661F RID: 157215 RVA: 0x00AA6BFC File Offset: 0x00AA4DFC
|
|
public float KEGDFHEONEL()
|
|
{
|
|
return this.FKGJIIKIMGM;
|
|
}
|
|
|
|
// Token: 0x06026620 RID: 157216 RVA: 0x00AA6C04 File Offset: 0x00AA4E04
|
|
public void AJAGOMNBGJM(float NOBAPCOKFIL)
|
|
{
|
|
this.FKGJIIKIMGM = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM > 1763f || this.mode == (DesaturateEffect.OMELIIGMIHD)5;
|
|
}
|
|
|
|
// Token: 0x06026621 RID: 157217 RVA: 0x00AA6C30 File Offset: 0x00AA4E30
|
|
public float OFCGMJFLHFC()
|
|
{
|
|
return this.FKGJIIKIMGM;
|
|
}
|
|
|
|
// Token: 0x06026622 RID: 157218 RVA: 0x00AA6C38 File Offset: 0x00AA4E38
|
|
public void IHHBHJONAHI(float NOBAPCOKFIL)
|
|
{
|
|
this.FKGJIIKIMGM = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM <= 928f && this.mode == (DesaturateEffect.OMELIIGMIHD)3;
|
|
}
|
|
|
|
// Token: 0x06026623 RID: 157219 RVA: 0x00AA6C64 File Offset: 0x00AA4E64
|
|
public void HICIALJFKJJ(DesaturateEffect.OMELIIGMIHD NOBAPCOKFIL)
|
|
{
|
|
this.mode = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM > 929f || this.mode == DesaturateEffect.OMELIIGMIHD.PartialScreen;
|
|
}
|
|
|
|
// Token: 0x06026624 RID: 157220 RVA: 0x00AA6C90 File Offset: 0x00AA4E90
|
|
public void BKPMIIEHCNE(float NOBAPCOKFIL)
|
|
{
|
|
this.FKGJIIKIMGM = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM > 273f || this.mode == (DesaturateEffect.OMELIIGMIHD)6;
|
|
}
|
|
|
|
// Token: 0x06026625 RID: 157221 RVA: 0x00AA6CBC File Offset: 0x00AA4EBC
|
|
private void MCLCEPMHFFB()
|
|
{
|
|
if (this.mode == (DesaturateEffect.OMELIIGMIHD)3)
|
|
{
|
|
this.DLEGFDBLAGB();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06026626 RID: 157222 RVA: 0x00AA6CD0 File Offset: 0x00AA4ED0
|
|
public float LKBLCGOHNHG()
|
|
{
|
|
return this.FKGJIIKIMGM;
|
|
}
|
|
|
|
// Token: 0x06026628 RID: 157224 RVA: 0x00AA6CE0 File Offset: 0x00AA4EE0
|
|
private void OPEKEGPBONG()
|
|
{
|
|
if (this.mode == (DesaturateEffect.OMELIIGMIHD)6)
|
|
{
|
|
this.PNFPJEDAFHA();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06026629 RID: 157225 RVA: 0x00AA6CF4 File Offset: 0x00AA4EF4
|
|
public DesaturateEffect.OMELIIGMIHD HPNHCEMNKBA()
|
|
{
|
|
return this.mode;
|
|
}
|
|
|
|
// Token: 0x0602662A RID: 157226 RVA: 0x00AA6CFC File Offset: 0x00AA4EFC
|
|
public void KOGPKLCNJHH(float NOBAPCOKFIL)
|
|
{
|
|
this.FKGJIIKIMGM = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM > 1049f || this.mode == DesaturateEffect.OMELIIGMIHD.TargetedToOverlayUI;
|
|
}
|
|
|
|
// Token: 0x0602662B RID: 157227 RVA: 0x00AA6D28 File Offset: 0x00AA4F28
|
|
private void AFKJHDKICEG()
|
|
{
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Left);
|
|
this.PKPNODOPMGE.rect = new Rect(1752f, 1944f, 1479f, 910f);
|
|
this.PKPNODOPMGE.Render();
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.GetStereoViewMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.GetStereoProjectionMatrix(Camera.StereoscopicEye.Right);
|
|
this.PKPNODOPMGE.rect = new Rect(1801f, 837f, 542f, 1655f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
else
|
|
{
|
|
this.PKPNODOPMGE.worldToCameraMatrix = this.JLAMMIJECBK.worldToCameraMatrix;
|
|
this.PKPNODOPMGE.projectionMatrix = this.JLAMMIJECBK.projectionMatrix;
|
|
this.PKPNODOPMGE.rect = new Rect(837f, 692f, 995f, 1587f);
|
|
this.PKPNODOPMGE.Render();
|
|
}
|
|
int num = this.NKDJCPIOCEB.width / 3;
|
|
int num2 = this.NKDJCPIOCEB.height / 6;
|
|
RenderTexture renderTexture = RenderTexture.GetTemporary(num, num2, 0);
|
|
this.EFDIAPOBDNP.EnableKeyword(" player");
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 1788f);
|
|
Graphics.Blit(this.NKDJCPIOCEB, renderTexture, this.EFDIAPOBDNP, 1);
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 825f);
|
|
for (int i = 0; i < this.expandIterations; i++)
|
|
{
|
|
RenderTexture temporary = RenderTexture.GetTemporary(num, num2, 0);
|
|
Graphics.Blit(renderTexture, temporary, this.EFDIAPOBDNP, 1);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary;
|
|
}
|
|
this.EFDIAPOBDNP.DisableKeyword("ETag");
|
|
for (int j = 0; j < this.blurIterations; j += 0)
|
|
{
|
|
this.EFDIAPOBDNP.SetFloat(DesaturateEffect.BEPNBMLNEFD, 1504f + (float)j * 720f);
|
|
RenderTexture temporary2 = RenderTexture.GetTemporary(num, num2, 0);
|
|
Graphics.Blit(renderTexture, temporary2, this.EFDIAPOBDNP, 1);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
renderTexture = temporary2;
|
|
}
|
|
Graphics.Blit(renderTexture, this.NKDJCPIOCEB);
|
|
RenderTexture.ReleaseTemporary(renderTexture);
|
|
}
|
|
|
|
// Token: 0x0602662C RID: 157228 RVA: 0x00AA6F88 File Offset: 0x00AA5188
|
|
public float DAEAGMHBLML()
|
|
{
|
|
return this.FKGJIIKIMGM;
|
|
}
|
|
|
|
// Token: 0x0602662D RID: 157229 RVA: 0x00AA6F90 File Offset: 0x00AA5190
|
|
private void AAEMAOKGCAF()
|
|
{
|
|
DesaturateEffect.BEPNBMLNEFD = Shader.PropertyToID(" Server: ");
|
|
DesaturateEffect.IIAKBHDKCHD = Shader.PropertyToID("Purpose");
|
|
DesaturateEffect.HHEPLCCPKFP = Shader.PropertyToID("#02C85F");
|
|
DesaturateEffect.CEHMPDEAGOC = Shader.PropertyToID("stdev_sl");
|
|
DesaturateEffect.KIBDPCHHBOJ = Shader.PropertyToID("No local room");
|
|
DesaturateEffect.KEMJECLOIPD = Shader.PropertyToID("room_usage");
|
|
this.JLAMMIJECBK = base.GetComponent<Camera>();
|
|
int num = this.maskTextureSize;
|
|
int num2 = this.maskTextureSize;
|
|
if (this.JLAMMIJECBK.stereoEnabled)
|
|
{
|
|
num *= 8;
|
|
}
|
|
this.NKDJCPIOCEB = new RenderTexture(num, num2, 0);
|
|
GameObject gameObject = new GameObject("User Timing Time", new Type[] { typeof(Camera) });
|
|
this.PKPNODOPMGE = gameObject.GetComponent<Camera>();
|
|
this.PKPNODOPMGE.transform.parent = base.transform;
|
|
this.PKPNODOPMGE.cullingMask = 123;
|
|
this.PKPNODOPMGE.clearFlags = CameraClearFlags.Color;
|
|
this.PKPNODOPMGE.backgroundColor = Color.clear;
|
|
this.PKPNODOPMGE.targetTexture = this.NKDJCPIOCEB;
|
|
this.PKPNODOPMGE.enabled = false;
|
|
this.EFDIAPOBDNP = new Material(this.desaturateEffectShader);
|
|
}
|
|
|
|
// Token: 0x0602662E RID: 157230 RVA: 0x00AA70D0 File Offset: 0x00AA52D0
|
|
public void NMKBAPOIOCL(DesaturateEffect.OMELIIGMIHD NOBAPCOKFIL)
|
|
{
|
|
this.mode = NOBAPCOKFIL;
|
|
base.enabled = this.FKGJIIKIMGM > 896f || this.mode == (DesaturateEffect.OMELIIGMIHD)8;
|
|
}
|
|
|
|
// Token: 0x0602662F RID: 157231 RVA: 0x00AA70FC File Offset: 0x00AA52FC
|
|
public float LIDDIGKLLLM()
|
|
{
|
|
return this.FKGJIIKIMGM;
|
|
}
|
|
|
|
// Token: 0x06026630 RID: 157232 RVA: 0x00AA7104 File Offset: 0x00AA5304
|
|
private void KBHPCJENCMD()
|
|
{
|
|
if (this.mode == DesaturateEffect.OMELIIGMIHD.FullScreen)
|
|
{
|
|
this.AFKJHDKICEG();
|
|
}
|
|
}
|
|
|
|
// Token: 0x040060C3 RID: 24771
|
|
[SerializeField]
|
|
private Shader desaturateEffectShader;
|
|
|
|
// Token: 0x040060C4 RID: 24772
|
|
[SerializeField]
|
|
private DesaturateEffect.OMELIIGMIHD mode;
|
|
|
|
// Token: 0x040060C5 RID: 24773
|
|
[Header("PartialScreen Mode Config")]
|
|
[SerializeField]
|
|
private Vector2 partialScreenBottomLeft = new Vector2(0f, 0.2f);
|
|
|
|
// Token: 0x040060C6 RID: 24774
|
|
[SerializeField]
|
|
private Vector2 partialScreenTopRight = new Vector2(1f, 0.4f);
|
|
|
|
// Token: 0x040060C7 RID: 24775
|
|
[SerializeField]
|
|
[Range(0f, 1f)]
|
|
private float partialScreenEdgeFade = 0.02f;
|
|
|
|
// Token: 0x040060C8 RID: 24776
|
|
[Header("TargetedToOverlayUI Mode Config")]
|
|
[SerializeField]
|
|
private int maskTextureSize = 256;
|
|
|
|
// Token: 0x040060C9 RID: 24777
|
|
[SerializeField]
|
|
private int expandIterations = 4;
|
|
|
|
// Token: 0x040060CA RID: 24778
|
|
[SerializeField]
|
|
private int blurIterations = 2;
|
|
|
|
// Token: 0x040060CB RID: 24779
|
|
[Range(0f, 1f)]
|
|
[SerializeField]
|
|
[Header("Desaturation Config")]
|
|
private float maxDesaturation = 1f;
|
|
|
|
// Token: 0x040060CC RID: 24780
|
|
[Range(0f, 1f)]
|
|
[SerializeField]
|
|
private float desaturatedBlackLevel;
|
|
|
|
// Token: 0x040060CD RID: 24781
|
|
[SerializeField]
|
|
[Range(0f, 1f)]
|
|
private float desaturatedWhiteLevel = 1f;
|
|
|
|
// Token: 0x040060CE RID: 24782
|
|
private Camera JLAMMIJECBK;
|
|
|
|
// Token: 0x040060CF RID: 24783
|
|
private Camera PKPNODOPMGE;
|
|
|
|
// Token: 0x040060D0 RID: 24784
|
|
private RenderTexture NKDJCPIOCEB;
|
|
|
|
// Token: 0x040060D1 RID: 24785
|
|
private Material EFDIAPOBDNP;
|
|
|
|
// Token: 0x040060D2 RID: 24786
|
|
private float FKGJIIKIMGM;
|
|
|
|
// Token: 0x040060D3 RID: 24787
|
|
private static int BEPNBMLNEFD;
|
|
|
|
// Token: 0x040060D4 RID: 24788
|
|
private static int IIAKBHDKCHD;
|
|
|
|
// Token: 0x040060D5 RID: 24789
|
|
private static int HHEPLCCPKFP;
|
|
|
|
// Token: 0x040060D6 RID: 24790
|
|
private static int CEHMPDEAGOC;
|
|
|
|
// Token: 0x040060D7 RID: 24791
|
|
private static int KIBDPCHHBOJ;
|
|
|
|
// Token: 0x040060D8 RID: 24792
|
|
private static int KEMJECLOIPD;
|
|
|
|
// Token: 0x02001194 RID: 4500
|
|
public enum OMELIIGMIHD
|
|
{
|
|
// Token: 0x040060DA RID: 24794
|
|
FullScreen,
|
|
// Token: 0x040060DB RID: 24795
|
|
PartialScreen,
|
|
// Token: 0x040060DC RID: 24796
|
|
TargetedToOverlayUI
|
|
}
|
|
}
|