scripts
This commit is contained in:
@@ -0,0 +1,300 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
|
||||
namespace RecRoom.Core.Rendering
|
||||
{
|
||||
// Token: 0x02002824 RID: 10276
|
||||
[Token(Token = "0x2002824")]
|
||||
[Serializable]
|
||||
[StructLayout(3)]
|
||||
public class EnvironmentLightingSettings
|
||||
{
|
||||
// Token: 0x06012037 RID: 73783 RVA: 0x0044DFF8 File Offset: 0x0044C1F8
|
||||
[Token(Token = "0x6012037")]
|
||||
[Address(RVA = "0x19A0930", Offset = "0x199F330", VA = "0x1819A0930")]
|
||||
public void ECPHANMBDHA()
|
||||
{
|
||||
RenderSettings.ambientEquatorColor = this.ambientEquatorColor;
|
||||
RenderSettings.ambientGroundColor = this.ambientGroundColor;
|
||||
RenderSettings.ambientIntensity = this.ambientIntensity;
|
||||
RenderSettings.ambientLight = this.ambientLight;
|
||||
RenderSettings.ambientMode = this.ambientMode;
|
||||
SphericalHarmonicsL2 sphericalHarmonicsL = this.ambientProbe;
|
||||
float shb = this.ambientProbe.shb8;
|
||||
float shr = this.ambientProbe.shr4;
|
||||
float shr2 = this.ambientProbe.shr8;
|
||||
float shg = this.ambientProbe.shg3;
|
||||
float shg2 = this.ambientProbe.shg7;
|
||||
float shb2 = this.ambientProbe.shb2;
|
||||
RenderSettings.ambientProbe = sphericalHarmonicsL;
|
||||
RenderSettings.ambientSkyColor = this.ambientSkyColor;
|
||||
RenderSettings.customReflection = this.customReflection;
|
||||
RenderSettings.defaultReflectionMode = this.defaultReflectionMode;
|
||||
RenderSettings.defaultReflectionResolution = this.defaultReflectionResolution;
|
||||
RenderSettings.reflectionBounces = this.reflectionBounces;
|
||||
RenderSettings.reflectionIntensity = this.reflectionIntensity;
|
||||
RenderSettings.skybox = this.skybox;
|
||||
RenderSettings.sun = this.sun;
|
||||
if (Application.isPlaying)
|
||||
{
|
||||
Scheduler instance = SingletonMonoBehaviour.Instance;
|
||||
EnvironmentLightingSettings.ADDHFGBEOEM addhfgbeoem;
|
||||
addhfgbeoem.System.IDisposable.Dispose();
|
||||
addhfgbeoem.<>1__state = (int)((ulong)0L);
|
||||
int num = 0;
|
||||
ISchedulerPromise schedulerPromise = instance.Run(num, addhfgbeoem);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06012038 RID: 73784 RVA: 0x0044E128 File Offset: 0x0044C328
|
||||
[Token(Token = "0x6012038")]
|
||||
[Address(RVA = "0x19A0BB0", Offset = "0x199F5B0", VA = "0x1819A0BB0")]
|
||||
public void GFAOAIAFMEH()
|
||||
{
|
||||
Color color = RenderSettings.ambientEquatorColor;
|
||||
Color color2 = RenderSettings.ambientGroundColor;
|
||||
float num = RenderSettings.ambientIntensity;
|
||||
this.ambientIntensity = num;
|
||||
Color color3 = RenderSettings.ambientLight;
|
||||
AmbientMode ambientMode = RenderSettings.ambientMode;
|
||||
this.ambientMode = ambientMode;
|
||||
SphericalHarmonicsL2 sphericalHarmonicsL = RenderSettings.ambientProbe;
|
||||
float shr = sphericalHarmonicsL.shr4;
|
||||
this.ambientProbe.shr4 = shr;
|
||||
float shr2 = sphericalHarmonicsL.shr8;
|
||||
this.ambientProbe.shr8 = shr2;
|
||||
float shg = sphericalHarmonicsL.shg3;
|
||||
this.ambientProbe.shg3 = shg;
|
||||
float shg2 = sphericalHarmonicsL.shg7;
|
||||
this.ambientProbe.shg7 = shg2;
|
||||
float shb = sphericalHarmonicsL.shb2;
|
||||
this.ambientProbe.shb2 = shb;
|
||||
float shb2 = sphericalHarmonicsL.shb8;
|
||||
this.ambientProbe.shb8 = shb2;
|
||||
Color color4 = RenderSettings.ambientSkyColor;
|
||||
Cubemap cubemap = RenderSettings.customReflection;
|
||||
this.customReflection = cubemap;
|
||||
DefaultReflectionMode defaultReflectionMode = RenderSettings.defaultReflectionMode;
|
||||
this.defaultReflectionMode = defaultReflectionMode;
|
||||
int num2 = RenderSettings.defaultReflectionResolution;
|
||||
this.defaultReflectionResolution = num2;
|
||||
int num3 = RenderSettings.reflectionBounces;
|
||||
this.reflectionBounces = num3;
|
||||
float num4 = RenderSettings.reflectionIntensity;
|
||||
this.reflectionIntensity = num4;
|
||||
Material material = RenderSettings.skybox;
|
||||
this.skybox = material;
|
||||
Light light = RenderSettings.sun;
|
||||
this.sun = light;
|
||||
}
|
||||
|
||||
// Token: 0x06012039 RID: 73785 RVA: 0x0044E27C File Offset: 0x0044C47C
|
||||
[Token(Token = "0x6012039")]
|
||||
[Address(RVA = "0x19A0CF0", Offset = "0x199F6F0", VA = "0x1819A0CF0")]
|
||||
public static void OBFPLLENOPL()
|
||||
{
|
||||
EnvironmentLightingSettings environmentLightingSettings = EnvironmentLightingSettings.defaultSceneSettings;
|
||||
RenderSettings.ambientEquatorColor = environmentLightingSettings.ambientEquatorColor;
|
||||
RenderSettings.ambientGroundColor = environmentLightingSettings.ambientGroundColor;
|
||||
RenderSettings.ambientIntensity = environmentLightingSettings.ambientIntensity;
|
||||
RenderSettings.ambientLight = environmentLightingSettings.ambientLight;
|
||||
RenderSettings.ambientMode = environmentLightingSettings.ambientMode;
|
||||
SphericalHarmonicsL2 sphericalHarmonicsL = environmentLightingSettings.ambientProbe;
|
||||
float shb = environmentLightingSettings.ambientProbe.shb8;
|
||||
float shr = environmentLightingSettings.ambientProbe.shr4;
|
||||
float shr2 = environmentLightingSettings.ambientProbe.shr8;
|
||||
float shg = environmentLightingSettings.ambientProbe.shg3;
|
||||
float shg2 = environmentLightingSettings.ambientProbe.shg7;
|
||||
float shb2 = environmentLightingSettings.ambientProbe.shb2;
|
||||
RenderSettings.ambientProbe = sphericalHarmonicsL;
|
||||
RenderSettings.ambientSkyColor = environmentLightingSettings.ambientSkyColor;
|
||||
RenderSettings.customReflection = environmentLightingSettings.customReflection;
|
||||
RenderSettings.defaultReflectionMode = environmentLightingSettings.defaultReflectionMode;
|
||||
RenderSettings.defaultReflectionResolution = environmentLightingSettings.defaultReflectionResolution;
|
||||
RenderSettings.reflectionBounces = environmentLightingSettings.reflectionBounces;
|
||||
RenderSettings.reflectionIntensity = environmentLightingSettings.reflectionIntensity;
|
||||
RenderSettings.skybox = environmentLightingSettings.skybox;
|
||||
RenderSettings.sun = environmentLightingSettings.sun;
|
||||
if (Application.isPlaying)
|
||||
{
|
||||
Scheduler instance = SingletonMonoBehaviour.Instance;
|
||||
EnvironmentLightingSettings.ADDHFGBEOEM addhfgbeoem;
|
||||
addhfgbeoem.System.IDisposable.Dispose();
|
||||
addhfgbeoem.<>1__state = (int)((ulong)0L);
|
||||
int num = 0;
|
||||
ISchedulerPromise schedulerPromise = instance.Run(num, addhfgbeoem);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0601203A RID: 73786 RVA: 0x0044E3B0 File Offset: 0x0044C5B0
|
||||
[Token(Token = "0x601203A")]
|
||||
[Address(RVA = "0x19A07A0", Offset = "0x199F1A0", VA = "0x1819A07A0")]
|
||||
public static void BAAAFCLCPIK()
|
||||
{
|
||||
EnvironmentLightingSettings environmentLightingSettings = EnvironmentLightingSettings.defaultSceneSettings;
|
||||
Color color = RenderSettings.ambientEquatorColor;
|
||||
Color color2 = RenderSettings.ambientGroundColor;
|
||||
float num = RenderSettings.ambientIntensity;
|
||||
environmentLightingSettings.ambientIntensity = num;
|
||||
Color color3 = RenderSettings.ambientLight;
|
||||
AmbientMode ambientMode = RenderSettings.ambientMode;
|
||||
environmentLightingSettings.ambientMode = ambientMode;
|
||||
SphericalHarmonicsL2 sphericalHarmonicsL = RenderSettings.ambientProbe;
|
||||
float shr = sphericalHarmonicsL.shr4;
|
||||
environmentLightingSettings.ambientProbe.shr4 = shr;
|
||||
float shr2 = sphericalHarmonicsL.shr8;
|
||||
environmentLightingSettings.ambientProbe.shr8 = shr2;
|
||||
float shg = sphericalHarmonicsL.shg3;
|
||||
environmentLightingSettings.ambientProbe.shg3 = shg;
|
||||
float shg2 = sphericalHarmonicsL.shg7;
|
||||
environmentLightingSettings.ambientProbe.shg7 = shg2;
|
||||
float shb = sphericalHarmonicsL.shb2;
|
||||
environmentLightingSettings.ambientProbe.shb2 = shb;
|
||||
float shb2 = sphericalHarmonicsL.shb8;
|
||||
environmentLightingSettings.ambientProbe.shb8 = shb2;
|
||||
Color color4 = RenderSettings.ambientSkyColor;
|
||||
Cubemap cubemap = RenderSettings.customReflection;
|
||||
environmentLightingSettings.customReflection = cubemap;
|
||||
DefaultReflectionMode defaultReflectionMode = RenderSettings.defaultReflectionMode;
|
||||
environmentLightingSettings.defaultReflectionMode = defaultReflectionMode;
|
||||
int num2 = RenderSettings.defaultReflectionResolution;
|
||||
environmentLightingSettings.defaultReflectionResolution = num2;
|
||||
int num3 = RenderSettings.reflectionBounces;
|
||||
environmentLightingSettings.reflectionBounces = num3;
|
||||
float num4 = RenderSettings.reflectionIntensity;
|
||||
environmentLightingSettings.reflectionIntensity = num4;
|
||||
Material material = RenderSettings.skybox;
|
||||
environmentLightingSettings.skybox = material;
|
||||
Light light = RenderSettings.sun;
|
||||
environmentLightingSettings.sun = light;
|
||||
}
|
||||
|
||||
// Token: 0x0601203B RID: 73787 RVA: 0x0044E510 File Offset: 0x0044C710
|
||||
[Token(Token = "0x601203B")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
public EnvironmentLightingSettings()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0601203D RID: 73789 RVA: 0x0044E53C File Offset: 0x0044C73C
|
||||
[Token(Token = "0x601203D")]
|
||||
[Address(RVA = "0x19A0B60", Offset = "0x199F560", VA = "0x1819A0B60")]
|
||||
[CompilerGenerated]
|
||||
internal static IEnumerator<ISchedule> EIADIANJPFI()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0601203D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<RecRoom.Core.ISchedule> RecRoom.Core.Rendering.EnvironmentLightingSettings::EIADIANJPFI()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
call:void(ADDHFGBEOEM::System.IDisposable.Dispose, ldloc:ADDHFGBEOEM(var_0))
|
||||
stfld:int32(ADDHFGBEOEM::<>1__state, ldloc:ADDHFGBEOEM(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0400C0A5 RID: 49317
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400C0A5")]
|
||||
[SerializeField]
|
||||
private Material skybox;
|
||||
|
||||
// Token: 0x0400C0A6 RID: 49318
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400C0A6")]
|
||||
[SerializeField]
|
||||
private Light sun;
|
||||
|
||||
// Token: 0x0400C0A7 RID: 49319
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400C0A7")]
|
||||
[SerializeField]
|
||||
private AmbientMode ambientMode;
|
||||
|
||||
// Token: 0x0400C0A8 RID: 49320
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x24")]
|
||||
[Token(Token = "0x400C0A8")]
|
||||
[SerializeField]
|
||||
private SphericalHarmonicsL2 ambientProbe;
|
||||
|
||||
// Token: 0x0400C0A9 RID: 49321
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x90")]
|
||||
[Token(Token = "0x400C0A9")]
|
||||
[SerializeField]
|
||||
private float ambientIntensity;
|
||||
|
||||
// Token: 0x0400C0AA RID: 49322
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x94")]
|
||||
[Token(Token = "0x400C0AA")]
|
||||
[SerializeField]
|
||||
private Color ambientSkyColor;
|
||||
|
||||
// Token: 0x0400C0AB RID: 49323
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0xA4")]
|
||||
[Token(Token = "0x400C0AB")]
|
||||
[SerializeField]
|
||||
private Color ambientEquatorColor;
|
||||
|
||||
// Token: 0x0400C0AC RID: 49324
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0xB4")]
|
||||
[Token(Token = "0x400C0AC")]
|
||||
[SerializeField]
|
||||
private Color ambientGroundColor;
|
||||
|
||||
// Token: 0x0400C0AD RID: 49325
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0xC4")]
|
||||
[Token(Token = "0x400C0AD")]
|
||||
[SerializeField]
|
||||
private Color ambientLight;
|
||||
|
||||
// Token: 0x0400C0AE RID: 49326
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0xD4")]
|
||||
[Token(Token = "0x400C0AE")]
|
||||
[SerializeField]
|
||||
private DefaultReflectionMode defaultReflectionMode;
|
||||
|
||||
// Token: 0x0400C0AF RID: 49327
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0xD8")]
|
||||
[Token(Token = "0x400C0AF")]
|
||||
[SerializeField]
|
||||
private int defaultReflectionResolution;
|
||||
|
||||
// Token: 0x0400C0B0 RID: 49328
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0xE0")]
|
||||
[Token(Token = "0x400C0B0")]
|
||||
[SerializeField]
|
||||
private Cubemap customReflection;
|
||||
|
||||
// Token: 0x0400C0B1 RID: 49329
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0xE8")]
|
||||
[Token(Token = "0x400C0B1")]
|
||||
[SerializeField]
|
||||
private float reflectionIntensity;
|
||||
|
||||
// Token: 0x0400C0B2 RID: 49330
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0xEC")]
|
||||
[Token(Token = "0x400C0B2")]
|
||||
[SerializeField]
|
||||
private int reflectionBounces;
|
||||
|
||||
// Token: 0x0400C0B3 RID: 49331
|
||||
[Token(Token = "0x400C0B3")]
|
||||
private static EnvironmentLightingSettings defaultSceneSettings = new EnvironmentLightingSettings();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user