Cycles: add Principled Volume shader.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Tue, 30 Jan 2018 14:05:19 +0000 (15:05 +0100)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Fri, 23 Feb 2018 17:57:58 +0000 (18:57 +0100)
commit0aec2dcd3ae0ed382ffe7b3311a4e30fc88398e4
treea3ebe2b22f375e35f3aee068c8570280b1cc93a2
parentacd619d7c9250282d68b917d6cae5c08301bb989
Cycles: add Principled Volume shader.

Similar to the Principled BSDF, this should make it easier to set up volume
materials. Smoke and fire can be rendererd with just a single principled
volume node, the appropriate attributes will be used when available. The node
also works for simpler homogeneous volumes like water or mist.

Differential Revision: https://developer.blender.org/D3033
17 files changed:
intern/cycles/blender/blender_shader.cpp
intern/cycles/kernel/shaders/CMakeLists.txt
intern/cycles/kernel/shaders/node_principled_volume.osl [new file with mode: 0644]
intern/cycles/kernel/svm/svm.h
intern/cycles/kernel/svm/svm_closure.h
intern/cycles/kernel/svm/svm_types.h
intern/cycles/render/nodes.cpp
intern/cycles/render/nodes.h
release/scripts/startup/bl_operators/object_quick_effects.py
release/scripts/startup/nodeitems_builtins.py
source/blender/blenkernel/BKE_node.h
source/blender/blenkernel/intern/node.c
source/blender/nodes/CMakeLists.txt
source/blender/nodes/NOD_shader.h
source/blender/nodes/NOD_static_types.h
source/blender/nodes/shader/nodes/node_shader_volume_principled.c [new file with mode: 0644]
source/blender/nodes/shader/nodes/node_shader_volume_scatter.c