From 05618bf40a6ed8bf91d3ce05a3a761c57afcb082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tur=C3=A1nszki=20J=C3=A1nos?= Date: Wed, 27 Mar 2024 07:38:00 +0100 Subject: [PATCH] fixes --- WickedEngine/shaders/ssr_raytraceCS.hlsl | 2 +- WickedEngine/wiScene_Components.cpp | 2 -- WickedEngine/wiVersion.cpp | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/WickedEngine/shaders/ssr_raytraceCS.hlsl b/WickedEngine/shaders/ssr_raytraceCS.hlsl index b01e8b844..dad1edb40 100644 --- a/WickedEngine/shaders/ssr_raytraceCS.hlsl +++ b/WickedEngine/shaders/ssr_raytraceCS.hlsl @@ -368,7 +368,7 @@ void main(uint3 Gid : SV_GroupID, uint3 GTid : SV_GroupThreadID) if (validHit) { - const float3 Phit = reconstruct_position(jitterUV, hit.z, GetCamera().inverse_projection); + const float3 Phit = reconstruct_position(jitterUV, hit.z); output_rayLengths[pixel] = distance(P, Phit); } else diff --git a/WickedEngine/wiScene_Components.cpp b/WickedEngine/wiScene_Components.cpp index 20d984c3f..703c280ce 100644 --- a/WickedEngine/wiScene_Components.cpp +++ b/WickedEngine/wiScene_Components.cpp @@ -2054,8 +2054,6 @@ namespace wi::scene XMStoreFloat4x4(&InvView, _InvV); XMStoreFloat3x3(&rotationMatrix, _InvV); XMStoreFloat4x4(&InvVP, XMMatrixInverse(nullptr, _VP)); - XMStoreFloat4x4(&Projection, _P); - XMStoreFloat4x4(&InvProjection, XMMatrixInverse(nullptr, _P)); frustum.Create(_VP); } diff --git a/WickedEngine/wiVersion.cpp b/WickedEngine/wiVersion.cpp index a97e0eccb..16b7a5560 100644 --- a/WickedEngine/wiVersion.cpp +++ b/WickedEngine/wiVersion.cpp @@ -9,7 +9,7 @@ namespace wi::version // minor features, major updates, breaking compatibility changes const int minor = 71; // minor bug fixes, alterations, refactors, updates - const int revision = 413; + const int revision = 414; const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);