Use previous frame's image (plus motion vectors) in blur textures

Signed-off-by: Kai Blaschke <kai.blaschke@kb-dev.net>
This commit is contained in:
yoyofr
2025-11-10 12:27:17 +01:00
committed by Kai Blaschke
parent e3a4ddf04d
commit e3f19db745

View File

@ -120,7 +120,7 @@ void MilkdropPreset::RenderFrame(const libprojectM::Audio::FrameAudioData& audio
// Update blur textures
{
const auto warpedImage = m_framebuffer.GetColorAttachmentTexture(m_currentFrameBuffer, 0);
const auto warpedImage = m_framebuffer.GetColorAttachmentTexture(m_previousFrameBuffer, 0);
assert(warpedImage.get());
m_state.blurTexture.Update(*warpedImage, m_perFrameContext);
}