Hi,
I tried to replicate the same effect in fragment XML-s. I created a simple scene with a sphere with vertex colors and with a lambert shader. I dumped the calculated fragment graphs and that Maya automatically connects new fragments to the graph to get the vertex colors (mayaCPVColorBlending, mayaCPVPassing, mayaCPVMasking).
When I tried to do the same with our custom created shader I added an extra paramter to it (<float4 name="colorIn" semantic="fcolor" flags="varyingInputParam" />), which - according to the documentation - is the parameter responsible for the vertex colors. But unfortunately the incoming color was pure black.
I also tried to create an another custom shader which has only one parameter, the colorIn, and it just passes it to the outColor out parameter. And I tried to connect this node to one of our custom shader's parameter (eg. diffuse), but the result was the same: pure black.
Is there something else I need to set? Eg. in the shader code or in the fragment XML-s?
I tried to check the mayaCPVColorBlending and the mayaLambertSurface shaders' XML files, but it seems that only the colorIn parameter is the main requirement to get the vertex colors in the fragments.
Can you help me?
Thanks,
Ferenc