Merge pull request #65676 from BastiaanOlij/fix_msaa_taa_issue
Fixed MSAA initialisation in clustered forward renderer
This commit is contained in:
commit
baded9fe09
2 changed files with 4 additions and 2 deletions
|
@ -124,7 +124,7 @@ void RenderForwardClustered::RenderBufferDataForwardClustered::configure(RenderS
|
|||
render_buffers = p_render_buffers;
|
||||
ERR_FAIL_NULL(render_buffers);
|
||||
|
||||
bool msaa_3d = render_buffers->get_msaa_3d();
|
||||
RS::ViewportMSAA msaa_3d = render_buffers->get_msaa_3d();
|
||||
|
||||
if (msaa_3d != RS::VIEWPORT_MSAA_DISABLED) {
|
||||
RD::DataFormat format = RD::DATA_FORMAT_R16G16B16A16_SFLOAT;
|
||||
|
|
|
@ -535,7 +535,9 @@ void RenderSceneBuffersRD::ensure_velocity() {
|
|||
RD::TEXTURE_SAMPLES_8,
|
||||
};
|
||||
|
||||
create_texture(RB_SCOPE_BUFFERS, RB_TEX_VELOCITY_MSAA, RD::DATA_FORMAT_R16G16_SFLOAT, msaa_usage_bits, ts[msaa_3d]);
|
||||
RD::TextureSamples texture_samples = ts[msaa_3d];
|
||||
|
||||
create_texture(RB_SCOPE_BUFFERS, RB_TEX_VELOCITY_MSAA, RD::DATA_FORMAT_R16G16_SFLOAT, msaa_usage_bits, texture_samples);
|
||||
}
|
||||
|
||||
create_texture(RB_SCOPE_BUFFERS, RB_TEX_VELOCITY, RD::DATA_FORMAT_R16G16_SFLOAT, usage_bits);
|
||||
|
|
Loading…
Reference in a new issue