# kevinr0110/catedralsps-unity architecture

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

- Interactive diagram: https://gitdiagram.com/kevinr0110/catedralsps-unity
- Repository: https://github.com/kevinr0110/catedralsps-unity

## Overview

Catedral SPS 3D is a Unity virtual tour of San Pedro Sula’s cathedral and surrounding plaza. The main workflow is to launch the main scene, move through the exterior and interior in first person or orbit view, and adjust visual and audio options while exploring. The graph preserves documented procedural geometry, repeated prefabs, rendering effects, performance display, and bell audio. No source excerpts were provided, so relationships below are limited to capabilities and controls explicitly described in the README.

Main entry points: [`Assets/Scenes/Catedral_Main.unity`](https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scenes/Catedral_Main.unity) (Cathedral scene), [`Assets/Scripts/ControlCamaras.cs`](https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/ControlCamaras.cs) (Camera switching), [`Assets/Scripts/CamaraOrbital.cs`](https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/CamaraOrbital.cs) (Orbital camera), [`Assets/Scripts/CampanasTorres.cs`](https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/CampanasTorres.cs) (Tower bells)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Tour experience"]
  node_main_scene["Cathedral scene"]
  node_first_person["First-person movement<br/>[JugadorFPS.cs]"]
  node_orbit_camera["Orbital camera<br/>[CamaraOrbital.cs]"]
  node_camera_controls["Camera switching<br/>[ControlCamaras.cs]"]
end

subgraph group_scene["Scene and geometry"]
  node_geometry["Procedural geometry<br/>[Hemisferio.cs]"]
  node_prisms["Regular prisms<br/>[PrismaRegular.cs]"]
  node_prefab_repetition["Prefab repetition<br/>[Repetir.cs]"]
end

subgraph group_presentation["Visual presentation"]
  node_materials["PBR materials"]
  node_stained_glass["Stained glass shader"]
  node_lighting["Scene lighting<br/>[ControlLuces.cs]"]
  node_effects["Effects and fog<br/>[ControlEfectos.cs]"]
  node_fps_display["FPS display<br/>[ContadorFPS.cs]"]
end

subgraph group_interaction["Controls and audio"]
  node_pause_menu["Pause menu<br/>[MenuPausa.cs]"]
  node_bells["Tower bells<br/>[CampanasTorres.cs]"]
end

node_visitor(("Visitor"))

node_visitor -->|"starts tour"| node_main_scene
node_visitor -->|"moves and looks"| node_first_person
node_visitor -->|"switches view"| node_camera_controls
node_camera_controls -->|"selects view"| node_orbit_camera
node_visitor -->|"orbits and zooms"| node_orbit_camera
node_main_scene -->|"uses domes"| node_geometry
node_main_scene -->|"uses hexagons"| node_prisms
node_main_scene -->|"repeats prefabs"| node_prefab_repetition
node_main_scene -->|"renders with"| node_materials
node_main_scene -->|"renders vitrals"| node_stained_glass
node_visitor -->|"toggles lights"| node_lighting
node_visitor -->|"toggles effects"| node_effects
node_visitor -->|"views performance"| node_fps_display
node_visitor -->|"pauses tour"| node_pause_menu
node_visitor -->|"rings bells"| node_bells
node_main_scene -->|"hosts 3D audio"| node_bells

click node_main_scene "https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scenes/Catedral_Main.unity"
click node_first_person "https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/JugadorFPS.cs"
click node_orbit_camera "https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/CamaraOrbital.cs"
click node_camera_controls "https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/ControlCamaras.cs"
click node_geometry "https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/Hemisferio.cs"
click node_prisms "https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/PrismaRegular.cs"
click node_prefab_repetition "https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/Repetir.cs"
click node_materials "https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Shaders/SG_PBR_Mundo.shadergraph"
click node_stained_glass "https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Shaders/SG_Vitral.shadergraph"
click node_lighting "https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/ControlLuces.cs"
click node_effects "https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/ControlEfectos.cs"
click node_fps_display "https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/ContadorFPS.cs"
click node_pause_menu "https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/MenuPausa.cs"
click node_bells "https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/CampanasTorres.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_main_scene,node_first_person,node_orbit_camera,node_camera_controls toneBlue
class node_geometry,node_prisms,node_prefab_repetition toneAmber
class node_materials,node_stained_glass,node_lighting,node_effects,node_fps_display toneMint
class node_pause_menu,node_bells toneRose
class node_visitor toneIndigo
```

## Components

### Tour experience

- [Cathedral scene](https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scenes/Catedral_Main.unity): `Assets/Scenes/Catedral_Main.unity`
- [First-person movement](https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/JugadorFPS.cs): `Assets/Scripts/JugadorFPS.cs`
- [Orbital camera](https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/CamaraOrbital.cs): `Assets/Scripts/CamaraOrbital.cs`
- [Camera switching](https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/ControlCamaras.cs): `Assets/Scripts/ControlCamaras.cs`

### Scene and geometry

- [Procedural geometry](https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/Hemisferio.cs): `Assets/Scripts/Hemisferio.cs`
- [Regular prisms](https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/PrismaRegular.cs): `Assets/Scripts/PrismaRegular.cs`
- [Prefab repetition](https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/Repetir.cs): `Assets/Scripts/Repetir.cs`

### Visual presentation

- [PBR materials](https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Shaders/SG_PBR_Mundo.shadergraph): `Assets/Shaders/SG_PBR_Mundo.shadergraph`
- [Stained glass shader](https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Shaders/SG_Vitral.shadergraph): `Assets/Shaders/SG_Vitral.shadergraph`
- [Scene lighting](https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/ControlLuces.cs): `Assets/Scripts/ControlLuces.cs`
- [Effects and fog](https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/ControlEfectos.cs): `Assets/Scripts/ControlEfectos.cs`
- [FPS display](https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/ContadorFPS.cs): `Assets/Scripts/ContadorFPS.cs`

### Controls and audio

- [Pause menu](https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/MenuPausa.cs): `Assets/Scripts/MenuPausa.cs`
- [Tower bells](https://github.com/kevinr0110/catedralsps-unity/blob/main/Assets/Scripts/CampanasTorres.cs): `Assets/Scripts/CampanasTorres.cs`

### Other components

- **Visitor**

## Connections

- Visitor → Cathedral scene: starts tour (evidence: `README.md`)
- Visitor → First-person movement: moves and looks (evidence: `README.md`)
- Visitor → Camera switching: switches view (evidence: `README.md`)
- Camera switching → Orbital camera: selects view (evidence: `README.md`)
- Visitor → Orbital camera: orbits and zooms (evidence: `README.md`)
- Cathedral scene → Procedural geometry: uses domes (evidence: `README.md`)
- Cathedral scene → Regular prisms: uses hexagons (evidence: `README.md`)
- Cathedral scene → Prefab repetition: repeats prefabs (evidence: `README.md`)
- Cathedral scene → PBR materials: renders with (evidence: `README.md`)
- Cathedral scene → Stained glass shader: renders vitrals (evidence: `README.md`)
- Visitor → Scene lighting: toggles lights (evidence: `README.md`)
- Visitor → Effects and fog: toggles effects (evidence: `README.md`)
- Visitor → FPS display: views performance (evidence: `README.md`)
- Visitor → Pause menu: pauses tour (evidence: `README.md`)
- Visitor → Tower bells: rings bells (evidence: `README.md`)
- Cathedral scene → Tower bells: hosts 3D audio (evidence: `README.md`)
