Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/eevee_volumes.c
| Show First 20 Lines • Show All 215 Lines • ▼ Show 20 Lines | if (draw_ctx->evil_C != NULL) { | ||||
| do_taa = do_taa && (ED_screen_animation_no_scrub(wm) == NULL); | do_taa = do_taa && (ED_screen_animation_no_scrub(wm) == NULL); | ||||
| } | } | ||||
| if (do_taa) { | if (do_taa) { | ||||
| common_data->vol_history_alpha = 0.0f; | common_data->vol_history_alpha = 0.0f; | ||||
| current_sample = effects->taa_current_sample - 1; | current_sample = effects->taa_current_sample - 1; | ||||
| effects->volume_current_sample = -1; | effects->volume_current_sample = -1; | ||||
| } | } | ||||
| else { | else if (DRW_state_is_image_render()) { | ||||
| const uint max_sample = (ht_primes[0] * ht_primes[1] * ht_primes[2]); | const uint max_sample = (ht_primes[0] * ht_primes[1] * ht_primes[2]); | ||||
| current_sample = effects->volume_current_sample = (effects->volume_current_sample + 1) % | current_sample = effects->volume_current_sample = (effects->volume_current_sample + 1) % | ||||
| max_sample; | max_sample; | ||||
| if (current_sample != max_sample - 1) { | if (current_sample != max_sample - 1) { | ||||
| DRW_viewport_request_redraw(); | DRW_viewport_request_redraw(); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 452 Lines • Show Last 20 Lines | |||||