The entire logic lies in the TerrainGenerator script. During the initialization of the script, Mesh, MeshFilter, and MeshRenderer components are created and set up. To support larger mesh sizes, the ...
WaveFunctionCollapseMapChunk.cs - Main WFC solver. Collapses slots based on entropy, propagates constraints to neighbors. GenerateMapNearPlayer.cs - Manages chunk generation around player position.