bevy_post_process 0.18.0

Provides post process effects for Bevy Engine.
Documentation
1
2
3
4
5
6
7
8
9
// Miscellaneous postprocessing effects, currently just chromatic aberration.

#import bevy_core_pipeline::fullscreen_vertex_shader::FullscreenVertexOutput
#import bevy_core_pipeline::post_processing::chromatic_aberration::chromatic_aberration

@fragment
fn fragment_main(in: FullscreenVertexOutput) -> @location(0) vec4<f32> {
    return vec4(chromatic_aberration(in.uv), 1.0);
}