# nfleig/procedural-terrain architecture

> Architecture diagram of the GitHub repository nfleig/procedural-terrain, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nfleig/procedural-terrain
- Repository: https://github.com/nfleig/procedural-terrain

## Overview

Procedural-Terrain is described as a game with a procedurally generated world, but the supplied tree and source excerpts are dominated by Unity package-cache code; no terrain-generation implementation or game entry point is shown. The graph therefore separates the game anchor from the evidenced rendering, volume, post-processing, and editor-preview subsystems. Arrows reflect only references or calls visible in the supplied excerpts and source index; unsampled package behavior is not inferred.

Main entry points: [`Procedural Generation/Library/PackageCache/com.unity.render-pipelines.universal@7.1.8/Runtime/UniversalRenderPipeline.cs`](https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.render-pipelines.universal%407.1.8/Runtime/UniversalRenderPipeline.cs) (URP Pipeline), [`Procedural Generation/Library/PackageCache/com.unity.shadergraph@7.1.8/Editor/Drawing/PreviewManager.cs`](https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.shadergraph%407.1.8/Editor/Drawing/PreviewManager.cs) (Preview Manager), [`Procedural Generation/Library/PackageCache/com.unity.render-pipelines.universal@7.1.8/Runtime/Data/UniversalRenderPipelineAsset.cs`](https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.render-pipelines.universal%407.1.8/Runtime/Data/UniversalRenderPipelineAsset.cs) (Pipeline Asset), [`Procedural Generation/Library/PackageCache/com.unity.postprocessing@2.2.2/PostProcessing/Runtime/PostProcessLayer.cs`](https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.postprocessing%402.2.2/PostProcessing/Runtime/PostProcessLayer.cs) (Post Process Layer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_game["Game"]
  node_game_entry["Game<br/>[Game.cs]"]
end

subgraph group_render["Universal Rendering"]
  node_urp_asset["Pipeline Asset"]
  node_urp["URP Pipeline"]
  node_renderer["Scriptable Renderer"]
  node_core_utils["Core Utilities<br/>[CoreUtils.cs]"]
  node_xr["XR Graphics<br/>[XRGraphics.cs]"]
  node_mesh["Tessellation Mesh<br/>[Mesh.cs]"]
end

subgraph group_effects["Volumes and Effects"]
  node_volume["Volume Component<br/>[Volume.cs]"]
  node_volume_manager["Volume Manager<br/>[VolumeManager.cs]"]
  node_post_layer["Post Process Layer"]
  node_post_context["Render Context"]
  node_post_utils["Runtime Utilities"]
end

subgraph group_authoring["Editor Authoring"]
  node_graph_data["Shader Graph Data<br/>[GraphData.cs]"]
  node_preview["Preview Manager<br/>[PreviewManager.cs]"]
  node_preview_resources["Preview Resources"]
  node_editor_utils["Core Editor Utils<br/>[CoreEditorUtils.cs]"]
  node_timeline_window["Timeline State<br/>[WindowState.cs]"]
  node_timeline_graphics["Timeline Graphics<br/>[Graphics.cs]"]
  node_timeline_styles["Timeline Styles<br/>[Styles.cs]"]
end

node_urp_asset -->|"creates"| node_urp
node_urp_asset -->|"creates renderer"| node_renderer
node_urp -->|"executes"| node_renderer
node_urp -->|"uses"| node_core_utils
node_urp -->|"uses"| node_xr
node_volume -->|"registers with"| node_volume_manager
node_volume_manager -->|"reads volumes"| node_volume
node_preview -->|"reads graph"| node_graph_data
node_preview -->|"uses"| node_preview_resources
node_preview -->|"references"| node_mesh
node_game_entry -->|"mentions"| node_urp
node_post_layer -.->|"uses"| node_post_context
node_post_layer -.->|"uses"| node_post_utils
node_timeline_graphics -->|"draws with"| node_timeline_window

click node_game_entry "https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Assets/Shapes2D/Demos/Flappy%20Shapes/Game.cs"
click node_urp_asset "https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.render-pipelines.universal%407.1.8/Runtime/Data/UniversalRenderPipelineAsset.cs"
click node_urp "https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.render-pipelines.universal%407.1.8/Runtime/UniversalRenderPipeline.cs"
click node_renderer "https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.render-pipelines.universal%407.1.8/Runtime/ScriptableRenderer.cs"
click node_core_utils "https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.render-pipelines.core%407.1.8/Runtime/Utilities/CoreUtils.cs"
click node_xr "https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.render-pipelines.core%407.1.8/Runtime/Common/XRGraphics.cs"
click node_volume "https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.render-pipelines.core%407.1.8/Runtime/Volume/Volume.cs"
click node_volume_manager "https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.render-pipelines.core%407.1.8/Runtime/Volume/VolumeManager.cs"
click node_post_layer "https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.postprocessing%402.2.2/PostProcessing/Runtime/PostProcessLayer.cs"
click node_post_context "https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.postprocessing%402.2.2/PostProcessing/Runtime/PostProcessRenderContext.cs"
click node_post_utils "https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.postprocessing%402.2.2/PostProcessing/Runtime/Utils/RuntimeUtilities.cs"
click node_graph_data "https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.shadergraph%407.1.8/Editor/Data/Graphs/GraphData.cs"
click node_preview "https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.shadergraph%407.1.8/Editor/Drawing/PreviewManager.cs"
click node_preview_resources "https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.shadergraph%407.1.8/Editor/Drawing/Views/PreviewSceneResources.cs"
click node_editor_utils "https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.render-pipelines.core%407.1.8/Editor/CoreEditorUtils.cs"
click node_mesh "https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.render-pipelines.universal%407.1.8/Runtime/External/LibTessDotNet/Mesh.cs"
click node_timeline_window "https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.timeline%401.2.12/Editor/State/WindowState.cs"
click node_timeline_graphics "https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.timeline%401.2.12/Editor/Utilities/Graphics.cs"
click node_timeline_styles "https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.timeline%401.2.12/Editor/Signals/Styles.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_game_entry toneBlue
class node_urp_asset,node_urp,node_renderer,node_core_utils,node_xr,node_mesh toneAmber
class node_volume,node_volume_manager,node_post_layer,node_post_context,node_post_utils toneMint
class node_graph_data,node_preview,node_preview_resources,node_editor_utils,node_timeline_window,node_timeline_graphics,node_timeline_styles toneRose
```

## Components

### Game

- [Game](https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Assets/Shapes2D/Demos/Flappy%20Shapes/Game.cs): `Procedural Generation/Assets/Shapes2D/Demos/Flappy Shapes/Game.cs`

### Universal Rendering

- [Pipeline Asset](https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.render-pipelines.universal%407.1.8/Runtime/Data/UniversalRenderPipelineAsset.cs): `Procedural Generation/Library/PackageCache/com.unity.render-pipelines.universal@7.1.8/Runtime/Data/UniversalRenderPipelineAsset.cs`
- [URP Pipeline](https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.render-pipelines.universal%407.1.8/Runtime/UniversalRenderPipeline.cs): `Procedural Generation/Library/PackageCache/com.unity.render-pipelines.universal@7.1.8/Runtime/UniversalRenderPipeline.cs`
- [Scriptable Renderer](https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.render-pipelines.universal%407.1.8/Runtime/ScriptableRenderer.cs): `Procedural Generation/Library/PackageCache/com.unity.render-pipelines.universal@7.1.8/Runtime/ScriptableRenderer.cs`
- [Core Utilities](https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.render-pipelines.core%407.1.8/Runtime/Utilities/CoreUtils.cs): `Procedural Generation/Library/PackageCache/com.unity.render-pipelines.core@7.1.8/Runtime/Utilities/CoreUtils.cs`
- [XR Graphics](https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.render-pipelines.core%407.1.8/Runtime/Common/XRGraphics.cs): `Procedural Generation/Library/PackageCache/com.unity.render-pipelines.core@7.1.8/Runtime/Common/XRGraphics.cs`
- [Tessellation Mesh](https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.render-pipelines.universal%407.1.8/Runtime/External/LibTessDotNet/Mesh.cs): `Procedural Generation/Library/PackageCache/com.unity.render-pipelines.universal@7.1.8/Runtime/External/LibTessDotNet/Mesh.cs`

### Volumes and Effects

- [Volume Component](https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.render-pipelines.core%407.1.8/Runtime/Volume/Volume.cs): `Procedural Generation/Library/PackageCache/com.unity.render-pipelines.core@7.1.8/Runtime/Volume/Volume.cs`
- [Volume Manager](https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.render-pipelines.core%407.1.8/Runtime/Volume/VolumeManager.cs): `Procedural Generation/Library/PackageCache/com.unity.render-pipelines.core@7.1.8/Runtime/Volume/VolumeManager.cs`
- [Post Process Layer](https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.postprocessing%402.2.2/PostProcessing/Runtime/PostProcessLayer.cs): `Procedural Generation/Library/PackageCache/com.unity.postprocessing@2.2.2/PostProcessing/Runtime/PostProcessLayer.cs`
- [Render Context](https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.postprocessing%402.2.2/PostProcessing/Runtime/PostProcessRenderContext.cs): `Procedural Generation/Library/PackageCache/com.unity.postprocessing@2.2.2/PostProcessing/Runtime/PostProcessRenderContext.cs`
- [Runtime Utilities](https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.postprocessing%402.2.2/PostProcessing/Runtime/Utils/RuntimeUtilities.cs): `Procedural Generation/Library/PackageCache/com.unity.postprocessing@2.2.2/PostProcessing/Runtime/Utils/RuntimeUtilities.cs`

### Editor Authoring

- [Shader Graph Data](https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.shadergraph%407.1.8/Editor/Data/Graphs/GraphData.cs): `Procedural Generation/Library/PackageCache/com.unity.shadergraph@7.1.8/Editor/Data/Graphs/GraphData.cs`
- [Preview Manager](https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.shadergraph%407.1.8/Editor/Drawing/PreviewManager.cs): `Procedural Generation/Library/PackageCache/com.unity.shadergraph@7.1.8/Editor/Drawing/PreviewManager.cs`
- [Preview Resources](https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.shadergraph%407.1.8/Editor/Drawing/Views/PreviewSceneResources.cs): `Procedural Generation/Library/PackageCache/com.unity.shadergraph@7.1.8/Editor/Drawing/Views/PreviewSceneResources.cs`
- [Core Editor Utils](https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.render-pipelines.core%407.1.8/Editor/CoreEditorUtils.cs): `Procedural Generation/Library/PackageCache/com.unity.render-pipelines.core@7.1.8/Editor/CoreEditorUtils.cs`
- [Timeline State](https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.timeline%401.2.12/Editor/State/WindowState.cs): `Procedural Generation/Library/PackageCache/com.unity.timeline@1.2.12/Editor/State/WindowState.cs`
- [Timeline Graphics](https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.timeline%401.2.12/Editor/Utilities/Graphics.cs): `Procedural Generation/Library/PackageCache/com.unity.timeline@1.2.12/Editor/Utilities/Graphics.cs`
- [Timeline Styles](https://github.com/nfleig/procedural-terrain/blob/main/Procedural%20Generation/Library/PackageCache/com.unity.timeline%401.2.12/Editor/Signals/Styles.cs): `Procedural Generation/Library/PackageCache/com.unity.timeline@1.2.12/Editor/Signals/Styles.cs`

## Connections

- Pipeline Asset → URP Pipeline: creates (evidence: `Procedural Generation/Library/PackageCache/com.unity.render-pipelines.universal@7.1.8/Runtime/Data/UniversalRenderPipelineAsset.cs`)
- Pipeline Asset → Scriptable Renderer: creates renderer (evidence: `Procedural Generation/Library/PackageCache/com.unity.render-pipelines.universal@7.1.8/Runtime/Data/UniversalRenderPipelineAsset.cs`)
- URP Pipeline → Scriptable Renderer: executes (evidence: `Procedural Generation/Library/PackageCache/com.unity.render-pipelines.universal@7.1.8/Runtime/UniversalRenderPipeline.cs`)
- URP Pipeline → Core Utilities: uses (evidence: `Procedural Generation/Library/PackageCache/com.unity.render-pipelines.universal@7.1.8/Runtime/UniversalRenderPipeline.cs`)
- URP Pipeline → XR Graphics: uses (evidence: `Procedural Generation/Library/PackageCache/com.unity.render-pipelines.universal@7.1.8/Runtime/UniversalRenderPipeline.cs`)
- Volume Component → Volume Manager: registers with (evidence: `Procedural Generation/Library/PackageCache/com.unity.render-pipelines.core@7.1.8/Runtime/Volume/Volume.cs`)
- Volume Manager → Volume Component: reads volumes (evidence: `Procedural Generation/Library/PackageCache/com.unity.render-pipelines.core@7.1.8/Runtime/Volume/VolumeManager.cs`)
- Preview Manager → Shader Graph Data: reads graph (evidence: `Procedural Generation/Library/PackageCache/com.unity.shadergraph@7.1.8/Editor/Drawing/PreviewManager.cs`)
- Preview Manager → Preview Resources: uses (evidence: `Procedural Generation/Library/PackageCache/com.unity.shadergraph@7.1.8/Editor/Drawing/PreviewManager.cs`)
- Preview Manager → Tessellation Mesh: references (evidence: `Procedural Generation/Library/PackageCache/com.unity.shadergraph@7.1.8/Editor/Drawing/PreviewManager.cs`)
- Game → URP Pipeline: mentions (evidence: `Procedural Generation/Library/PackageCache/com.unity.render-pipelines.universal@7.1.8/Runtime/UniversalRenderPipeline.cs`)
- Post Process Layer → Render Context: uses (evidence: `Procedural Generation/Library/PackageCache/com.unity.postprocessing@2.2.2/PostProcessing/Runtime/PostProcessLayer.cs`)
- Post Process Layer → Runtime Utilities: uses (evidence: `Procedural Generation/Library/PackageCache/com.unity.postprocessing@2.2.2/PostProcessing/Runtime/PostProcessLayer.cs`)
- Timeline Graphics → Timeline State: draws with (evidence: `Procedural Generation/Library/PackageCache/com.unity.timeline@1.2.12/Editor/Utilities/Graphics.cs`)
