re_renderer::transform

Function ndc_from_pixel

Source
pub fn ndc_from_pixel(pixel_coord: Vec2, screen_extent: UVec2) -> Vec2
Expand description

Transforms texture coordinates to normalized device coordinates (NDC).