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: 0x02000629 RID: 1577
|
|
public class GlobalFog : PostEffectsBase
|
|
{
|
|
// Token: 0x0600A46E RID: 42094 RVA: 0x002A2C80 File Offset: 0x002A0E80
|
|
[CallerCount(0)]
|
|
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 652986, XrefRangeEnd = 652990, 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: 0x0600A46F RID: 42095 RVA: 0x002A2CDC File Offset: 0x002A0EDC
|
|
[CallerCount(0)]
|
|
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 652990, XrefRangeEnd = 653052, 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: 0x0600A470 RID: 42096 RVA: 0x002A2D50 File Offset: 0x002A0F50
|
|
[CallerCount(0)]
|
|
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 653052, XrefRangeEnd = 653053, 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: 0x0600A471 RID: 42097 RVA: 0x002A2D9C File Offset: 0x002A0F9C
|
|
// 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, 100676055);
|
|
GlobalFog.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GlobalFog>.NativeClassPtr, 100676056);
|
|
GlobalFog.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GlobalFog>.NativeClassPtr, 100676057);
|
|
}
|
|
|
|
// Token: 0x0600A472 RID: 42098 RVA: 0x00298C00 File Offset: 0x00296E00
|
|
public GlobalFog(IntPtr pointer)
|
|
: base(pointer)
|
|
{
|
|
}
|
|
|
|
// Token: 0x1700379C RID: 14236
|
|
// (get) Token: 0x0600A473 RID: 42099 RVA: 0x002A2EBC File Offset: 0x002A10BC
|
|
// (set) Token: 0x0600A474 RID: 42100 RVA: 0x002A2EE4 File Offset: 0x002A10E4
|
|
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: 0x1700379D RID: 14237
|
|
// (get) Token: 0x0600A475 RID: 42101 RVA: 0x002A2F08 File Offset: 0x002A1108
|
|
// (set) Token: 0x0600A476 RID: 42102 RVA: 0x002A2F30 File Offset: 0x002A1130
|
|
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: 0x1700379E RID: 14238
|
|
// (get) Token: 0x0600A477 RID: 42103 RVA: 0x002A2F54 File Offset: 0x002A1154
|
|
// (set) Token: 0x0600A478 RID: 42104 RVA: 0x002A2F7C File Offset: 0x002A117C
|
|
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: 0x1700379F RID: 14239
|
|
// (get) Token: 0x0600A479 RID: 42105 RVA: 0x002A2FA0 File Offset: 0x002A11A0
|
|
// (set) Token: 0x0600A47A RID: 42106 RVA: 0x002A2FC8 File Offset: 0x002A11C8
|
|
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: 0x170037A0 RID: 14240
|
|
// (get) Token: 0x0600A47B RID: 42107 RVA: 0x002A2FEC File Offset: 0x002A11EC
|
|
// (set) Token: 0x0600A47C RID: 42108 RVA: 0x002A3014 File Offset: 0x002A1214
|
|
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: 0x170037A1 RID: 14241
|
|
// (get) Token: 0x0600A47D RID: 42109 RVA: 0x002A3038 File Offset: 0x002A1238
|
|
// (set) Token: 0x0600A47E RID: 42110 RVA: 0x002A3060 File Offset: 0x002A1260
|
|
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: 0x170037A2 RID: 14242
|
|
// (get) Token: 0x0600A47F RID: 42111 RVA: 0x002A3084 File Offset: 0x002A1284
|
|
// (set) Token: 0x0600A480 RID: 42112 RVA: 0x002A30AC File Offset: 0x002A12AC
|
|
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: 0x170037A3 RID: 14243
|
|
// (get) Token: 0x0600A481 RID: 42113 RVA: 0x002A30D0 File Offset: 0x002A12D0
|
|
// (set) Token: 0x0600A482 RID: 42114 RVA: 0x002A3104 File Offset: 0x002A1304
|
|
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: 0x170037A4 RID: 14244
|
|
// (get) Token: 0x0600A483 RID: 42115 RVA: 0x002A312C File Offset: 0x002A132C
|
|
// (set) Token: 0x0600A484 RID: 42116 RVA: 0x002A3160 File Offset: 0x002A1360
|
|
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: 0x04006E52 RID: 28242
|
|
private static readonly IntPtr NativeFieldInfoPtr_distanceFog;
|
|
|
|
// Token: 0x04006E53 RID: 28243
|
|
private static readonly IntPtr NativeFieldInfoPtr_excludeFarPixels;
|
|
|
|
// Token: 0x04006E54 RID: 28244
|
|
private static readonly IntPtr NativeFieldInfoPtr_useRadialDistance;
|
|
|
|
// Token: 0x04006E55 RID: 28245
|
|
private static readonly IntPtr NativeFieldInfoPtr_heightFog;
|
|
|
|
// Token: 0x04006E56 RID: 28246
|
|
private static readonly IntPtr NativeFieldInfoPtr_height;
|
|
|
|
// Token: 0x04006E57 RID: 28247
|
|
private static readonly IntPtr NativeFieldInfoPtr_heightDensity;
|
|
|
|
// Token: 0x04006E58 RID: 28248
|
|
private static readonly IntPtr NativeFieldInfoPtr_startDistance;
|
|
|
|
// Token: 0x04006E59 RID: 28249
|
|
private static readonly IntPtr NativeFieldInfoPtr_fogShader;
|
|
|
|
// Token: 0x04006E5A RID: 28250
|
|
private static readonly IntPtr NativeFieldInfoPtr_fogMaterial;
|
|
|
|
// Token: 0x04006E5B RID: 28251
|
|
private static readonly IntPtr NativeMethodInfoPtr_CheckResources_Public_Virtual_Boolean_0;
|
|
|
|
// Token: 0x04006E5C RID: 28252
|
|
private static readonly IntPtr NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0;
|
|
|
|
// Token: 0x04006E5D RID: 28253
|
|
private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
|
|
}
|
|
}
|