Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

299 lines
13 KiB
C#

using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
using UnityEngine;
using UnityEngine.Rendering;
namespace RecRoom.Core.Rendering
{
// Token: 0x02002E12 RID: 11794
[Token(Token = "0x2002E12")]
[Serializable]
public class EnvironmentLightingSettings
{
// Token: 0x06013F15 RID: 81685 RVA: 0x0049E2D8 File Offset: 0x0049C4D8
[Token(Token = "0x6013F15")]
[Address(RVA = "0x1DECCA0", Offset = "0x1DEBCA0", VA = "0x181DECCA0")]
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.ONCPNMDGGKG;
EnvironmentLightingSettings.ADDHFGBEOEM addhfgbeoem;
addhfgbeoem.System.IDisposable.Dispose();
addhfgbeoem.<>1__state = (int)((ulong)0L);
int num = 0;
KFBABPAPIMB kfbabpapimb = instance.Run(num, addhfgbeoem);
}
}
// Token: 0x06013F16 RID: 81686 RVA: 0x0049E408 File Offset: 0x0049C608
[Token(Token = "0x6013F16")]
[Address(RVA = "0x1DECF20", Offset = "0x1DEBF20", VA = "0x181DECF20")]
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: 0x06013F17 RID: 81687 RVA: 0x0049E55C File Offset: 0x0049C75C
[Token(Token = "0x6013F17")]
[Address(RVA = "0x1DED060", Offset = "0x1DEC060", VA = "0x181DED060")]
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.ONCPNMDGGKG;
EnvironmentLightingSettings.ADDHFGBEOEM addhfgbeoem;
addhfgbeoem.System.IDisposable.Dispose();
addhfgbeoem.<>1__state = (int)((ulong)0L);
int num = 0;
KFBABPAPIMB kfbabpapimb = instance.Run(num, addhfgbeoem);
}
}
// Token: 0x06013F18 RID: 81688 RVA: 0x0049E690 File Offset: 0x0049C890
[Token(Token = "0x6013F18")]
[Address(RVA = "0x1DECB10", Offset = "0x1DEBB10", VA = "0x181DECB10")]
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: 0x06013F19 RID: 81689 RVA: 0x0049E7F0 File Offset: 0x0049C9F0
[Token(Token = "0x6013F19")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
public EnvironmentLightingSettings()
{
}
// Token: 0x06013F1B RID: 81691 RVA: 0x0049E81C File Offset: 0x0049CA1C
[Token(Token = "0x6013F1B")]
[Address(RVA = "0x1DECED0", Offset = "0x1DEBED0", VA = "0x181DECED0")]
[CompilerGenerated]
internal static IEnumerator<KENFJGFMIPM> EIADIANJPFI()
{
/*
An exception occurred when decompiling this method (06013F1B)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<KENFJGFMIPM> 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: 0x0400CEAD RID: 52909
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400CEAD")]
[SerializeField]
private Material skybox;
// Token: 0x0400CEAE RID: 52910
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400CEAE")]
[SerializeField]
private Light sun;
// Token: 0x0400CEAF RID: 52911
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400CEAF")]
[SerializeField]
private AmbientMode ambientMode;
// Token: 0x0400CEB0 RID: 52912
[FieldOffset(Offset = "0x24")]
[Token(Token = "0x400CEB0")]
[SerializeField]
private SphericalHarmonicsL2 ambientProbe;
// Token: 0x0400CEB1 RID: 52913
[FieldOffset(Offset = "0x90")]
[Token(Token = "0x400CEB1")]
[SerializeField]
private float ambientIntensity;
// Token: 0x0400CEB2 RID: 52914
[FieldOffset(Offset = "0x94")]
[Token(Token = "0x400CEB2")]
[SerializeField]
private Color ambientSkyColor;
// Token: 0x0400CEB3 RID: 52915
[FieldOffset(Offset = "0xA4")]
[Token(Token = "0x400CEB3")]
[SerializeField]
private Color ambientEquatorColor;
// Token: 0x0400CEB4 RID: 52916
[FieldOffset(Offset = "0xB4")]
[Token(Token = "0x400CEB4")]
[SerializeField]
private Color ambientGroundColor;
// Token: 0x0400CEB5 RID: 52917
[FieldOffset(Offset = "0xC4")]
[Token(Token = "0x400CEB5")]
[SerializeField]
private Color ambientLight;
// Token: 0x0400CEB6 RID: 52918
[FieldOffset(Offset = "0xD4")]
[Token(Token = "0x400CEB6")]
[SerializeField]
private DefaultReflectionMode defaultReflectionMode;
// Token: 0x0400CEB7 RID: 52919
[FieldOffset(Offset = "0xD8")]
[Token(Token = "0x400CEB7")]
[SerializeField]
private int defaultReflectionResolution;
// Token: 0x0400CEB8 RID: 52920
[FieldOffset(Offset = "0xE0")]
[Token(Token = "0x400CEB8")]
[SerializeField]
private Cubemap customReflection;
// Token: 0x0400CEB9 RID: 52921
[FieldOffset(Offset = "0xE8")]
[Token(Token = "0x400CEB9")]
[SerializeField]
private float reflectionIntensity;
// Token: 0x0400CEBA RID: 52922
[FieldOffset(Offset = "0xEC")]
[Token(Token = "0x400CEBA")]
[SerializeField]
private int reflectionBounces;
// Token: 0x0400CEBB RID: 52923
[Token(Token = "0x400CEBB")]
private static EnvironmentLightingSettings defaultSceneSettings = new EnvironmentLightingSettings();
}
}