Page MenuHome

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

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

Details

Summary

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: http://graphics.pixar.com/usd/downloads.html 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(...).

Cheers!

Diff Detail

Repository
rB Blender

Event Timeline

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