using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppInterop.Runtime.InteropTypes.Arrays;
using UnityEngine;
using UnityEngine.Rendering;

namespace Obi
{
	// Token: 0x020004F0 RID: 1264
	public class ShadowmapExposer : MonoBehaviour
	{
		// Token: 0x0600924A RID: 37450 RVA: 0x002586D0 File Offset: 0x002568D0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 637274, XrefRangeEnd = 637278, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Awake()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ShadowmapExposer.NativeMethodInfoPtr_Awake_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600924B RID: 37451 RVA: 0x00258714 File Offset: 0x00256914
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 637278, XrefRangeEnd = 637290, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnEnable()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ShadowmapExposer.NativeMethodInfoPtr_OnEnable_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600924C RID: 37452 RVA: 0x00258758 File Offset: 0x00256958
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 637290, XrefRangeEnd = 637292, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnDisable()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ShadowmapExposer.NativeMethodInfoPtr_OnDisable_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600924D RID: 37453 RVA: 0x0025879C File Offset: 0x0025699C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 0, XrefRangeEnd = 0, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Cleanup()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ShadowmapExposer.NativeMethodInfoPtr_Cleanup_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600924E RID: 37454 RVA: 0x002587E0 File Offset: 0x002569E0
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 637314, RefRangeEnd = 637315, XrefRangeStart = 637292, XrefRangeEnd = 637314, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void SetupFluidShadowsCommandBuffer()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ShadowmapExposer.NativeMethodInfoPtr_SetupFluidShadowsCommandBuffer_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600924F RID: 37455 RVA: 0x00258824 File Offset: 0x00256A24
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 637315, XrefRangeEnd = 637319, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Update()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ShadowmapExposer.NativeMethodInfoPtr_Update_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009250 RID: 37456 RVA: 0x00258868 File Offset: 0x00256A68
		[CallerCount(67)]
		[CachedScanResults(RefRangeStart = 166362, RefRangeEnd = 166429, XrefRangeStart = 166362, XrefRangeEnd = 166429, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ShadowmapExposer()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ShadowmapExposer>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ShadowmapExposer.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009251 RID: 37457 RVA: 0x002588B4 File Offset: 0x00256AB4
		// Note: this type is marked as 'beforefieldinit'.
		static ShadowmapExposer()
		{
			Il2CppClassPointerStore<ShadowmapExposer>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "Obi", "ShadowmapExposer");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ShadowmapExposer>.NativeClassPtr);
			ShadowmapExposer.NativeFieldInfoPtr_light = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ShadowmapExposer>.NativeClassPtr, "light");
			ShadowmapExposer.NativeFieldInfoPtr_afterShadow = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ShadowmapExposer>.NativeClassPtr, "afterShadow");
			ShadowmapExposer.NativeFieldInfoPtr_particleRenderers = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ShadowmapExposer>.NativeClassPtr, "particleRenderers");
			ShadowmapExposer.NativeMethodInfoPtr_Awake_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ShadowmapExposer>.NativeClassPtr, 100674540);
			ShadowmapExposer.NativeMethodInfoPtr_OnEnable_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ShadowmapExposer>.NativeClassPtr, 100674541);
			ShadowmapExposer.NativeMethodInfoPtr_OnDisable_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ShadowmapExposer>.NativeClassPtr, 100674542);
			ShadowmapExposer.NativeMethodInfoPtr_Cleanup_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ShadowmapExposer>.NativeClassPtr, 100674543);
			ShadowmapExposer.NativeMethodInfoPtr_SetupFluidShadowsCommandBuffer_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ShadowmapExposer>.NativeClassPtr, 100674544);
			ShadowmapExposer.NativeMethodInfoPtr_Update_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ShadowmapExposer>.NativeClassPtr, 100674545);
			ShadowmapExposer.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ShadowmapExposer>.NativeClassPtr, 100674546);
		}

		// Token: 0x06009252 RID: 37458 RVA: 0x0000351C File Offset: 0x0000171C
		public ShadowmapExposer(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17003195 RID: 12693
		// (get) Token: 0x06009253 RID: 37459 RVA: 0x002589AC File Offset: 0x00256BAC
		// (set) Token: 0x06009254 RID: 37460 RVA: 0x002589E0 File Offset: 0x00256BE0
		public unsafe Light light
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ShadowmapExposer.NativeFieldInfoPtr_light);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Light(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ShadowmapExposer.NativeFieldInfoPtr_light), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17003196 RID: 12694
		// (get) Token: 0x06009255 RID: 37461 RVA: 0x00258A08 File Offset: 0x00256C08
		// (set) Token: 0x06009256 RID: 37462 RVA: 0x00258A3C File Offset: 0x00256C3C
		public unsafe CommandBuffer afterShadow
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ShadowmapExposer.NativeFieldInfoPtr_afterShadow);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new CommandBuffer(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ShadowmapExposer.NativeFieldInfoPtr_afterShadow), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17003197 RID: 12695
		// (get) Token: 0x06009257 RID: 37463 RVA: 0x00258A64 File Offset: 0x00256C64
		// (set) Token: 0x06009258 RID: 37464 RVA: 0x00258A98 File Offset: 0x00256C98
		public unsafe Il2CppReferenceArray<ObiParticleRenderer> particleRenderers
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ShadowmapExposer.NativeFieldInfoPtr_particleRenderers);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Il2CppReferenceArray<ObiParticleRenderer>(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ShadowmapExposer.NativeFieldInfoPtr_particleRenderers), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x0400619A RID: 24986
		private static readonly IntPtr NativeFieldInfoPtr_light;

		// Token: 0x0400619B RID: 24987
		private static readonly IntPtr NativeFieldInfoPtr_afterShadow;

		// Token: 0x0400619C RID: 24988
		private static readonly IntPtr NativeFieldInfoPtr_particleRenderers;

		// Token: 0x0400619D RID: 24989
		private static readonly IntPtr NativeMethodInfoPtr_Awake_Public_Void_0;

		// Token: 0x0400619E RID: 24990
		private static readonly IntPtr NativeMethodInfoPtr_OnEnable_Public_Void_0;

		// Token: 0x0400619F RID: 24991
		private static readonly IntPtr NativeMethodInfoPtr_OnDisable_Public_Void_0;

		// Token: 0x040061A0 RID: 24992
		private static readonly IntPtr NativeMethodInfoPtr_Cleanup_Private_Void_0;

		// Token: 0x040061A1 RID: 24993
		private static readonly IntPtr NativeMethodInfoPtr_SetupFluidShadowsCommandBuffer_Public_Void_0;

		// Token: 0x040061A2 RID: 24994
		private static readonly IntPtr NativeMethodInfoPtr_Update_Private_Void_0;

		// Token: 0x040061A3 RID: 24995
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
