Eevee: Fix Cascaded shadowmap setup.

It was getting the wrong matrice because of the point light override.
This commit is contained in:
Clément Foucault 2018-03-06 02:51:51 +01:00
parent 6b5b61eb8c
commit d5ecadd643
1 changed files with 2 additions and 0 deletions

View File

@ -1129,6 +1129,8 @@ void EEVEE_draw_shadows(EEVEE_ViewLayerData *sldata, EEVEE_PassList *psl)
DRW_framebuffer_texture_detach(sldata->shadow_cube_target);
DRW_stats_group_end();
DRW_viewport_matrix_override_set_all(&saved_mats);
/* Cascaded Shadow Maps */
DRW_stats_group_start("Cascaded Shadow Maps");
DRW_framebuffer_texture_attach(sldata->shadow_target_fb, sldata->shadow_cascade_target, 0, 0);