Added Object Info node implementation for OSL. This uses an additional attribute...
authorLukas Toenne <lukas.toenne@googlemail.com>
Fri, 14 Sep 2012 18:10:54 +0000 (18:10 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Fri, 14 Sep 2012 18:10:54 +0000 (18:10 +0000)
commitdf79ab5a778e877ff371ac571afcc55f2558b6f6
tree222169846c5c7ce73c3c4c8924ba33b66e155d68
parentb48398c96aa91fec0f5a5f34c36b9d2dae61718f
Added Object Info node implementation for OSL. This uses an additional attribute check in the osl_services callback for special attribute names related to objects:

* std::object_location
* std::object_index
* std::material_index
* std::object_random

Other object-based attributes can be added for particle info in the same way.
intern/cycles/kernel/osl/nodes/CMakeLists.txt
intern/cycles/kernel/osl/nodes/node_object_info.osl [new file with mode: 0644]
intern/cycles/kernel/osl/osl_services.cpp