89 lines
3.3 KiB
C#
89 lines
3.3 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace MTAssets.UltimateLODSystem.MeshSimplifier
|
|
{
|
|
// Token: 0x02000614 RID: 1556
|
|
[Token(Token = "0x2000614")]
|
|
[Serializable]
|
|
[StructLayout(3)]
|
|
public struct SimplificationOptions
|
|
{
|
|
// Token: 0x06003107 RID: 12551 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x6003107")]
|
|
[Address(RVA = "0x11C6950", Offset = "0x11C5150", VA = "0x1811C6950")]
|
|
static SimplificationOptions()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x04003AF9 RID: 15097
|
|
[Token(Token = "0x4003AF9")]
|
|
public static readonly SimplificationOptions Default;
|
|
|
|
// Token: 0x04003AFA RID: 15098
|
|
[Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x4003AFA")]
|
|
[Tooltip("If the border edges should be preserved.")]
|
|
public bool PreserveBorderEdges;
|
|
|
|
// Token: 0x04003AFB RID: 15099
|
|
[Cpp2IlInjected.FieldOffset(Offset = "0x1")]
|
|
[Token(Token = "0x4003AFB")]
|
|
[Tooltip("If the UV seam edges should be preserved.")]
|
|
public bool PreserveUVSeamEdges;
|
|
|
|
// Token: 0x04003AFC RID: 15100
|
|
[Cpp2IlInjected.FieldOffset(Offset = "0x2")]
|
|
[Token(Token = "0x4003AFC")]
|
|
[Tooltip("If the UV foldover edges should be preserved.")]
|
|
public bool PreserveUVFoldoverEdges;
|
|
|
|
// Token: 0x04003AFD RID: 15101
|
|
[Cpp2IlInjected.FieldOffset(Offset = "0x3")]
|
|
[Token(Token = "0x4003AFD")]
|
|
[Tooltip("If the discrete curvature of the mesh surface be taken into account during simplification. Taking surface curvature into account can result in very good quality mesh simplification, but it can slow the simplification process significantly.")]
|
|
public bool PreserveSurfaceCurvature;
|
|
|
|
// Token: 0x04003AFE RID: 15102
|
|
[Cpp2IlInjected.FieldOffset(Offset = "0x4")]
|
|
[Token(Token = "0x4003AFE")]
|
|
[Tooltip("If a feature for smarter vertex linking should be enabled, reducing artifacts at the cost of slower simplification.")]
|
|
public bool EnableSmartLink;
|
|
|
|
// Token: 0x04003AFF RID: 15103
|
|
[Cpp2IlInjected.FieldOffset(Offset = "0x8")]
|
|
[Token(Token = "0x4003AFF")]
|
|
[Tooltip("The maximum distance between two vertices in order to link them.")]
|
|
public double VertexLinkDistance;
|
|
|
|
// Token: 0x04003B00 RID: 15104
|
|
[Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4003B00")]
|
|
[Tooltip("The maximum iteration count. Higher number is more expensive but can bring you closer to your target quality.")]
|
|
public int MaxIterationCount;
|
|
|
|
// Token: 0x04003B01 RID: 15105
|
|
[Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4003B01")]
|
|
[Tooltip("The agressiveness of the mesh simplification. Higher number equals higher quality, but more expensive to run.")]
|
|
public double Agressiveness;
|
|
|
|
// Token: 0x04003B02 RID: 15106
|
|
[Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4003B02")]
|
|
[Tooltip("If a manual UV component count should be used (set by UV Component Count below), instead of the automatic detection.")]
|
|
public bool ManualUVComponentCount;
|
|
|
|
// Token: 0x04003B03 RID: 15107
|
|
[Cpp2IlInjected.FieldOffset(Offset = "0x24")]
|
|
[Token(Token = "0x4003B03")]
|
|
[Tooltip("The UV component count. The same UV component count will be used on all UV channels.")]
|
|
[Range(0f, 4f)]
|
|
public int UVComponentCount;
|
|
}
|
|
}
|