From b0dde6eda2433e75bdea2da459b0c1f2dbbd8360 Mon Sep 17 00:00:00 2001 From: chyyran Date: Sat, 28 Jan 2023 13:11:14 -0500 Subject: [PATCH] d3d11/vk: fix default mvp --- librashader-runtime-d3d11/src/render_target.rs | 2 +- librashader-runtime-vk/src/render_target.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/librashader-runtime-d3d11/src/render_target.rs b/librashader-runtime-d3d11/src/render_target.rs index 5e27326..e52a7c0 100644 --- a/librashader-runtime-d3d11/src/render_target.rs +++ b/librashader-runtime-d3d11/src/render_target.rs @@ -7,7 +7,7 @@ use windows::Win32::Graphics::Direct3D11::D3D11_VIEWPORT; static DEFAULT_MVP: &[f32; 16] = &[ 2f32, 0.0, 0.0, 0.0, 0.0, 2.0, 0.0, 0.0, - 0.0, 0.0, 2.0, 0.0, + 0.0, 0.0, 0.0, 0.0, -1.0, -1.0, 0.0, 1.0, ]; diff --git a/librashader-runtime-vk/src/render_target.rs b/librashader-runtime-vk/src/render_target.rs index 524d4a2..f3c1bae 100644 --- a/librashader-runtime-vk/src/render_target.rs +++ b/librashader-runtime-vk/src/render_target.rs @@ -4,7 +4,7 @@ use crate::framebuffer::OutputImage; pub(crate) static DEFAULT_MVP: &[f32; 16] = &[ 2f32, 0.0, 0.0, 0.0, 0.0, 2.0, 0.0, 0.0, - 0.0, 0.0, 2.0, 0.0, + 0.0, 0.0, 0.0, 0.0, -1.0, -1.0, 0.0, 1.0, ];