333 lines
12 KiB
C#
333 lines
12 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine.Rendering;
|
|
|
|
namespace UnityEngine.PostProcessing
|
|
{
|
|
// Token: 0x02000576 RID: 1398
|
|
[Token(Token = "0x2000576")]
|
|
[ImageEffectAllowedInSceneView]
|
|
[DisallowMultipleComponent]
|
|
[ExecuteInEditMode]
|
|
[RequireComponent(typeof(Camera))]
|
|
[AddComponentMenu("Effects/Post-Processing Behaviour", -1)]
|
|
public class PostProcessingBehaviour : MonoBehaviour
|
|
{
|
|
// Token: 0x06002E14 RID: 11796 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002E14")]
|
|
[Address(RVA = "0xCAE180", Offset = "0xCAC980", VA = "0x180CAE180")]
|
|
private void OnEnable()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002E15 RID: 11797 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002E15")]
|
|
[Address(RVA = "0xCAECD0", Offset = "0xCAD4D0", VA = "0x180CAECD0")]
|
|
private void OnPreCull()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002E16 RID: 11798 RVA: 0x0006251C File Offset: 0x0006071C
|
|
[Token(Token = "0x6002E16")]
|
|
[Address(RVA = "0xCAF390", Offset = "0xCADB90", VA = "0x180CAF390")]
|
|
private void OnPreRender()
|
|
{
|
|
PostProcessingProfile postProcessingProfile = this.profile;
|
|
int num = 0;
|
|
if (!(postProcessingProfile == num))
|
|
{
|
|
BuiltinDebugViewsComponent debugViews = this.m_DebugViews;
|
|
this.TryExecuteCommandBuffer<BuiltinDebugViewsModel>(debugViews);
|
|
AmbientOcclusionComponent ambientOcclusion = this.m_AmbientOcclusion;
|
|
this.TryExecuteCommandBuffer<AmbientOcclusionModel>(ambientOcclusion);
|
|
ScreenSpaceReflectionComponent screenSpaceReflection = this.m_ScreenSpaceReflection;
|
|
this.TryExecuteCommandBuffer<ScreenSpaceReflectionModel>(screenSpaceReflection);
|
|
FogComponent fogComponent = this.m_FogComponent;
|
|
this.TryExecuteCommandBuffer<FogModel>(fogComponent);
|
|
if (!this.m_RenderingInSceneView)
|
|
{
|
|
MotionBlurComponent motionBlur = this.m_MotionBlur;
|
|
this.TryExecuteCommandBuffer<MotionBlurModel>(motionBlur);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002E17 RID: 11799 RVA: 0x00062594 File Offset: 0x00060794
|
|
[Token(Token = "0x6002E17")]
|
|
[Address(RVA = "0xCAEBD0", Offset = "0xCAD3D0", VA = "0x180CAEBD0")]
|
|
private void OnPostRender()
|
|
{
|
|
PostProcessingProfile postProcessingProfile = this.profile;
|
|
int num = 0;
|
|
if (!(postProcessingProfile == num))
|
|
{
|
|
Camera camera = this.m_Camera;
|
|
int num2 = 0;
|
|
bool flag = camera == num2;
|
|
if (!flag && this.m_RenderingInSceneView == flag && this.m_Taa.active && !this.profile.debugViews.willInterrupt)
|
|
{
|
|
this.m_Context.camera.ResetProjectionMatrix();
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002E18 RID: 11800 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002E18")]
|
|
[Address(RVA = "0xCAF4B0", Offset = "0xCADCB0", VA = "0x180CAF4B0")]
|
|
private void OnRenderImage(RenderTexture source, RenderTexture destination)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002E19 RID: 11801 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002E19")]
|
|
[Address(RVA = "0xCAE9D0", Offset = "0xCAD1D0", VA = "0x180CAE9D0")]
|
|
private void OnGUI()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002E1A RID: 11802 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002E1A")]
|
|
[Address(RVA = "0xCADF50", Offset = "0xCAC750", VA = "0x180CADF50")]
|
|
private void OnDisable()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002E1B RID: 11803 RVA: 0x0006260C File Offset: 0x0006080C
|
|
[Token(Token = "0x6002E1B")]
|
|
[Address(RVA = "0xCAFAF0", Offset = "0xCAE2F0", VA = "0x180CAFAF0")]
|
|
public void ResetTemporalEffects()
|
|
{
|
|
this.m_Taa.ResetHistory();
|
|
this.m_MotionBlur.ResetHistory();
|
|
this.m_EyeAdaptation.ResetHistory();
|
|
}
|
|
|
|
// Token: 0x06002E1C RID: 11804 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002E1C")]
|
|
[Address(RVA = "0xCADAB0", Offset = "0xCAC2B0", VA = "0x180CADAB0")]
|
|
private void CheckObservers()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002E1D RID: 11805 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002E1D")]
|
|
[Address(RVA = "0xCADE30", Offset = "0xCAC630", VA = "0x180CADE30")]
|
|
private void DisableComponents()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002E1E RID: 11806 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002E1E")]
|
|
[Address(RVA = "0xBA9D90", Offset = "0xBA8590", VA = "0x180BA9D90")]
|
|
private CommandBuffer AddCommandBuffer<T>(CameraEvent evt, string name) where T : PostProcessingModel
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002E1F RID: 11807 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002E1F")]
|
|
[Address(RVA = "0xBAA070", Offset = "0xBA8870", VA = "0x180BAA070")]
|
|
private void RemoveCommandBuffer<T>() where T : PostProcessingModel
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002E20 RID: 11808 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002E20")]
|
|
[Address(RVA = "0xBA9F50", Offset = "0xBA8750", VA = "0x180BA9F50")]
|
|
private CommandBuffer GetCommandBuffer<T>(CameraEvent evt, string name) where T : PostProcessingModel
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002E21 RID: 11809 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002E21")]
|
|
[Address(RVA = "0xBAA180", Offset = "0xBA8980", VA = "0x180BAA180")]
|
|
private void TryExecuteCommandBuffer<T>(PostProcessingComponentCommandBuffer cpp2il__autoParamName__idx_0) where T : PostProcessingModel
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002E22 RID: 11810 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002E22")]
|
|
[Address(RVA = "0xBAA270", Offset = "0xBA8A70", VA = "0x180BAA270")]
|
|
private bool TryPrepareUberImageEffect<T>(PostProcessingComponentRenderTexture<T> component, Material material) where T : PostProcessingModel
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002E23 RID: 11811 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002E23")]
|
|
[Address(RVA = "0xBA9EF0", Offset = "0xBA86F0", VA = "0x180BA9EF0")]
|
|
private T AddComponent<T>(T component) where T : PostProcessingComponentBase
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002E24 RID: 11812 RVA: 0x00062640 File Offset: 0x00060840
|
|
[Token(Token = "0x6002E24")]
|
|
[Address(RVA = "0xCAFB40", Offset = "0xCAE340", VA = "0x180CAFB40")]
|
|
public PostProcessingBehaviour()
|
|
{
|
|
List<PostProcessingComponentBase> list = new List();
|
|
this.m_ComponentsToEnable = list;
|
|
List<PostProcessingComponentBase> list2 = new List();
|
|
this.m_ComponentsToDisable = list2;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x0400370A RID: 14090
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400370A")]
|
|
public PostProcessingProfile profile;
|
|
|
|
// Token: 0x0400370B RID: 14091
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400370B")]
|
|
public Func<Vector2, Matrix4x4> jitteredMatrixFunc;
|
|
|
|
// Token: 0x0400370C RID: 14092
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400370C")]
|
|
private Dictionary<Type, KeyValuePair<CameraEvent, CommandBuffer>> m_CommandBuffers;
|
|
|
|
// Token: 0x0400370D RID: 14093
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400370D")]
|
|
private List<PostProcessingComponentBase> m_Components;
|
|
|
|
// Token: 0x0400370E RID: 14094
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x400370E")]
|
|
private Dictionary<PostProcessingComponentBase, bool> m_ComponentStates;
|
|
|
|
// Token: 0x0400370F RID: 14095
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x400370F")]
|
|
private MaterialFactory m_MaterialFactory;
|
|
|
|
// Token: 0x04003710 RID: 14096
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4003710")]
|
|
private RenderTextureFactory m_RenderTextureFactory;
|
|
|
|
// Token: 0x04003711 RID: 14097
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4003711")]
|
|
private PostProcessingContext m_Context;
|
|
|
|
// Token: 0x04003712 RID: 14098
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x4003712")]
|
|
private Camera m_Camera;
|
|
|
|
// Token: 0x04003713 RID: 14099
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x4003713")]
|
|
private PostProcessingProfile m_PreviousProfile;
|
|
|
|
// Token: 0x04003714 RID: 14100
|
|
[FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x4003714")]
|
|
private bool m_RenderingInSceneView;
|
|
|
|
// Token: 0x04003715 RID: 14101
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x4003715")]
|
|
private BuiltinDebugViewsComponent m_DebugViews;
|
|
|
|
// Token: 0x04003716 RID: 14102
|
|
[FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x4003716")]
|
|
private AmbientOcclusionComponent m_AmbientOcclusion;
|
|
|
|
// Token: 0x04003717 RID: 14103
|
|
[FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x4003717")]
|
|
private ScreenSpaceReflectionComponent m_ScreenSpaceReflection;
|
|
|
|
// Token: 0x04003718 RID: 14104
|
|
[FieldOffset(Offset = "0x88")]
|
|
[Token(Token = "0x4003718")]
|
|
private FogComponent m_FogComponent;
|
|
|
|
// Token: 0x04003719 RID: 14105
|
|
[FieldOffset(Offset = "0x90")]
|
|
[Token(Token = "0x4003719")]
|
|
private MotionBlurComponent m_MotionBlur;
|
|
|
|
// Token: 0x0400371A RID: 14106
|
|
[FieldOffset(Offset = "0x98")]
|
|
[Token(Token = "0x400371A")]
|
|
private TaaComponent m_Taa;
|
|
|
|
// Token: 0x0400371B RID: 14107
|
|
[FieldOffset(Offset = "0xA0")]
|
|
[Token(Token = "0x400371B")]
|
|
private EyeAdaptationComponent m_EyeAdaptation;
|
|
|
|
// Token: 0x0400371C RID: 14108
|
|
[FieldOffset(Offset = "0xA8")]
|
|
[Token(Token = "0x400371C")]
|
|
private DepthOfFieldComponent m_DepthOfField;
|
|
|
|
// Token: 0x0400371D RID: 14109
|
|
[FieldOffset(Offset = "0xB0")]
|
|
[Token(Token = "0x400371D")]
|
|
private BloomComponent m_Bloom;
|
|
|
|
// Token: 0x0400371E RID: 14110
|
|
[FieldOffset(Offset = "0xB8")]
|
|
[Token(Token = "0x400371E")]
|
|
private ChromaticAberrationComponent m_ChromaticAberration;
|
|
|
|
// Token: 0x0400371F RID: 14111
|
|
[FieldOffset(Offset = "0xC0")]
|
|
[Token(Token = "0x400371F")]
|
|
private ColorGradingComponent m_ColorGrading;
|
|
|
|
// Token: 0x04003720 RID: 14112
|
|
[FieldOffset(Offset = "0xC8")]
|
|
[Token(Token = "0x4003720")]
|
|
private UserLutComponent m_UserLut;
|
|
|
|
// Token: 0x04003721 RID: 14113
|
|
[FieldOffset(Offset = "0xD0")]
|
|
[Token(Token = "0x4003721")]
|
|
private GrainComponent m_Grain;
|
|
|
|
// Token: 0x04003722 RID: 14114
|
|
[FieldOffset(Offset = "0xD8")]
|
|
[Token(Token = "0x4003722")]
|
|
private VignetteComponent m_Vignette;
|
|
|
|
// Token: 0x04003723 RID: 14115
|
|
[FieldOffset(Offset = "0xE0")]
|
|
[Token(Token = "0x4003723")]
|
|
private DitheringComponent m_Dithering;
|
|
|
|
// Token: 0x04003724 RID: 14116
|
|
[FieldOffset(Offset = "0xE8")]
|
|
[Token(Token = "0x4003724")]
|
|
private FxaaComponent m_Fxaa;
|
|
|
|
// Token: 0x04003725 RID: 14117
|
|
[FieldOffset(Offset = "0xF0")]
|
|
[Token(Token = "0x4003725")]
|
|
private List<PostProcessingComponentBase> m_ComponentsToEnable;
|
|
|
|
// Token: 0x04003726 RID: 14118
|
|
[FieldOffset(Offset = "0xF8")]
|
|
[Token(Token = "0x4003726")]
|
|
private List<PostProcessingComponentBase> m_ComponentsToDisable;
|
|
}
|
|
}
|