forked from kalysti/terrain-tool-godot4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TerrainTypes.cs
86 lines (73 loc) · 1.3 KB
/
TerrainTypes.cs
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
using System.ComponentModel;
using System.Collections.Generic;
using Godot;
using System;
using System.Linq;
using System.Runtime.InteropServices;
namespace TerrainEditor
{
public enum TerrainToolMode
{
Sculpt,
Paint,
None
}
public enum TerrainSculptMode
{
Flatten,
Holes,
Noise,
Sculpt,
Smooth
}
public enum BrushFallOffType
{
Smooth,
Linear,
Spherical,
Tip
}
public enum TerrainBrushType
{
Circle
}
public struct VertexResult
{
public int i { get; set; }
public Vector3 v { get; set; }
}
public enum HeightmapAlgo
{
R16,
RGBA8_Normal,
RGBA8_Half,
RGB8_Full
};
public enum GIMode
{
Disabled,
Baked,
Dynamic
};
public enum LightmapScale
{
LIGHTMAP_SCALE_1X,
LIGHTMAP_SCALE_2X,
LIGHTMAP_SCALE_4X,
LIGHTMAP_SCALE_8X,
LIGHTMAP_SCALE_MAX,
};
[StructLayout(LayoutKind.Sequential)]
public struct RGBA
{
public byte r;
public byte g;
public byte b;
public byte a;
}
[StructLayout(LayoutKind.Sequential)]
public struct R16
{
public UInt16 r;
}
}