Page MenuHome

Adding support for constant attribute values to be sampled in kernels/shaders

Authored by Alex Fuller (mistaed) on Feb 9 2020, 10:16 PM.



Adding support for constant attribute values (ATTR_ELEMENT_OBJECT and ATTR_ELEMENT_MESH) sampling in the kernels/shaders. While debugging some USD caches in Gaffer like the kitchen set from here: I encountered that constant primvar values converted to either attributes object or mesh didn't sample in the kernels/shaders at all, so this patch adds that functionality so that the attribute shader node can access it or OSL from getattribute(...).


Diff Detail

rB Blender

Event Timeline

This revision is now accepted and ready to land.Feb 10 2020, 8:43 AM