Blender Git Commit Log

Git Commits -> Revision c3e1fce

Revision c3e1fce by Brecht Van Lommel (master)
May 21, 2012, 12:52 (GMT)
Cycles: add Object Info node, with outputs object location, object/material
pass index, and a random number unique to the instance of the object.

This can be useful to give some variation to a single material assigned to
multiple instances, either manually controlled through the object index, based
on the object location, or randomized for each instance.

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

Commit Details:

Full Hash: c3e1fce77552b5626d2939710cb6d0020891d218
SVN Revision: 46841
Parent Commit: ea11bc9
Lines Changed: +1777, -1574

1 Added Path:

/source/blender/nodes/shader/nodes/node_shader_object_info.c (+61, -0) (View)

19 Modified Paths:

/intern/cycles/blender/blender_object.cpp (+1, -0) (Diff)
/intern/cycles/blender/blender_shader.cpp (+4, -0) (Diff)
/intern/cycles/kernel/kernel_object.h (+25, -0) (Diff)
/intern/cycles/kernel/kernel_shader.h (+0, -5) (Diff)
/intern/cycles/kernel/svm/svm.h (+3, -0) (Diff)
/intern/cycles/kernel/svm/svm_geometry.h (+20, -0) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+9, -1) (Diff)
/intern/cycles/render/nodes.cpp (+44, -1) (Diff)
/intern/cycles/render/nodes.h (+5, -0) (Diff)
/intern/cycles/render/object.cpp (+6, -1) (Diff)
/intern/cycles/render/object.h (+1, -0) (Diff)
/intern/cycles/util/util_hash.h (+15, -3) (Diff)
/source/blender/blenkernel/BKE_node.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/node.c (+1, -0) (Diff)
/source/blender/gpu/shaders/gpu_shader_material.glsl (+9, -0) (Diff)
/source/blender/gpu/shaders/gpu_shader_material.glsl.c (+1567, -1561) (Diff)
/source/blender/makesrna/intern/rna_nodetree_types.h (+3, -2) (Diff)
/source/blender/nodes/CMakeLists.txt (+1, -0) (Diff)
/source/blender/nodes/NOD_shader.h (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021