Files
horizon-airdef/examples/shaderpacks/horizon-ultra/pack.toml
T
Ludovic Marie eafe97da74 Shader packs: keep what Iris does, drop what doesn't work, apply settings on Done
Review fixes for #1414 (contribution gate):

- Java packs no longer get Horizon's shadow map: it was mirrored in y and
  reversed in depth against the GL conventions the packs sample with, had
  no distortion and only the camera's sections, so BSL drew no shadows
  while the pass cost 0.65 ms (MakeUp, M4 Pro). shadowtex* stays a far
  depth, as on main; the packs' own shadow programs are #1326.
- Invented uniforms removed (centerDepthSmooth fixed at 0.5,
  ambientOcclusionLevel and shadowMapResolution as uniforms, constant
  temp/rainfall/biome/held items); an unknown uniform stays zero as
  before. wetness keeps its Iris smoothing. Unused directives removed.
- texture.<stage>.<sampler> is scoped to Iris's stages (final reads the
  composite ones) instead of overriding the sampler in every pass;
  texture.noise replaces noisetex. One noise generator and one RGBA
  upload for both pack kinds.
- The G-buffer pass, the opaque-depth copy and the shadow pass run only
  for a pack that reads them (naga's per-entry-point binding use, not a
  text search): every pack paid all three before.
- Api 2's prelude additions go in their own file after api 1's, so api 1
  packs keep the names they declare (aces_tonemap, material_at...).
- Stage kinds shadow, gbuffer, deferred and final ran as composite: only
  composite is accepted; api 2 adds formats (validated), profiles,
  option descriptions and a noise texture.
- Shader Pack Settings applies once when the page closes, as Iris's Done
  (each click or slider step rebuilt the pack: 2.7 s per click, 12.7 s
  for one drag with BSL). Labels follow Iris (.lang, else the name).
  A pack whose options can't be read isn't read again every frame.
- Saved option values an option doesn't list are ignored, as OptiFine's
  ShaderOption.setValue (a stale file broke BSL's compile).
- Import: the blocking file dialog (osascript/zenity/kdialog/PowerShell
  on the event loop) is gone; a pack dropped on the Shader Packs page is
  copied and picked, as Iris's onFilesDrop. Drops elsewhere do nothing,
  an existing pack isn't overwritten, links aren't followed.
- Docs and the example say what the code does (SSAO, not GTAO).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 14:02:12 +02:00

134 lines
2.9 KiB
TOML

# Horizon Ultra: multi-pass API 2 WGSL shader pack with PCF directional shadows,
# screen-space AO, water SSR & absorption, screen-space godrays, HDR bloom and ACES tonemapping.
[pack]
name = "Horizon Ultra"
description = "PCF sun/moon shadows, ambient occlusion, water reflections, godrays, bloom and ACES filmic tonemapping."
authors = ["Horizon contributors"]
version = "2.0.0"
license = "MIT"
api = 2
[[stage]]
kind = "composite"
shader = "shaders/deferred_lighting.wgsl"
format = "rgba16float"
[[stage]]
kind = "composite"
shader = "shaders/water_reflections.wgsl"
format = "rgba16float"
[[stage]]
kind = "composite"
shader = "shaders/bloom_godrays.wgsl"
scale = 0.5
format = "rgba16float"
[[stage]]
kind = "composite"
shader = "shaders/final_tonemap.wgsl"
[profiles.low]
shadows = false
ao_strength = 0.25
water_ssr = false
godrays = false
bloom_strength = 0.15
tonemap_aces = true
vignette = false
[profiles.medium]
shadows = true
shadow_strength = 0.70
ao_strength = 0.50
water_ssr = true
godrays = true
bloom_strength = 0.25
tonemap_aces = true
vignette = true
[profiles.high]
shadows = true
shadow_strength = 0.85
ao_strength = 0.75
water_ssr = true
godrays = true
bloom_strength = 0.35
tonemap_aces = true
vignette = true
[profiles.ultra]
shadows = true
shadow_strength = 1.0
ao_strength = 1.0
water_ssr = true
godrays = true
bloom_strength = 0.45
tonemap_aces = true
vignette = true
[options.shadows]
label = "Directional Shadows"
description = "Cast real-time sun and moon PCF shadows across terrain and entities."
default = true
[options.shadow_strength]
label = "Shadow Strength"
description = "Intensity of directional sun and moon shadows."
default = 0.85
min = 0.0
max = 1.0
step = 0.05
[options.ao_strength]
label = "Ambient Occlusion"
description = "Screen-space ambient occlusion in corners and crevices."
default = 0.75
min = 0.0
max = 1.5
step = 0.05
[options.water_ssr]
label = "Water Reflections & Refraction"
description = "Screen-space sky and terrain reflections on water and translucent surfaces."
default = true
[options.godrays]
label = "Godrays"
description = "Atmospheric light shafts cast through trees and terrain towards the sun."
default = true
[options.bloom_strength]
label = "HDR Bloom"
description = "Soft glow around bright sky, lava, torches and emissive blocks."
default = 0.35
min = 0.0
max = 1.0
step = 0.05
[options.exposure]
label = "Exposure"
description = "Overall scene exposure multiplier before filmic tonemapping."
default = 1.10
min = 0.5
max = 2.0
step = 0.05
[options.saturation]
label = "Color Saturation"
description = "Color vibrancy of the final tonemapped image."
default = 1.12
min = 0.0
max = 2.0
step = 0.05
[options.tonemap_aces]
label = "ACES Filmic Tonemap"
description = "Apply ACES fitted filmic curve to preserve highlight detail."
default = true
[options.vignette]
label = "Cinematic Vignette"
description = "Subtle darkening at the edges of the viewport."
default = true