MarchingCubesChunkDisplay
A class in Root.Township, Alta.Caves.
Cave chunk display that shows the marching cubes mesh for its chunk and sets it as the collider. Both sides; only clients assign the visible mesh.
- Listed in World generation
- Inherits or implements
MapChunkDisplay - Attributes
RequireComponent
Constructors
| Member | What it is |
|---|---|
MarchingCubesChunkDisplay() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
8 private and internal fields
Methods
3 private and internal methods
| Member | What it is |
|---|---|
private void GetMesh(MarchingCubesPlugin plugin, MapChunk chunk, out bool wasGenerated) | Gets or builds this chunk's mesh from the marching cubes plugin. |
private void OnDestroy() | Cleans up the mesh if it was created at runtime. |
private IEnumerator SmoothNormals(MarchingCubesChunkDisplay below, MarchingCubesChunkDisplay above) (iterator) | Blends normals where this chunk's mesh meets the layer above; not called in the decompiled code. |