EEVEE-Next: Add back option to disable TAA (Viewport Denoising
This commit is contained in:
@@ -410,6 +410,9 @@ class RENDER_PT_eevee_next_sampling(RenderButtonsPanel, Panel):
|
|||||||
col.prop(props, "taa_render_samples", text="Render")
|
col.prop(props, "taa_render_samples", text="Render")
|
||||||
col.prop(props, "taa_samples", text="Viewport")
|
col.prop(props, "taa_samples", text="Viewport")
|
||||||
|
|
||||||
|
col = layout.column()
|
||||||
|
col.prop(props, "use_taa_reprojection")
|
||||||
|
|
||||||
|
|
||||||
class RENDER_PT_eevee_indirect_lighting(RenderButtonsPanel, Panel):
|
class RENDER_PT_eevee_indirect_lighting(RenderButtonsPanel, Panel):
|
||||||
bl_label = "Indirect Lighting"
|
bl_label = "Indirect Lighting"
|
||||||
|
|||||||
@@ -345,6 +345,8 @@ void Film::init(const int2 &extent, const rcti *output_rect)
|
|||||||
depth_tx_.clear(float4(0.0f));
|
depth_tx_.clear(float4(0.0f));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
force_disable_reprojection_ = (inst_.scene->eevee.flag & SCE_EEVEE_TAA_REPROJECTION) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Film::sync()
|
void Film::sync()
|
||||||
@@ -415,6 +417,12 @@ void Film::end_sync()
|
|||||||
{
|
{
|
||||||
data_.use_reprojection = inst_.sampling.interactive_mode();
|
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();
|
aovs_info.push_update();
|
||||||
|
|
||||||
sync_mist();
|
sync_mist();
|
||||||
|
|||||||
@@ -49,6 +49,8 @@ class Film {
|
|||||||
SwapChain<Texture, 2> weight_tx_;
|
SwapChain<Texture, 2> weight_tx_;
|
||||||
/** Extent used by the render buffers when rendering the main views. */
|
/** Extent used by the render buffers when rendering the main views. */
|
||||||
int2 render_extent_ = int2(-1);
|
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;
|
DRWPass *accumulate_ps_ = nullptr;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user