Godot Engine – Multi-platform 2D and 3D game engine
Merge pull request #116082 from Kaleb-Reid/fix-smaa-temporal
Thaddeus Crewsf90ac941d0d5
diff --cc servers/rendering/renderer_rd/renderer_scene_render_rd.cppindex 43ac4ea0983,926740e2d59..93f49c4b08b--- a/servers/rendering/renderer_rd/renderer_scene_render_rd.cpp+++ b/servers/rendering/renderer_rd/renderer_scene_render_rd.cpp@@@ -772,11 -764,11 +772,11 @@@ void RendererSceneRenderRD::_render_buf// If we use a spatial upscaler to upscale or SMAA to antialias we need to write our result into an intermediate buffer.// Note that this is cached so we only create the texture the first time.dest_fb_format = rb->get_base_data_format();- RID dest_texture = rb->create_texture(SNAME("Tonemapper"), SNAME("destination"), dest_fb_format, RD::TEXTURE_USAGE_SAMPLING_BIT | RD::TEXTURE_USAGE_STORAGE_BIT | RD::TEXTURE_USAGE_COLOR_ATTACHMENT_BIT, RD::TEXTURE_SAMPLES_1, Size2i(), 0, 1, true, true);+ RID dest_texture = rb->create_texture(SNAME("Tonemapper"), SNAME("destination"), dest_fb_format, RD::TEXTURE_USAGE_SAMPLING_BIT | RD::TEXTURE_USAGE_STORAGE_BIT | RD::TEXTURE_USAGE_COLOR_ATTACHMENT_BIT, RD::TEXTURE_SAMPLES_1, color_size, 0, 1, true, true);dest_fb = FramebufferCacheRD::get_singleton()->get_cache(dest_texture);- tonemap.dest_texture_size = rb->get_internal_size();+ tonemap.dest_texture_size = color_size;} else {- // If we do a bilinear upscale we just render into our render target and our shader will upscale automatically.+ // If we do a nearest or bilinear upscale, we just render into our render target and our shader will upscale automatically.// Target size in this case is lying as we never get our real target size communicated.// Bit nasty but...