diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-03-08 02:08:56 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-03-08 02:09:04 +0300 |
commit | 872df463f62d55911a2a732775a8de434c281b2d (patch) | |
tree | 782f1b797a5f42a94a7151c1ef00a06f5f2a6cd7 | |
parent | 70fa15d1b84b1ee93f4dd200bbb4bb5f8d02371b (diff) |
Eevee: Render: Add progress.
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_render.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_render.c b/source/blender/draw/engines/eevee/eevee_render.c index 263794f7e9b..0def6670d85 100644 --- a/source/blender/draw/engines/eevee/eevee_render.c +++ b/source/blender/draw/engines/eevee/eevee_render.c @@ -407,7 +407,8 @@ void EEVEE_render_draw(EEVEE_Data *vedata, RenderEngine *engine, RenderLayer *rl } IDProperty *props = BKE_view_layer_engine_evaluated_get(view_layer, COLLECTION_MODE_NONE, RE_engine_id_BLENDER_EEVEE); - unsigned int render_samples = BKE_collection_engine_property_value_get_int(props, "taa_render_samples"); + unsigned int tot_sample = BKE_collection_engine_property_value_get_int(props, "taa_render_samples"); + unsigned int render_samples = tot_sample; while (render_samples-- > 0) { float clear_col[4] = {0.0f, 0.0f, 0.0f, 0.0f}; @@ -485,6 +486,8 @@ void EEVEE_render_draw(EEVEE_Data *vedata, RenderEngine *engine, RenderLayer *rl eevee_render_result_z(rl, viewname, rect, vedata, sldata); /* Post Process */ EEVEE_draw_effects(sldata, vedata); + + RE_engine_update_progress(engine, (float)(tot_sample - render_samples) / (float)tot_sample); } eevee_render_result_combined(rl, viewname, rect, vedata, sldata); |