9739740379
shader_pack.rs reads shaderpacks/<pack>/pack.toml, the player's option values (shaderpacks/<pack>.txt) and each composite stage's WGSL, puts the api 1 prelude (bindings, the Frame uniform, depth helpers) before it and has naga parse and validate it, with errors pointing into the pack's own file. Options are WGSL override constants. A file stamp tells when the pack was edited, for hot reload. Nothing draws with it yet. examples/shaderpacks/horizon-sample is the MIT sample pack. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
36 lines
675 B
TOML
36 lines
675 B
TOML
# The sample Horizon shader pack (docs/shader-packs.md). Copy this folder into
|
|
# `shaderpacks/` beside options.txt and pick it in Video Settings > Shader Packs.
|
|
[pack]
|
|
name = "Horizon Sample"
|
|
description = "A warm grade, sun-lit haze and a soft vignette."
|
|
authors = ["Horizon contributors"]
|
|
version = "1.0.0"
|
|
license = "MIT"
|
|
api = 1
|
|
|
|
[[stage]]
|
|
kind = "composite"
|
|
shader = "shaders/golden_hour.wgsl"
|
|
|
|
[options.saturation]
|
|
label = "Saturation"
|
|
default = 1.15
|
|
min = 0.0
|
|
max = 2.0
|
|
step = 0.05
|
|
|
|
[options.warmth]
|
|
label = "Warmth"
|
|
default = 0.35
|
|
min = 0.0
|
|
max = 1.0
|
|
step = 0.05
|
|
|
|
[options.haze]
|
|
label = "Sun haze"
|
|
default = true
|
|
|
|
[options.vignette]
|
|
label = "Vignette"
|
|
default = true
|