admin管理员组

文章数量:1244214

I try to write an openmaya viewport 2.0 shader in maya that read couple of vec4 custom attributes on instances for the logic of the shader. Ideally bifrost instances but it can be geo instanced in mash or particles.

How do I access write a plugin that read the instanceId and custom attributes on instances to feed data to a viewport 2.0 shader?

I tried to write a surfaceshader override with a vertexbuffergenerator but cannot figure out how to stream more than one vertexbuffer, how to access instanceId and custom attributes of the bifrost instances or instance geo on particles or mash.

本文标签: viewportMaya shader access instance attributesStack Overflow