Blender Git Loki
Git Commits -> Revision f6107af
Revision f6107af by Brecht Van Lommel (master) February 14, 2018, 13:55 (GMT) |
Cycles: change Index output of Hair and Particle Info to Random, in 0..1 range. These are used for randomization, so it's convenient if the index is already hashed and consistent with the Object Info node. |
Commit Details:
Full Hash: f6107af4cf4d907495e2e9c18e5866fd1d420650
Parent Commit: c8e6617
Lines Changed: +54, -56
18 Modified Paths:
/intern/cycles/blender/blender_curves.cpp (+6, -14) (Diff)
/intern/cycles/kernel/geom/geom_object.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_types.h (+1, -1) (Diff)
/intern/cycles/kernel/osl/osl_services.cpp (+4, -11) (Diff)
/intern/cycles/kernel/osl/osl_services.h (+2, -1) (Diff)
/intern/cycles/kernel/shaders/node_hair_info.osl (+2, -2) (Diff)
/intern/cycles/kernel/shaders/node_particle_info.osl (+2, -2) (Diff)
/intern/cycles/kernel/svm/svm_geometry.h (+3, -3) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+2, -2) (Diff)
/intern/cycles/render/attribute.cpp (+3, -3) (Diff)
/intern/cycles/render/nodes.cpp (+9, -9) (Diff)
/intern/cycles/render/particles.cpp (+3, -1) (Diff)
/intern/cycles/util/util_hash.h (+5, -0) (Diff)
/source/blender/blenlib/BLI_hash.h (+5, -0) (Diff)
/source/blender/gpu/intern/gpu_draw.c (+2, -2) (Diff)
/source/blender/gpu/shaders/gpu_shader_material.glsl (+2, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_hair_info.c (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_particle_info.c (+1, -1) (Diff)
/intern/cycles/kernel/geom/geom_object.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_types.h (+1, -1) (Diff)
/intern/cycles/kernel/osl/osl_services.cpp (+4, -11) (Diff)
/intern/cycles/kernel/osl/osl_services.h (+2, -1) (Diff)
/intern/cycles/kernel/shaders/node_hair_info.osl (+2, -2) (Diff)
/intern/cycles/kernel/shaders/node_particle_info.osl (+2, -2) (Diff)
/intern/cycles/kernel/svm/svm_geometry.h (+3, -3) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+2, -2) (Diff)
/intern/cycles/render/attribute.cpp (+3, -3) (Diff)
/intern/cycles/render/nodes.cpp (+9, -9) (Diff)
/intern/cycles/render/particles.cpp (+3, -1) (Diff)
/intern/cycles/util/util_hash.h (+5, -0) (Diff)
/source/blender/blenlib/BLI_hash.h (+5, -0) (Diff)
/source/blender/gpu/intern/gpu_draw.c (+2, -2) (Diff)
/source/blender/gpu/shaders/gpu_shader_material.glsl (+2, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_hair_info.c (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_particle_info.c (+1, -1) (Diff)