Skip to content

Minecraft: Java Edition 26.3 rewritten from scratch in Rust, checked against vanilla with 281 differential harnesses. Get it with the Horizon launcher.

287 B
Raw Blame
override vignette: bool = true;
override samples: i32 = 4;

fn post(input: PostInput) -> vec4<f32> {
    let d = distance(input.uv, vec2<f32>(0.5));
    let dark = select(1.0, 1.0 - smoothstep(0.4, 0.9, d) * 0.5, vignette);
    return vec4<f32>(input.color.rgb * dark, input.color.a);
}