Search across packages, versions, files, declarations, and comments. Use multiple terms to narrow results (AND), and add @vertex, @fragment, or @compute to filter by shader stage.
1// Miscellaneous postprocessing effects, currently just chromatic aberration.
3#import bevy_core_pipeline::fullscreen_vertex_shader::FullscreenVertexOutput
4#import bevy_core_pipeline::post_processing::chromatic_aberration::chromatic_aberration
6@fragment
7fn fragment_main(in: FullscreenVertexOutput) -> @location(0) vec4<f32> {
8 return vec4(chromatic_aberration(in.uv), 1.0);
9}
Contents