Workbench: Fix Wrong AntiAliasing in renders

Was caused by offseting the same matrix for each samples instead of adding
the offset to the original projection matrix.
This commit is contained in:
Clément Foucault 2018-10-22 23:24:27 +02:00
parent 51b6e313de
commit 8742f6358b
1 changed files with 2 additions and 0 deletions

View File

@ -155,6 +155,8 @@ void workbench_render(WORKBENCH_Data *data, RenderEngine *engine, RenderLayer *r
if (RE_engine_test_break(engine)) {
break;
}
/* TODO: Save matrices instead of recomputing them for each samples. */
workbench_render_matrices_init(engine, depsgraph);
workbench_deferred_draw_background(data);
workbench_deferred_draw_scene(data);