125 lines
3.5 KiB
C#
125 lines
3.5 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using Unity.Burst;
|
|
using Unity.Collections;
|
|
using Unity.Jobs;
|
|
using Unity.Mathematics;
|
|
using UnityEngine;
|
|
|
|
namespace ClusterLOD
|
|
{
|
|
// Token: 0x02001285 RID: 4741
|
|
[Token(Token = "0x2001285")]
|
|
[BurstCompile]
|
|
public struct ClusterMeshUpdateJob : IJob
|
|
{
|
|
// Token: 0x06006BB2 RID: 27570 RVA: 0x0017E3E8 File Offset: 0x0017C5E8
|
|
[Token(Token = "0x6006BB2")]
|
|
[Address(RVA = "0x1468400", Offset = "0x1467200", VA = "0x181468400")]
|
|
public ClusterMeshUpdateJob(ClusterMeshUpdateJobData jobData, Vector3 eyePos, bool dynamicCluster, float faceFactor, float meshScale, float distFactor)
|
|
{
|
|
NativeList<float3> nativeList = jobData.verts;
|
|
float z = eyePos.z;
|
|
this.verts = nativeList;
|
|
NativeList<int> nativeList2 = jobData.origIndices;
|
|
this.origIndices = nativeList2;
|
|
NativeList<int> nativeList3 = jobData.indices;
|
|
this.indices = nativeList3;
|
|
NativeList<MeshComponentInfo> componentInfo = jobData.componentInfo;
|
|
this.clusterInfo = componentInfo;
|
|
NativeArray<int> nativeArray = jobData.componentLod;
|
|
this.componentLod = nativeArray;
|
|
NativeArray<float3> nativeArray2 = jobData.triNormals;
|
|
this.triNormals = nativeArray2;
|
|
NativeArray<float> nativeArray3 = jobData.triSizes;
|
|
this.triSizes = nativeArray3;
|
|
this.meshScale = (float)0;
|
|
this.dynamicCluster = dynamicCluster;
|
|
float3 @float;
|
|
float z2 = @float.z;
|
|
this.faceFactor = (float)0;
|
|
this.distFactor = (float)0;
|
|
this.eyePos.z = z2;
|
|
}
|
|
|
|
// Token: 0x06006BB3 RID: 27571 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6006BB3")]
|
|
[Address(RVA = "0x1467F60", Offset = "0x1466D60", VA = "0x181467F60", Slot = "4")]
|
|
public void Execute()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x04004807 RID: 18439
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x4004807")]
|
|
[ReadOnly]
|
|
private NativeList<float3> verts;
|
|
|
|
// Token: 0x04004808 RID: 18440
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4004808")]
|
|
[ReadOnly]
|
|
public NativeList<int> origIndices;
|
|
|
|
// Token: 0x04004809 RID: 18441
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4004809")]
|
|
[ReadOnly]
|
|
private NativeList<MeshComponentInfo> clusterInfo;
|
|
|
|
// Token: 0x0400480A RID: 18442
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400480A")]
|
|
[ReadOnly]
|
|
private NativeArray<int> componentLod;
|
|
|
|
// Token: 0x0400480B RID: 18443
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x400480B")]
|
|
[ReadOnly]
|
|
private float3 eyePos;
|
|
|
|
// Token: 0x0400480C RID: 18444
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x400480C")]
|
|
[ReadOnly]
|
|
private NativeArray<float3> triNormals;
|
|
|
|
// Token: 0x0400480D RID: 18445
|
|
[FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x400480D")]
|
|
[ReadOnly]
|
|
private NativeArray<float> triSizes;
|
|
|
|
// Token: 0x0400480E RID: 18446
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x400480E")]
|
|
[ReadOnly]
|
|
private bool dynamicCluster;
|
|
|
|
// Token: 0x0400480F RID: 18447
|
|
[FieldOffset(Offset = "0x74")]
|
|
[Token(Token = "0x400480F")]
|
|
[ReadOnly]
|
|
private float faceFactor;
|
|
|
|
// Token: 0x04004810 RID: 18448
|
|
[FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x4004810")]
|
|
[ReadOnly]
|
|
private float meshScale;
|
|
|
|
// Token: 0x04004811 RID: 18449
|
|
[FieldOffset(Offset = "0x7C")]
|
|
[Token(Token = "0x4004811")]
|
|
[ReadOnly]
|
|
private float distFactor;
|
|
|
|
// Token: 0x04004812 RID: 18450
|
|
[FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x4004812")]
|
|
private NativeList<int> indices;
|
|
}
|
|
}
|