# kristijan1001/hytale-aurora-shaders architecture

> Architecture diagram of the GitHub repository kristijan1001/hytale-aurora-shaders, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kristijan1001/hytale-aurora-shaders
- Repository: https://github.com/kristijan1001/hytale-aurora-shaders

## Overview

Aurora is a Hytale shader pack with native runtime hooks, an in-game settings menu, and platform-specific installation. The main workflow is install or update, prepare shaders from the game client, load the pack through the hook, then render with the selected effects and settings. The shader pack covers atmosphere, lighting, water, post-processing and temporal AA; Windows also has DLSS and frame-generation support. Edges follow README statements or the shown source index; unsampled implementation details are not inferred.

Main entry points: [`hook/hook.c`](https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/hook/hook.c) (Graphics Hook), [`shaderpack/include`](https://github.com/kristijan1001/hytale-aurora-shaders/tree/main/shaderpack/include) (Shader Includes), [`tools/linux_install.py`](https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/tools/linux_install.py) (Linux Installer), [`shaderpack/programs`](https://github.com/kristijan1001/hytale-aurora-shaders/tree/main/shaderpack/programs) (Shader Programs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_install["Installation"]
  node_linux_install["Linux Installer<br/>[linux_install.py]"]
  node_linux_hook["Linux Hook Setup<br/>[linux_hook.py]"]
  node_prepare["Shader Preparation<br/>[prepare_shaders.py]"]
end

subgraph group_runtime["Runtime Hook"]
  node_hook["Graphics Hook<br/>[hook.c]"]
  node_menu["Settings Menu<br/>[menu_sdl.h]"]
  node_profiles["Settings Profiles<br/>[profiles.h]"]
  node_temporal["Temporal AA<br/>[temporal.h]"]
end

subgraph group_shaders["Shader Pack"]
  node_shader_programs["Shader Programs"]
  node_shader_includes["Shader Includes"]
  node_settings["Shader Settings<br/>[AU_Settings.glsl]"]
end

subgraph group_features["Rendering Features"]
  node_atmosphere["Atmosphere Effects<br/>[AU_Clouds.glsl]"]
  node_lighting["Lighting and RTX<br/>[AU_Lighting.glsl]"]
  node_water["Water Effects"]
  node_post["Post Processing<br/>[PostEffectFS.glsl]"]
  node_dlss["DLSS Bridge<br/>[aud_dlss.c]"]
  node_framegen["Frame Generation<br/>[aud_framegen.cpp]"]
end

node_user(("Player"))
node_hytale["Hytale Client"]

node_user -->|"installs or updates"| node_linux_install
node_linux_install -->|"prepares shaders"| node_prepare
node_linux_install -->|"installs proxy"| node_linux_hook
node_user -->|"launches"| node_hytale
node_hytale -->|"loads hook"| node_hook
node_hook -->|"replaces shaders"| node_shader_programs
node_hook -->|"reloads on changes"| node_shader_includes
node_hook -->|"uses menu input"| node_menu
node_hook -->|"uses profiles"| node_profiles
node_hook -->|"uses temporal AA"| node_temporal
node_menu -->|"edits settings"| node_settings
node_shader_programs -.->|"includes effects"| node_shader_includes
node_shader_includes -.->|"reads options"| node_settings
node_shader_includes -.->|"implements effects"| node_atmosphere
node_shader_includes -.->|"implements effects"| node_lighting
node_shader_includes -.->|"implements effects"| node_water
node_shader_programs -.->|"implements post effects"| node_post
node_hook -->|"calls DLSS bridge"| node_dlss
node_hook -.->|"integrates frame generation"| node_framegen

click node_linux_install "https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/tools/linux_install.py"
click node_linux_hook "https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/tools/linux_hook.py"
click node_prepare "https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/tools/prepare_shaders.py"
click node_hook "https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/hook/hook.c"
click node_menu "https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/hook/menu_sdl.h"
click node_profiles "https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/hook/profiles.h"
click node_temporal "https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/hook/temporal.h"
click node_shader_programs "https://github.com/kristijan1001/hytale-aurora-shaders/tree/main/shaderpack/programs"
click node_shader_includes "https://github.com/kristijan1001/hytale-aurora-shaders/tree/main/shaderpack/include"
click node_settings "https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/shaderpack/include/AU_Settings.glsl"
click node_atmosphere "https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/shaderpack/include/AU_Clouds.glsl"
click node_lighting "https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/shaderpack/include/AU_Lighting.glsl"
click node_water "https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/shaderpack/include/AU_Transmission.glsl"
click node_post "https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/shaderpack/programs/PostEffectFS.glsl"
click node_dlss "https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/hook/aud_dlss.c"
click node_framegen "https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/hook/aud_framegen.cpp"

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_linux_install,node_linux_hook,node_prepare,node_hytale toneBlue
class node_hook,node_menu,node_profiles,node_temporal toneAmber
class node_shader_programs,node_shader_includes,node_settings toneMint
class node_atmosphere,node_lighting,node_water,node_post,node_dlss,node_framegen toneRose
class node_user toneIndigo
```

## Components

### Installation

- [Linux Installer](https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/tools/linux_install.py): `tools/linux_install.py`
- [Linux Hook Setup](https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/tools/linux_hook.py): `tools/linux_hook.py`
- [Shader Preparation](https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/tools/prepare_shaders.py): `tools/prepare_shaders.py`

### Runtime Hook

- [Graphics Hook](https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/hook/hook.c): `hook/hook.c`
- [Settings Menu](https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/hook/menu_sdl.h): `hook/menu_sdl.h`
- [Settings Profiles](https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/hook/profiles.h): `hook/profiles.h`
- [Temporal AA](https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/hook/temporal.h): `hook/temporal.h`

### Shader Pack

- [Shader Programs](https://github.com/kristijan1001/hytale-aurora-shaders/tree/main/shaderpack/programs): `shaderpack/programs`
- [Shader Includes](https://github.com/kristijan1001/hytale-aurora-shaders/tree/main/shaderpack/include): `shaderpack/include`
- [Shader Settings](https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/shaderpack/include/AU_Settings.glsl): `shaderpack/include/AU_Settings.glsl`

### Rendering Features

- [Atmosphere Effects](https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/shaderpack/include/AU_Clouds.glsl): `shaderpack/include/AU_Clouds.glsl`
- [Lighting and RTX](https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/shaderpack/include/AU_Lighting.glsl): `shaderpack/include/AU_Lighting.glsl`
- [Water Effects](https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/shaderpack/include/AU_Transmission.glsl): `shaderpack/include/AU_Transmission.glsl`
- [Post Processing](https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/shaderpack/programs/PostEffectFS.glsl): `shaderpack/programs/PostEffectFS.glsl`
- [DLSS Bridge](https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/hook/aud_dlss.c): `hook/aud_dlss.c`
- [Frame Generation](https://github.com/kristijan1001/hytale-aurora-shaders/blob/main/hook/aud_framegen.cpp): `hook/aud_framegen.cpp`

### Other components

- **Player**
- **Hytale Client**

## Connections

- Player → Linux Installer: installs or updates (evidence: `README.md`)
- Linux Installer → Shader Preparation: prepares shaders (evidence: `tools/linux_install.py`)
- Linux Installer → Linux Hook Setup: installs proxy (evidence: `tools/linux_install.py`)
- Player → Hytale Client: launches (evidence: `README.md`)
- Hytale Client → Graphics Hook: loads hook (evidence: `README.md`)
- Graphics Hook → Shader Programs: replaces shaders (evidence: `hook/hook.c`)
- Graphics Hook → Shader Includes: reloads on changes (evidence: `hook/hook.c`)
- Graphics Hook → Settings Menu: uses menu input (evidence: `hook/hook.c`)
- Graphics Hook → Settings Profiles: uses profiles (evidence: `hook/hook.c`)
- Graphics Hook → Temporal AA: uses temporal AA (evidence: `hook/hook.c`)
- Settings Menu → Shader Settings: edits settings (evidence: `README.md`)
- Shader Programs → Shader Includes: includes effects
- Shader Includes → Shader Settings: reads options
- Shader Includes → Atmosphere Effects: implements effects
- Shader Includes → Lighting and RTX: implements effects
- Shader Includes → Water Effects: implements effects
- Shader Programs → Post Processing: implements post effects
- Graphics Hook → DLSS Bridge: calls DLSS bridge (evidence: `hook/hook.c`)
- Graphics Hook → Frame Generation: integrates frame generation
