Advanced search tips: use spaces to require multiple terms (AND), | for alternatives (OR), wrap phrases in quotes (="a b"), =term for exact match, 'term to include, !term to exclude, ^term to match prefix, !^term to exclude prefix, .ext$ to match suffix, and !.ext$ to exclude suffix.

lens_distortion.wgsl

Import path

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

#
fn lens_distortion ( ) -> vec2<f32>