/// Returns a clip correction matrix to account for the Vulkan coordinate system.
///
/// Vulkan clip space has inverted Y and half Z.
///
/// https://github.com/LunarG/VulkanSamples/commit/0dd36179880238014512c0637b0ba9f41febe803
///
/// https://matthewwellings.com/blog/the-new-vulkan-coordinate-system/
///
/// http://anki3d.org/vulkan-coordinate-system/
///
/// ```glsl
/// gl_Position = clip * projection * view * model * vec4(position, 1.0);
/// ```
Returns a clip correction matrix to account for the Vulkan coordinate system.
Vulkan clip space has inverted Y and half Z.








Returns a clip correction matrix to account for the Vulkan coordinate system . Vulkan clip space has inverted Y and half Z .
pub fn clip_correction_matrix() -> Matrix4<f32> {
    let mut clip = cgmath::Matrix4::identity();
    clip[1][1] = -1.0;
    clip[2][2] = 0.5;
    clip[3][2] = 0.5;
    clip
}
pub fn clip_correction_matrix ( ) -> Matrix4 < f32 > { let mut clip = cgmath :: Matrix4 :: identity ( ) ; clip [ 1 ] [ 1 ] = - 1.0 ; clip [ 2 ] [ 2 ] = 0.5 ; clip [ 3 ] [ 2 ] = 0.5 ; clip }
Returns a clip correction matrix to account for the Vulkan coordinate system.
Returns a clip correction matrix to account for the Vulkan coordinate system .