Cycles: Anisotropic BSDF enabled, with tangents now computed from the active UV map.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 10 Oct 2012 13:02:20 +0000 (13:02 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 10 Oct 2012 13:02:20 +0000 (13:02 +0000)
commitf0a9b664694dacb0388a8e078d46753dc6a36352
tree2abf4e68d65708dd36133f1ed83c2b578d34b859
parentb4671d67edef053118ae53b12b2672603a8bf9b6
Cycles: Anisotropic BSDF enabled, with tangents now computed from the active UV map.
It's using the Ward BSDF currently, which has some energy loss so might be a bit
dark. More/better BSDF options can be implemented later.

Patch by Mike Farnsworth, some modifications by me. Currently it's not possible yet
to set a custom tangent, that will follow as part of per-bsdf normals patch.
21 files changed:
intern/cycles/blender/blender_mesh.cpp
intern/cycles/blender/blender_shader.cpp
intern/cycles/kernel/kernel_montecarlo.h
intern/cycles/kernel/kernel_shader.h
intern/cycles/kernel/kernel_types.h
intern/cycles/kernel/svm/bsdf_ward.h
intern/cycles/kernel/svm/svm.h
intern/cycles/kernel/svm/svm_closure.h
intern/cycles/kernel/svm/svm_geometry.h
intern/cycles/kernel/svm/svm_types.h
intern/cycles/render/attribute.cpp
intern/cycles/render/graph.cpp
intern/cycles/render/graph.h
intern/cycles/render/nodes.cpp
intern/cycles/render/nodes.h
intern/cycles/util/util_types.h
source/blender/blenkernel/intern/node.c
source/blender/makesrna/intern/rna_nodetree_types.h
source/blender/nodes/CMakeLists.txt
source/blender/nodes/NOD_shader.h
source/blender/nodes/shader/nodes/node_shader_bsdf_anisotropic.c