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.

optical_flow.wgsl

Import path

Functions

calculate_motion_vector

#
fn calculate_motion_vector (
world_position: vec3<f32>
previous_world_position: vec3<f32>
) -> vec2<f32>

optical_flow_to_rgb

#
fn optical_flow_to_rgb (
motion_vector: vec2<f32>
) -> vec3<f32>