-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAddToAlphaMap.cs
More file actions
34 lines (32 loc) · 1.75 KB
/
AddToAlphaMap.cs
File metadata and controls
34 lines (32 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using UnityEngine;
public class AddToAlphaMap : ProceduralObject
{
public Bounds bounds = new Bounds(Vector3.zero, Vector3.one);
public override void Process()
{
//IL_0009: Unknown result type (might be due to invalid IL or missing references)
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_0029: Unknown result type (might be due to invalid IL or missing references)
//IL_003b: Unknown result type (might be due to invalid IL or missing references)
//IL_0040: Unknown result type (might be due to invalid IL or missing references)
//IL_0052: Unknown result type (might be due to invalid IL or missing references)
//IL_0057: Unknown result type (might be due to invalid IL or missing references)
//IL_0069: Unknown result type (might be due to invalid IL or missing references)
//IL_006e: Unknown result type (might be due to invalid IL or missing references)
//IL_0075: Unknown result type (might be due to invalid IL or missing references)
//IL_0076: Unknown result type (might be due to invalid IL or missing references)
//IL_0077: Unknown result type (might be due to invalid IL or missing references)
//IL_0078: Unknown result type (might be due to invalid IL or missing references)
OBB val = default(OBB);
((OBB)(ref val))._002Ector(((Component)this).transform, bounds);
Vector3 point = ((OBB)(ref val)).GetPoint(-1f, 0f, -1f);
Vector3 point2 = ((OBB)(ref val)).GetPoint(1f, 0f, -1f);
Vector3 point3 = ((OBB)(ref val)).GetPoint(-1f, 0f, 1f);
Vector3 point4 = ((OBB)(ref val)).GetPoint(1f, 0f, 1f);
TerrainMeta.AlphaMap.ForEachParallel(point, point2, point3, point4, delegate(int x, int z)
{
TerrainMeta.AlphaMap.SetAlpha(x, z, 0f);
});
GameManager.Destroy((Component)(object)this);
}
}