Cycles / Toon BSDF:
authorThomas Dinges <blender@dingto.org>
Thu, 23 May 2013 17:45:20 +0000 (17:45 +0000)
committerThomas Dinges <blender@dingto.org>
Thu, 23 May 2013 17:45:20 +0000 (17:45 +0000)
commit99b325cebf41054f046d98a7dcf9aea74e165f56
tree208b201551a5a3e79d59f7e4a2585ae866025ec1
parent3b0cc9cfd74de9594b1388694ee13a94ba36b91b
Cycles / Toon BSDF:
* Added a toon bsdf node to Cycles. This was already available as OSL only closure, but is now available inside the SVM backed as well, for CPU and GPU rendering.
* There are 2 variations available, diffuse and glossy toon, selectable via a menu inside the node.

Documentation:
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Shaders#Toon

Example render & blend file:
http://www.pasteall.org/pic/show.php?id=51970
http://www.pasteall.org/blend/21579
26 files changed:
intern/cycles/blender/blender_shader.cpp
intern/cycles/kernel/closure/bsdf.h
intern/cycles/kernel/closure/bsdf_toon.h
intern/cycles/kernel/osl/CMakeLists.txt
intern/cycles/kernel/osl/bsdf_toon.cpp [deleted file]
intern/cycles/kernel/osl/osl_closures.cpp
intern/cycles/kernel/osl/osl_closures.h
intern/cycles/kernel/shaders/CMakeLists.txt
intern/cycles/kernel/shaders/node_toon_bsdf.osl [new file with mode: 0644]
intern/cycles/kernel/shaders/stdosl.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/nodeitems_builtins.py
release/scripts/templates_osl/toon_closure.osl [deleted file]
source/blender/blenkernel/BKE_node.h
source/blender/blenkernel/intern/node.c
source/blender/editors/space_node/drawnode.c
source/blender/gpu/shaders/gpu_shader_material.glsl
source/blender/makesdna/DNA_node_types.h
source/blender/makesrna/intern/rna_nodetree.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_bsdf_toon.c [new file with mode: 0644]