Blender Git Commit Log

Git Commits -> Revision e60bc52

Revision e60bc52 by Jeroen Bakker (master)
October 21, 2020, 06:14 (GMT)
DrawManager: Adding Custom Render Passes

Currently render passes in the draw manager (eevee) must be predefined
in the render result. This patch would ask the render engine for the
render passes it needs, and create these as a preparation step during
rendering. This allows any draw engine to define more complex render
passes setup.

Render passes can only be added before the call to `RE_engine_begin_result`.
`RE_engine_begin_result` makes a full copy of the render passes. During
rendering the render engines renders to the duplicated passes.
`RE_engine_end_result` syncs the data back to the original render passes,
but only if the passes existed in the original render result.
Currently we work-around this issue by registering the passes in
`render_result_new`. This is legacy blender internal structure and should
be avoided.

With upcoming projects (AOV/Cryptomatte) it becomes a bit of a mess as we
are extending legacy code to support new features. This patch allows us to
let each draw engine register their own render passes at render time
(similar to cycles and other render engines). In the future we could get
rid of legacy render passes registration in render_result_new.

Reviewed By: Cl�ment Foucault

Differential Revision: https://developer.blender.org/D9088

Commit Details:

Full Hash: e60bc528f0f936d64abdc261df961f60e919facb
Parent Commit: 1ad100d
Lines Changed: +18, -10

2 Modified Paths:

/source/blender/draw/intern/draw_manager.c (+18, -1) (Diff)
/source/blender/render/intern/source/render_result.c (+0, -9) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021