# merlin1809/eclipse-shader architecture

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

- Interactive diagram: https://gitdiagram.com/merlin1809/eclipse-shader
- Repository: https://github.com/merlin1809/eclipse-shader

## Overview

Eclipse is a Minecraft shader-pack edit of Bliss. The user installs the pack and the game renders its shader effects; the README documents the major additions, while the tree shows shader programs organized by render stage and world/dimension. No source excerpts were supplied, so relationships below are limited to documented capabilities rather than inferred shader calls or pass ordering. The README also names optional Photonics and Caelum support, but the tree only gives a concrete path for Photonics.

Main entry points: [`shaders`](https://github.com/merlin1809/eclipse-shader/tree/Unstable/shaders) (Eclipse shader pack), [`shaders/lib/scene_controller.glsl`](https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/lib/scene_controller.glsl) (Moon orbit and eclipses), [`shaders/lib/oceans_v2.glsl`](https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/lib/oceans_v2.glsl) (Water waves), [`shaders/world0/gbuffers_terrain.gsh`](https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/world0/gbuffers_terrain.gsh) (Shader grass)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_render["Shader Rendering"]
  node_pack["Eclipse shader pack"]
  node_passes["Render passes"]
  node_dimensions["Dimension variants"]
  node_config["Shader settings<br/>[shaders.properties]"]
end

subgraph group_world["World Effects"]
  node_eclipse["Moon orbit and eclipses"]
  node_water["Water waves<br/>[oceans_v2.glsl]"]
  node_grass["Shader grass"]
  node_clouds["Cloud layers"]
  node_snowrain["Snow and rain<br/>[ripples.glsl]"]
  node_distant["Distant Horizons<br/>[dh_terrain.fsh]"]
  node_moon["Moon phases<br/>[sky_gradient.glsl]"]
  node_aurora["Aurora and rainbow<br/>[aurora.glsl]"]
end

subgraph group_lighting["Lighting Effects"]
  node_endlight["End island lighting"]
  node_lightning["Lightning shadows"]
  node_emissives["Emissive materials<br/>[entities.glsl]"]
end

subgraph group_integrations["Integrations"]
  node_photonics["Photonics support<br/>[photonics.glsl]"]
  node_caelum["Caelum support"]
end

node_player(("Minecraft user"))
node_game["Minecraft renderer"]

node_player -->|"installs"| node_pack
node_game -->|"renders with"| node_pack
node_pack -->|"adds"| node_eclipse
node_pack -->|"adds"| node_water
node_pack -->|"adds"| node_grass
node_pack -->|"adds"| node_clouds
node_pack -->|"adds"| node_snowrain
node_pack -->|"adds"| node_distant
node_pack -->|"adds"| node_moon
node_pack -->|"adds"| node_aurora
node_pack -->|"adds"| node_endlight
node_pack -->|"adds"| node_lightning
node_pack -->|"adds"| node_emissives
node_pack -.->|"supports"| node_photonics
node_pack -.->|"supports"| node_caelum

click node_pack "https://github.com/merlin1809/eclipse-shader/tree/Unstable/shaders"
click node_passes "https://github.com/merlin1809/eclipse-shader/tree/Unstable/shaders/world0"
click node_dimensions "https://github.com/merlin1809/eclipse-shader/tree/Unstable/shaders/dimensions"
click node_config "https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/shaders.properties"
click node_eclipse "https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/lib/scene_controller.glsl"
click node_water "https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/lib/oceans_v2.glsl"
click node_grass "https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/world0/gbuffers_terrain.gsh"
click node_clouds "https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/lib/volumetricClouds.glsl"
click node_snowrain "https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/lib/ripples.glsl"
click node_distant "https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/world0/dh_terrain.fsh"
click node_moon "https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/lib/sky_gradient.glsl"
click node_aurora "https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/lib/aurora.glsl"
click node_endlight "https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/lib/indirect_lighting_effects.glsl"
click node_lightning "https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/lib/lightning_stuff.glsl"
click node_emissives "https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/lib/entities.glsl"
click node_photonics "https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/photonics/photonics.glsl"
click node_caelum "https://github.com/merlin1809/eclipse-shader/tree/Unstable/shaders"

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_pack,node_passes,node_dimensions,node_config,node_player toneBlue
class node_eclipse,node_water,node_grass,node_clouds,node_snowrain,node_distant,node_moon,node_aurora toneAmber
class node_endlight,node_lightning,node_emissives toneMint
class node_photonics,node_caelum toneRose
class node_game toneIndigo
```

## Components

### Shader Rendering

- [Eclipse shader pack](https://github.com/merlin1809/eclipse-shader/tree/Unstable/shaders): `shaders`
- [Render passes](https://github.com/merlin1809/eclipse-shader/tree/Unstable/shaders/world0): `shaders/world0`
- [Dimension variants](https://github.com/merlin1809/eclipse-shader/tree/Unstable/shaders/dimensions): `shaders/dimensions`
- [Shader settings](https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/shaders.properties): `shaders/shaders.properties`

### World Effects

- [Moon orbit and eclipses](https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/lib/scene_controller.glsl): `shaders/lib/scene_controller.glsl`
- [Water waves](https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/lib/oceans_v2.glsl): `shaders/lib/oceans_v2.glsl`
- [Shader grass](https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/world0/gbuffers_terrain.gsh): `shaders/world0/gbuffers_terrain.gsh`
- [Cloud layers](https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/lib/volumetricClouds.glsl): `shaders/lib/volumetricClouds.glsl`
- [Snow and rain](https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/lib/ripples.glsl): `shaders/lib/ripples.glsl`
- [Distant Horizons](https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/world0/dh_terrain.fsh): `shaders/world0/dh_terrain.fsh`
- [Moon phases](https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/lib/sky_gradient.glsl): `shaders/lib/sky_gradient.glsl`
- [Aurora and rainbow](https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/lib/aurora.glsl): `shaders/lib/aurora.glsl`

### Lighting Effects

- [End island lighting](https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/lib/indirect_lighting_effects.glsl): `shaders/lib/indirect_lighting_effects.glsl`
- [Lightning shadows](https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/lib/lightning_stuff.glsl): `shaders/lib/lightning_stuff.glsl`
- [Emissive materials](https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/lib/entities.glsl): `shaders/lib/entities.glsl`

### Integrations

- [Photonics support](https://github.com/merlin1809/eclipse-shader/blob/Unstable/shaders/photonics/photonics.glsl): `shaders/photonics/photonics.glsl`
- [Caelum support](https://github.com/merlin1809/eclipse-shader/tree/Unstable/shaders): `shaders`

### Other components

- **Minecraft user**
- **Minecraft renderer**

## Connections

- Minecraft user → Eclipse shader pack: installs (evidence: `README.md`)
- Minecraft renderer → Eclipse shader pack: renders with (evidence: `README.md`)
- Eclipse shader pack → Moon orbit and eclipses: adds (evidence: `README.md`)
- Eclipse shader pack → Water waves: adds (evidence: `README.md`)
- Eclipse shader pack → Shader grass: adds (evidence: `README.md`)
- Eclipse shader pack → Cloud layers: adds (evidence: `README.md`)
- Eclipse shader pack → Snow and rain: adds (evidence: `README.md`)
- Eclipse shader pack → Distant Horizons: adds (evidence: `README.md`)
- Eclipse shader pack → Moon phases: adds (evidence: `README.md`)
- Eclipse shader pack → Aurora and rainbow: adds (evidence: `README.md`)
- Eclipse shader pack → End island lighting: adds (evidence: `README.md`)
- Eclipse shader pack → Lightning shadows: adds (evidence: `README.md`)
- Eclipse shader pack → Emissive materials: adds (evidence: `README.md`)
- Eclipse shader pack → Photonics support: supports (evidence: `README.md`)
- Eclipse shader pack → Caelum support: supports (evidence: `README.md`)
