How to use "selector" xml fragment in Viewport 2.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to use some locators to control the surface shading in Viewport 2.0. It could work like multiple lightings and generate various shading effect. I found onbShader examples in devkit and guessed I could use "accum" and "selector" xml fragments.
My assumption is to build custom "selector" and corresponding "struct", but I don't know how to pass the data from DAG attribute to this "struct" parameter.
I can't find any more details about other types of xml fragment in relative documentations. The only "selector" fragment shown is mayaLightSelector16 but it's default built lighting and can use semantics to pass data.
What if I try to build the fragment graph like phong
how to pass attribute data to those parameters of struct type (like light0 in phong etc.)?