EEVEE-Next: Add back option to disable TAA (Viewport Denoising
This commit is contained in:
parent
b0f9639733
commit
d431b1416b
|
@ -410,6 +410,9 @@ class RENDER_PT_eevee_next_sampling(RenderButtonsPanel, Panel):
|
|||
col.prop(props, "taa_render_samples", text="Render")
|
||||
col.prop(props, "taa_samples", text="Viewport")
|
||||
|
||||
col = layout.column()
|
||||
col.prop(props, "use_taa_reprojection")
|
||||
|
||||
|
||||
class RENDER_PT_eevee_indirect_lighting(RenderButtonsPanel, Panel):
|
||||
bl_label = "Indirect Lighting"
|
||||
|
|
|
@ -345,6 +345,8 @@ void Film::init(const int2 &extent, const rcti *output_rect)
|
|||
depth_tx_.clear(float4(0.0f));
|
||||
}
|
||||
}
|
||||
|
||||
force_disable_reprojection_ = (inst_.scene->eevee.flag & SCE_EEVEE_TAA_REPROJECTION) == 0;
|
||||
}
|
||||
|
||||
void Film::sync()
|
||||
|
@ -415,6 +417,12 @@ void Film::end_sync()
|
|||
{
|
||||
data_.use_reprojection = inst_.sampling.interactive_mode();
|
||||
|
||||
/* Just bypass the reprojection and reset the accumulation. */
|
||||
if (force_disable_reprojection_ && inst_.sampling.is_reset()) {
|
||||
data_.use_reprojection = false;
|
||||
data_.use_history = false;
|
||||
}
|
||||
|
||||
aovs_info.push_update();
|
||||
|
||||
sync_mist();
|
||||
|
|
|
@ -49,6 +49,8 @@ class Film {
|
|||
SwapChain<Texture, 2> weight_tx_;
|
||||
/** Extent used by the render buffers when rendering the main views. */
|
||||
int2 render_extent_ = int2(-1);
|
||||
/** User setting to disable reprojection. Useful for debugging or have a more precise render. */
|
||||
bool force_disable_reprojection_ = false;
|
||||
|
||||
DRWPass *accumulate_ps_ = nullptr;
|
||||
|
||||
|
|
Loading…
Reference in New Issue