From 563d5271da15e4a8de299eb2598a341fbff92d87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tur=C3=A1nszki=20J=C3=A1nos?= Date: Wed, 29 Dec 2021 23:33:23 +0100 Subject: [PATCH] minor water ripple update --- WickedEngine/wiRenderPath3D.cpp | 11 ++++------- WickedEngine/wiVersion.cpp | 2 +- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/WickedEngine/wiRenderPath3D.cpp b/WickedEngine/wiRenderPath3D.cpp index 14b0f8ca6..1819d97eb 100644 --- a/WickedEngine/wiRenderPath3D.cpp +++ b/WickedEngine/wiRenderPath3D.cpp @@ -107,8 +107,8 @@ void RenderPath3D::ResizeBuffers() TextureDesc desc; desc.bind_flags = BindFlag::RENDER_TARGET | BindFlag::SHADER_RESOURCE; desc.format = Format::R16G16_FLOAT; - desc.width = internalResolution.x; - desc.height = internalResolution.y; + desc.width = internalResolution.x / 8; + desc.height = internalResolution.y / 8; device->CreateTexture(&desc, nullptr, &rtWaterRipple); device->SetName(&rtWaterRipple, "rtWaterRipple"); } @@ -1303,20 +1303,17 @@ void RenderPath3D::RenderTransparents(CommandList cmd) const GraphicsDevice* device = wi::graphics::GetDevice(); // Water ripple rendering: + device->RenderPassBegin(&renderpass_waterripples, cmd); // always clear the water ripple rt, because it will always be sampled, whether there were any ripples or not if(!scene->waterRipples.empty()) { - device->RenderPassBegin(&renderpass_waterripples, cmd); - Viewport vp; vp.width = (float)rtWaterRipple.GetDesc().width; vp.height = (float)rtWaterRipple.GetDesc().height; device->BindViewports(1, &vp, cmd); wi::renderer::DrawWaterRipples(visibility_main, cmd); - - device->RenderPassEnd(cmd); } - + device->RenderPassEnd(cmd); device->RenderPassBegin(&renderpass_transparent, cmd); diff --git a/WickedEngine/wiVersion.cpp b/WickedEngine/wiVersion.cpp index bc0f4642b..80d1cb405 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 = 60; // minor bug fixes, alterations, refactors, updates - const int revision = 8; + const int revision = 9; const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);