Blender Git Loki

Git Commits -> Revision e760972

Revision e760972 by Lukas Stockner (master)
December 10, 2019, 19:44 (GMT)
Cycles: support for custom shader AOVs

Custom render passes are added in the Shader AOVs panel in the view layer
settings, with a name and data type. In shader nodes, an AOV Output node
is then used to output either a value or color to the pass.

Arbitrary names can be used for these passes, as long as they don't conflict
with built-in passes that are enabled. The AOV Output node can be used in both
material and world shader nodes.

Implemented by Lukas, with tweaks by Brecht.

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

Commit Details:

Full Hash: e760972221e68d3c81f2ee3687cc71836dde8ae9
Parent Commit: 35b5888
Committed By: Brecht Van Lommel
Lines Changed: +725, -198

3 Added Paths:

/intern/cycles/kernel/kernel_write_passes.h (+95, -0) (View)
/intern/cycles/kernel/svm/svm_aov.h (+49, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_output_aov.c (+51, -0) (View)

43 Modified Paths:

/intern/cycles/blender/addon/engine.py (+77, -47) (Diff)
/intern/cycles/blender/addon/operators.py (+32, -0) (Diff)
/intern/cycles/blender/addon/properties.py (+38, -0) (Diff)
/intern/cycles/blender/addon/ui.py (+38, -0) (Diff)
/intern/cycles/blender/blender_session.cpp (+6, -11) (Diff)
/intern/cycles/blender/blender_shader.cpp (+6, -0) (Diff)
/intern/cycles/blender/blender_sync.cpp (+23, -8) (Diff)
/intern/cycles/kernel/CMakeLists.txt (+2, -0) (Diff)
/intern/cycles/kernel/kernel_bake.h (+6, -6) (Diff)
/intern/cycles/kernel/kernel_emission.h (+3, -2) (Diff)
/intern/cycles/kernel/kernel_passes.h (+0, -74) (Diff)
/intern/cycles/kernel/kernel_path.h (+8, -6) (Diff)
/intern/cycles/kernel/kernel_path_branched.h (+2, -2) (Diff)
/intern/cycles/kernel/kernel_shader.h (+4, -3) (Diff)
/intern/cycles/kernel/kernel_shadow.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_subsurface.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_types.h (+9, -0) (Diff)
/intern/cycles/kernel/osl/osl_services.cpp (+1, -0) (Diff)
/intern/cycles/kernel/split/kernel_indirect_background.h (+3, -1) (Diff)
/intern/cycles/kernel/split/kernel_shader_eval.h (+3, -1) (Diff)
/intern/cycles/kernel/svm/svm.h (+13, -0) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+3, -0) (Diff)
/intern/cycles/render/buffers.cpp (+5, -9) (Diff)
/intern/cycles/render/buffers.h (+2, -6) (Diff)
/intern/cycles/render/film.cpp (+42, -1) (Diff)
/intern/cycles/render/film.h (+2, -0) (Diff)
/intern/cycles/render/graph.cpp (+26, -9) (Diff)
/intern/cycles/render/graph.h (+5, -0) (Diff)
/intern/cycles/render/nodes.cpp (+52, -0) (Diff)
/intern/cycles/render/nodes.h (+20, -0) (Diff)
/intern/cycles/render/shader.cpp (+7, -0) (Diff)
/intern/cycles/render/svm.cpp (+52, -10) (Diff)
/intern/cycles/render/svm.h (+1, -0) (Diff)
/release/scripts/startup/nodeitems_builtins.py (+6, -0) (Diff)
/source/blender/blenkernel/BKE_node.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/node.c (+1, -0) (Diff)
/source/blender/editors/space_node/drawnode.c (+8, -0) (Diff)
/source/blender/makesdna/DNA_node_types.h (+4, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+13, -0) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
/source/blender/nodes/CMakeLists.txt (+1, -0) (Diff)
/source/blender/nodes/NOD_shader.h (+1, -0) (Diff)
/source/blender/nodes/NOD_static_types.h (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021