How to Get Object ID in GLSL shader

How to Get Object ID in GLSL shader

1342204216
Explorer Explorer
403 Views
0 Replies
Message 1 of 1

How to Get Object ID in GLSL shader

1342204216
Explorer
Explorer

I was working on a multi-render-target viewport override plugin, which renders each mesh as different color to the viewport, just like what Cryptomatte does.

I get started with 'viewRenderOverrideMRT' in MAYA api guide, then I was stuck at How to get mesh ID to send to my GLSL shader. 

I wander if there is an easy way to access all the render items at a frame, and do I need to create a shader instance for each mesh?

 

0 Likes
404 Views
0 Replies
Replies (0)