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.

Constants

VISUAL_THRESHOLD

#
const VISUAL_THRESHOLD: f32 = 1e-4

MATH_EPSILON

#
const MATH_EPSILON: f32 = 1e-6

Bindings

lens_distortion_settings

#
@group(0)
@binding(5)
var<uniform> lens_distortion_settings: LensDistortionSettings

Structures

LensDistortionSettings

#

See bevy_post_process::effect_stack::LensDistortion for more information on these fields.

struct LensDistortionSettings {
intensity: f32,
scale: f32,
multiplier: vec2<f32>,
center: vec2<f32>,
edge_curvature: f32,
unused: u32,
}

Functions

lens_distortion

#
Used by 1 shader in bevy_post_process 0.19.1
fn lens_distortion (
uv: vec2<f32>
) -> vec2<f32>
Contents