Elin Modding Docs Doc
Loading...
Searching...
No Matches
MeshBatch.cs
1using System;
2using UnityEngine;
3
4// Token: 0x0200012D RID: 301
5public class MeshBatch
6{
7 // Token: 0x06000815 RID: 2069 RVA: 0x00034D6C File Offset: 0x00032F6C
8 public MeshBatch(MeshPass pass)
9 {
10 Debug.Log(string.Concat(new string[]
11 {
12 "#pass New Batch ",
13 pass.name,
14 "/",
15 pass.batches.Count.ToString(),
16 "/",
17 pass.batchSize.ToString()
18 }));
19 this.mpb = new MaterialPropertyBlock();
20 this.size = pass.batchSize;
21 this.matrices = new Matrix4x4[this.size];
22 this.tiles = new float[this.size];
23 if (pass.setColor)
24 {
25 this.colors = new float[this.size];
26 }
27 if (pass.setMatColor)
28 {
29 this.matColors = new float[this.size];
30 }
31 if (pass.setExtra)
32 {
33 this.extras = new float[this.size];
34 }
35 for (int i = 0; i < this.size; i++)
36 {
37 this.matrices[i].SetTRS(Vector3.zero, Quaternion.Euler(0f, 0f, 0f), Vector3.one);
38 }
39 }
40
41 // Token: 0x0400086A RID: 2154
42 public Matrix4x4[] matrices;
43
44 // Token: 0x0400086B RID: 2155
45 public float[] tiles;
46
47 // Token: 0x0400086C RID: 2156
48 public float[] colors;
49
50 // Token: 0x0400086D RID: 2157
51 public float[] matColors;
52
53 // Token: 0x0400086E RID: 2158
54 public float[] extras;
55
56 // Token: 0x0400086F RID: 2159
57 public MaterialPropertyBlock mpb;
58
59 // Token: 0x04000870 RID: 2160
60 public Material mat;
61
62 // Token: 0x04000871 RID: 2161
63 public int size;
64}