pub fn screen_to_clip_scale(
screen_size: PhysicalSizeI32,
scale_factor: ScaleFactor,
) -> [f32; 2]
Expand description
Returns a scaling vector that can be used to convert screen coordinates to clip coordinates in shaders.
pub fn screen_to_clip_scale(
screen_size: PhysicalSizeI32,
scale_factor: ScaleFactor,
) -> [f32; 2]
Returns a scaling vector that can be used to convert screen coordinates to clip coordinates in shaders.