Message 1 of 1
How to Get Object ID in GLSL shader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?