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

PREMULTIPLIED_ALPHA_CUTOFF

#
const PREMULTIPLIED_ALPHA_CUTOFF: AbstractFloat = 0.05

Functions

prepass_alpha_discard

#

We can use a simplified version of alpha_discard() here since we only need to handle the alpha_cutoff

fn prepass_alpha_discard ( )

calculate_motion_vector

#
Active when
MOTION_VECTOR_PREPASS
fn calculate_motion_vector (
world_position: vec4<f32>,
previous_world_position: vec4<f32>
) -> vec2<f32>
Contents