Elin Modding Docs Doc
Loading...
Searching...
No Matches
RenderDataEffect.cs
1using System;
2using UnityEngine;
3
4// Token: 0x0200019A RID: 410
6{
7 // Token: 0x06000BDF RID: 3039 RVA: 0x000490A8 File Offset: 0x000472A8
8 public new void Draw(RenderParam p, int tile = 0)
9 {
10 float num = (Time.realtimeSinceStartup * this.speed + p.x + p.y) % 5f;
11 MeshBatch meshBatch = this.pass.batches[this.pass.batchIdx];
12 meshBatch.matrices[this.pass.idx].m03 = p.x + this.offset.x;
13 meshBatch.matrices[this.pass.idx].m13 = p.y + this.offset.y;
14 meshBatch.matrices[this.pass.idx].m23 = p.z + this.offset.z;
15 meshBatch.tiles[this.pass.idx] = num;
16 meshBatch.colors[this.pass.idx] = p.color;
17 this.pass.idx++;
18 if (this.pass.idx == this.pass.batchSize)
19 {
20 this.pass.NextBatch();
21 }
22 }
23
24 // Token: 0x04000ADA RID: 2778
25 public float speed;
26}