using System; using Cpp2IlInjected; using UnityEngine; namespace UnityStandardAssets.ImageEffects { // Token: 0x020005CD RID: 1485 [Token(Token = "0x20005CD")] [ExecuteInEditMode] [RequireComponent(typeof(Camera))] [AddComponentMenu("Image Effects/Rendering/Screen Space Ambient Obscurance")] internal class ScreenSpaceAmbientObscurance : PostEffectsBase { // Token: 0x06002F7A RID: 12154 RVA: 0x00064F44 File Offset: 0x00063144 [Token(Token = "0x6002F7A")] [Address(RVA = "0x47CDF0", Offset = "0x47B5F0", VA = "0x18047CDF0", Slot = "4")] public override bool CheckResources() { bool flag = base.CheckSupport(true); Material material = this.aoMaterial; Shader shader = this.aoShader; Material material2 = base.CheckShaderAndCreateMaterial(shader, material); this.aoMaterial = material2; bool isSupported = this.isSupported; if (!isSupported) { base.ReportAutoDisable(); } return isSupported; } // Token: 0x06002F7B RID: 12155 RVA: 0x00064F8C File Offset: 0x0006318C [Token(Token = "0x6002F7B")] [Address(RVA = "0x47CE50", Offset = "0x47B650", VA = "0x18047CE50")] private void OnDisable() { /* An exception occurred when decompiling this method (06002F7B) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void UnityStandardAssets.ImageEffects.ScreenSpaceAmbientObscurance::OnDisable() ---> System.Exception: Basic block has to end with unconditional control flow. {; IL_19:; stfld:Material(ScreenSpaceAmbientObscurance::aoMaterial, ldloc:ScreenSpaceAmbientObscurance(this), conv.u8:uint64[exp:Material](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 1810 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 344 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 1618 */; } // Token: 0x06002F7C RID: 12156 RVA: 0x000020D3 File Offset: 0x000002D3 [Token(Token = "0x6002F7C")] [Address(RVA = "0x47CF00", Offset = "0x47B700", VA = "0x18047CF00")] [ImageEffectOpaque] private void OnRenderImage(RenderTexture source, RenderTexture destination) { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x06002F7D RID: 12157 RVA: 0x00064FBC File Offset: 0x000631BC [Token(Token = "0x6002F7D")] [Address(RVA = "0x47D8B0", Offset = "0x47C0B0", VA = "0x18047D8B0")] public ScreenSpaceAmbientObscurance() { } // Token: 0x04003970 RID: 14704 [FieldOffset(Offset = "0x28")] [Token(Token = "0x4003970")] [Range(0f, 3f)] public float intensity = 0.5f; // Token: 0x04003971 RID: 14705 [FieldOffset(Offset = "0x2C")] [Token(Token = "0x4003971")] [Range(0.1f, 3f)] public float radius = 0.2f; // Token: 0x04003972 RID: 14706 [FieldOffset(Offset = "0x30")] [Token(Token = "0x4003972")] [Range(0f, 3f)] public int blurIterations = (int)((ulong)1L); // Token: 0x04003973 RID: 14707 [FieldOffset(Offset = "0x34")] [Token(Token = "0x4003973")] [Range(0f, 5f)] public float blurFilterDistance = 1.25f; // Token: 0x04003974 RID: 14708 [FieldOffset(Offset = "0x38")] [Token(Token = "0x4003974")] [Range(0f, 1f)] public int downsample; // Token: 0x04003975 RID: 14709 [FieldOffset(Offset = "0x40")] [Token(Token = "0x4003975")] public Texture2D rand; // Token: 0x04003976 RID: 14710 [FieldOffset(Offset = "0x48")] [Token(Token = "0x4003976")] public Shader aoShader; // Token: 0x04003977 RID: 14711 [FieldOffset(Offset = "0x50")] [Token(Token = "0x4003977")] private Material aoMaterial; } }