
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Each render operation(MRenderOverride) can override writableTargets() and targetOverrideList() methods. How does Maya know which of them are color targets and which of them is depth target. Maya needs to know to bind them as output for that render operation.
Suppose I return this array from targetOverrideList(), [color1, color2, color3, depth, color4, color5]. Also suppose I return 4 as count and 2 as first writable target from writableTargets(). What and why does Maya bind as targets for this operation?
Another related question. If true is returned from getInputTargetDescription(), then Maya creates a render target from the description given and associates it with the given name. What happens if I return false? Docs state something about writing this input to color or depth target, but I don't get it.
Solved! Go to Solution.