6 public static int Index = 104;
33 DynamicArray<TerrainVertex> vertices = alphaTestSubsetsByFace[0].
Vertices;
34 TerrainGeometryDynamicArray<int> indices = alphaTestSubsetsByFace[0].
Indices;
35 int count = vertices.
Count;
44 ref vertices.
Array[count]
53 ref vertices.
Array[count + 1]
62 ref vertices.
Array[count + 2]
71 ref vertices.
Array[count + 3]
74 indices.
Add(count + 1);
75 indices.
Add(count + 2);
76 indices.
Add(count + 2);
77 indices.
Add(count + 1);
79 indices.
Add(count + 2);
80 indices.
Add(count + 3);
83 indices.
Add(count + 3);
84 indices.
Add(count + 2);
102 DynamicArray<TerrainVertex> vertices2 = alphaTestSubsetsByFace[1].
Vertices;
103 TerrainGeometryDynamicArray<int> indices2 = alphaTestSubsetsByFace[1].
Indices;
104 int count2 = vertices2.
Count;
105 vertices2.Count += 4;
113 ref vertices2.
Array[count2]
122 ref vertices2.
Array[count2 + 1]
131 ref vertices2.
Array[count2 + 2]
140 ref vertices2.
Array[count2 + 3]
142 indices2.
Add(count2);
143 indices2.
Add(count2 + 1);
144 indices2.
Add(count2 + 2);
145 indices2.
Add(count2 + 2);
146 indices2.
Add(count2 + 1);
147 indices2.
Add(count2);
148 indices2.
Add(count2 + 2);
149 indices2.
Add(count2 + 3);
150 indices2.
Add(count2);
151 indices2.
Add(count2);
152 indices2.
Add(count2 + 3);
153 indices2.
Add(count2 + 2);
171 DynamicArray<TerrainVertex> vertices3 = alphaTestSubsetsByFace[2].
Vertices;
172 TerrainGeometryDynamicArray<int> indices3 = alphaTestSubsetsByFace[2].
Indices;
173 int count3 = vertices3.
Count;
174 vertices3.Count += 4;
182 ref vertices3.
Array[count3]
191 ref vertices3.
Array[count3 + 1]
200 ref vertices3.
Array[count3 + 2]
209 ref vertices3.
Array[count3 + 3]
211 indices3.
Add(count3);
212 indices3.
Add(count3 + 2);
213 indices3.
Add(count3 + 1);
214 indices3.
Add(count3 + 1);
215 indices3.
Add(count3 + 2);
216 indices3.
Add(count3);
217 indices3.
Add(count3 + 2);
218 indices3.
Add(count3);
219 indices3.
Add(count3 + 3);
220 indices3.
Add(count3 + 3);
221 indices3.
Add(count3);
222 indices3.
Add(count3 + 2);
242 DynamicArray<TerrainVertex> vertices4 = alphaTestSubsetsByFace[3].
Vertices;
243 TerrainGeometryDynamicArray<int> indices4 = alphaTestSubsetsByFace[3].
Indices;
244 int count4 = vertices4.
Count;
245 vertices4.Count += 4;
253 ref vertices4.
Array[count4]
262 ref vertices4.
Array[count4 + 1]
271 ref vertices4.
Array[count4 + 2]
280 ref vertices4.
Array[count4 + 3]
282 indices4.
Add(count4);
283 indices4.
Add(count4 + 2);
284 indices4.
Add(count4 + 1);
285 indices4.
Add(count4 + 1);
286 indices4.
Add(count4 + 2);
287 indices4.
Add(count4);
288 indices4.
Add(count4 + 2);
289 indices4.
Add(count4);
290 indices4.
Add(count4 + 3);
291 indices4.
Add(count4 + 3);
292 indices4.
Add(count4);
293 indices4.
Add(count4 + 2);
309 if ((data & (1 << face)) != 0) {
static void SetupLitCornerVertex(float x, float y, float z, Color color, int textureSlot, int corner, ref TerrainVertex vertex)
static bool HasFireOnFace(int data, int face)
override void GenerateTerrainVertices(BlockGeometryGenerator generator, TerrainGeometry geometry, int value, int x, int y, int z)
override bool ShouldAvoid(int value)
override void DrawBlock(PrimitivesRenderer3D primitivesRenderer, int value, Color color, float size, ref Matrix matrix, DrawBlockEnvironmentData environmentData)
TerrainGeometrySubset[] AlphaTestSubsetsByFace
TerrainGeometryDynamicArray< TerrainVertex > Vertices
TerrainGeometryDynamicArray< int > Indices
static int ExtractContents(int value)
virtual int GetCellValueFast(int x, int y, int z)
static int ExtractData(int value)