Cycles: 4 new nodes.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 6 Nov 2012 19:59:02 +0000 (19:59 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 6 Nov 2012 19:59:02 +0000 (19:59 +0000)
commit27d647dcf8c5d9ea46133761c899bce0860e0fa2
tree8c3ef1e71c55f5e79be2a73a1650c2a61a50a8d2
parentccffb6811c9db614047e9dba0eb5e509609128dc
Cycles: 4 new nodes.

* Tangent: generate a tangent direction for anisotropic shading. Can be either
  radial around X/Y/Z axis, or from a UV map. The default tangent for the
  anisotropic BSDF and geometry node is now always radial Z, for UV tangent use
  this node now.

http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/More#Tangent

* Normal Map: generate a perturbed normal from an RGB normal map image. This
  is usually chained with an Image Texture node in the color input, to specify
  the normal map image. For tangent space normal maps, the UV coordinates for
  the image must match, and the image texture should be set to Non-Color mode
  to give correct results.

http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/More#Normal_Map

* Refraction BSDF: for best results this node should be considered as a building
  block and not be used on its own, but rather mixed with a glossy node using a
  fresnel type factor. Otherwise it will give quite dark results at the edges for
  glossy refraction.

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

* Ambient Occlusion: controls the amount of AO a surface receives, rather than
  having just a global factor in the world. Note that this outputs a shader and
  not a color, that's for another time.

http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Shaders#Ambient_Occlusion
40 files changed:
intern/cycles/blender/blender_mesh.cpp
intern/cycles/blender/blender_shader.cpp
intern/cycles/kernel/closure/bsdf_ward.h
intern/cycles/kernel/kernel_path.h
intern/cycles/kernel/kernel_shader.h
intern/cycles/kernel/kernel_types.h
intern/cycles/kernel/osl/background.cpp
intern/cycles/kernel/osl/osl_closures.cpp
intern/cycles/kernel/osl/osl_closures.h
intern/cycles/kernel/osl/osl_shader.cpp
intern/cycles/kernel/shaders/CMakeLists.txt
intern/cycles/kernel/shaders/node_ambient_occlusion.osl [new file with mode: 0644]
intern/cycles/kernel/shaders/node_geometry.osl
intern/cycles/kernel/shaders/node_normal_map.osl [new file with mode: 0644]
intern/cycles/kernel/shaders/node_refraction_bsdf.osl [new file with mode: 0644]
intern/cycles/kernel/shaders/node_tangent.osl [new file with mode: 0644]
intern/cycles/kernel/shaders/node_ward_bsdf.osl
intern/cycles/kernel/shaders/stdosl.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_tex_coord.h
intern/cycles/kernel/svm/svm_types.h
intern/cycles/render/attribute.cpp
intern/cycles/render/nodes.cpp
intern/cycles/render/nodes.h
intern/cycles/util/util_attribute.cpp
intern/cycles/util/util_types.h
source/blender/blenkernel/BKE_node.h
source/blender/blenkernel/intern/node.c
source/blender/editors/space_node/drawnode.c
source/blender/makesdna/DNA_node_types.h
source/blender/makesrna/intern/rna_nodetree.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_ambient_occlusion.c [new file with mode: 0644]
source/blender/nodes/shader/nodes/node_shader_bsdf_refraction.c [new file with mode: 0644]
source/blender/nodes/shader/nodes/node_shader_normal_map.c [new file with mode: 0644]
source/blender/nodes/shader/nodes/node_shader_tangent.c [new file with mode: 0644]