265 lines
11 KiB
C#
265 lines
11 KiB
C#
using System;
|
|
using Il2CppInterop.Common.Attributes;
|
|
using Il2CppInterop.Runtime;
|
|
using UnityEngine;
|
|
|
|
namespace UnityStandardAssets.ImageEffects
|
|
{
|
|
// Token: 0x020005DA RID: 1498
|
|
public class GlobalFog : PostEffectsBase
|
|
{
|
|
// Token: 0x06009CCB RID: 40139 RVA: 0x00282B48 File Offset: 0x00280D48
|
|
[CallerCount(0)]
|
|
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 638394, XrefRangeEnd = 638398, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe override bool CheckResources()
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IntPtr* ptr = null;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), GlobalFog.NativeMethodInfoPtr_CheckResources_Public_Virtual_Boolean_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
return *IL2CPP.il2cpp_object_unbox(intPtr);
|
|
}
|
|
|
|
// Token: 0x06009CCC RID: 40140 RVA: 0x00282BA4 File Offset: 0x00280DA4
|
|
[CallerCount(0)]
|
|
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 638398, XrefRangeEnd = 638460, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe void OnRenderImage(RenderTexture source, RenderTexture destination)
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IntPtr* ptr;
|
|
checked
|
|
{
|
|
ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
|
|
*ptr = IL2CPP.Il2CppObjectBaseToPtr(source);
|
|
}
|
|
ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(destination);
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GlobalFog.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
}
|
|
|
|
// Token: 0x06009CCD RID: 40141 RVA: 0x00282C18 File Offset: 0x00280E18
|
|
[CallerCount(0)]
|
|
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 638460, XrefRangeEnd = 638461, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe GlobalFog()
|
|
: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<GlobalFog>.NativeClassPtr))
|
|
{
|
|
IntPtr* ptr = null;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GlobalFog.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
}
|
|
|
|
// Token: 0x06009CCE RID: 40142 RVA: 0x00282C64 File Offset: 0x00280E64
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
static GlobalFog()
|
|
{
|
|
Il2CppClassPointerStore<GlobalFog>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityStandardAssets.ImageEffects", "GlobalFog");
|
|
IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<GlobalFog>.NativeClassPtr);
|
|
GlobalFog.NativeFieldInfoPtr_distanceFog = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GlobalFog>.NativeClassPtr, "distanceFog");
|
|
GlobalFog.NativeFieldInfoPtr_excludeFarPixels = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GlobalFog>.NativeClassPtr, "excludeFarPixels");
|
|
GlobalFog.NativeFieldInfoPtr_useRadialDistance = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GlobalFog>.NativeClassPtr, "useRadialDistance");
|
|
GlobalFog.NativeFieldInfoPtr_heightFog = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GlobalFog>.NativeClassPtr, "heightFog");
|
|
GlobalFog.NativeFieldInfoPtr_height = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GlobalFog>.NativeClassPtr, "height");
|
|
GlobalFog.NativeFieldInfoPtr_heightDensity = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GlobalFog>.NativeClassPtr, "heightDensity");
|
|
GlobalFog.NativeFieldInfoPtr_startDistance = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GlobalFog>.NativeClassPtr, "startDistance");
|
|
GlobalFog.NativeFieldInfoPtr_fogShader = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GlobalFog>.NativeClassPtr, "fogShader");
|
|
GlobalFog.NativeFieldInfoPtr_fogMaterial = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GlobalFog>.NativeClassPtr, "fogMaterial");
|
|
GlobalFog.NativeMethodInfoPtr_CheckResources_Public_Virtual_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GlobalFog>.NativeClassPtr, 100675392);
|
|
GlobalFog.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GlobalFog>.NativeClassPtr, 100675393);
|
|
GlobalFog.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GlobalFog>.NativeClassPtr, 100675394);
|
|
}
|
|
|
|
// Token: 0x06009CCF RID: 40143 RVA: 0x00278AC8 File Offset: 0x00276CC8
|
|
public GlobalFog(IntPtr pointer)
|
|
: base(pointer)
|
|
{
|
|
}
|
|
|
|
// Token: 0x17003533 RID: 13619
|
|
// (get) Token: 0x06009CD0 RID: 40144 RVA: 0x00282D84 File Offset: 0x00280F84
|
|
// (set) Token: 0x06009CD1 RID: 40145 RVA: 0x00282DAC File Offset: 0x00280FAC
|
|
public unsafe bool distanceFog
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GlobalFog.NativeFieldInfoPtr_distanceFog);
|
|
return *intPtr;
|
|
}
|
|
set
|
|
{
|
|
*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GlobalFog.NativeFieldInfoPtr_distanceFog)) = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003534 RID: 13620
|
|
// (get) Token: 0x06009CD2 RID: 40146 RVA: 0x00282DD0 File Offset: 0x00280FD0
|
|
// (set) Token: 0x06009CD3 RID: 40147 RVA: 0x00282DF8 File Offset: 0x00280FF8
|
|
public unsafe bool excludeFarPixels
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GlobalFog.NativeFieldInfoPtr_excludeFarPixels);
|
|
return *intPtr;
|
|
}
|
|
set
|
|
{
|
|
*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GlobalFog.NativeFieldInfoPtr_excludeFarPixels)) = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003535 RID: 13621
|
|
// (get) Token: 0x06009CD4 RID: 40148 RVA: 0x00282E1C File Offset: 0x0028101C
|
|
// (set) Token: 0x06009CD5 RID: 40149 RVA: 0x00282E44 File Offset: 0x00281044
|
|
public unsafe bool useRadialDistance
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GlobalFog.NativeFieldInfoPtr_useRadialDistance);
|
|
return *intPtr;
|
|
}
|
|
set
|
|
{
|
|
*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GlobalFog.NativeFieldInfoPtr_useRadialDistance)) = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003536 RID: 13622
|
|
// (get) Token: 0x06009CD6 RID: 40150 RVA: 0x00282E68 File Offset: 0x00281068
|
|
// (set) Token: 0x06009CD7 RID: 40151 RVA: 0x00282E90 File Offset: 0x00281090
|
|
public unsafe bool heightFog
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GlobalFog.NativeFieldInfoPtr_heightFog);
|
|
return *intPtr;
|
|
}
|
|
set
|
|
{
|
|
*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GlobalFog.NativeFieldInfoPtr_heightFog)) = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003537 RID: 13623
|
|
// (get) Token: 0x06009CD8 RID: 40152 RVA: 0x00282EB4 File Offset: 0x002810B4
|
|
// (set) Token: 0x06009CD9 RID: 40153 RVA: 0x00282EDC File Offset: 0x002810DC
|
|
public unsafe float height
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GlobalFog.NativeFieldInfoPtr_height);
|
|
return *intPtr;
|
|
}
|
|
set
|
|
{
|
|
*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GlobalFog.NativeFieldInfoPtr_height)) = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003538 RID: 13624
|
|
// (get) Token: 0x06009CDA RID: 40154 RVA: 0x00282F00 File Offset: 0x00281100
|
|
// (set) Token: 0x06009CDB RID: 40155 RVA: 0x00282F28 File Offset: 0x00281128
|
|
public unsafe float heightDensity
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GlobalFog.NativeFieldInfoPtr_heightDensity);
|
|
return *intPtr;
|
|
}
|
|
set
|
|
{
|
|
*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GlobalFog.NativeFieldInfoPtr_heightDensity)) = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003539 RID: 13625
|
|
// (get) Token: 0x06009CDC RID: 40156 RVA: 0x00282F4C File Offset: 0x0028114C
|
|
// (set) Token: 0x06009CDD RID: 40157 RVA: 0x00282F74 File Offset: 0x00281174
|
|
public unsafe float startDistance
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GlobalFog.NativeFieldInfoPtr_startDistance);
|
|
return *intPtr;
|
|
}
|
|
set
|
|
{
|
|
*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GlobalFog.NativeFieldInfoPtr_startDistance)) = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700353A RID: 13626
|
|
// (get) Token: 0x06009CDE RID: 40158 RVA: 0x00282F98 File Offset: 0x00281198
|
|
// (set) Token: 0x06009CDF RID: 40159 RVA: 0x00282FCC File Offset: 0x002811CC
|
|
public unsafe Shader fogShader
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GlobalFog.NativeFieldInfoPtr_fogShader);
|
|
IntPtr intPtr2 = *intPtr;
|
|
return (intPtr2 != 0) ? new Shader(intPtr2) : null;
|
|
}
|
|
set
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(GlobalFog.NativeFieldInfoPtr_fogShader), IL2CPP.Il2CppObjectBaseToPtr(value));
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700353B RID: 13627
|
|
// (get) Token: 0x06009CE0 RID: 40160 RVA: 0x00282FF4 File Offset: 0x002811F4
|
|
// (set) Token: 0x06009CE1 RID: 40161 RVA: 0x00283028 File Offset: 0x00281228
|
|
public unsafe Material fogMaterial
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GlobalFog.NativeFieldInfoPtr_fogMaterial);
|
|
IntPtr intPtr2 = *intPtr;
|
|
return (intPtr2 != 0) ? new Material(intPtr2) : null;
|
|
}
|
|
set
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(GlobalFog.NativeFieldInfoPtr_fogMaterial), IL2CPP.Il2CppObjectBaseToPtr(value));
|
|
}
|
|
}
|
|
|
|
// Token: 0x0400691D RID: 26909
|
|
private static readonly IntPtr NativeFieldInfoPtr_distanceFog;
|
|
|
|
// Token: 0x0400691E RID: 26910
|
|
private static readonly IntPtr NativeFieldInfoPtr_excludeFarPixels;
|
|
|
|
// Token: 0x0400691F RID: 26911
|
|
private static readonly IntPtr NativeFieldInfoPtr_useRadialDistance;
|
|
|
|
// Token: 0x04006920 RID: 26912
|
|
private static readonly IntPtr NativeFieldInfoPtr_heightFog;
|
|
|
|
// Token: 0x04006921 RID: 26913
|
|
private static readonly IntPtr NativeFieldInfoPtr_height;
|
|
|
|
// Token: 0x04006922 RID: 26914
|
|
private static readonly IntPtr NativeFieldInfoPtr_heightDensity;
|
|
|
|
// Token: 0x04006923 RID: 26915
|
|
private static readonly IntPtr NativeFieldInfoPtr_startDistance;
|
|
|
|
// Token: 0x04006924 RID: 26916
|
|
private static readonly IntPtr NativeFieldInfoPtr_fogShader;
|
|
|
|
// Token: 0x04006925 RID: 26917
|
|
private static readonly IntPtr NativeFieldInfoPtr_fogMaterial;
|
|
|
|
// Token: 0x04006926 RID: 26918
|
|
private static readonly IntPtr NativeMethodInfoPtr_CheckResources_Public_Virtual_Boolean_0;
|
|
|
|
// Token: 0x04006927 RID: 26919
|
|
private static readonly IntPtr NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0;
|
|
|
|
// Token: 0x04006928 RID: 26920
|
|
private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
|
|
}
|
|
}
|