If you use the Paint Vertex Color Tool to paint the vertices on an object that has a DirectX 11 shader applied, and the vertex color does not display as expected, it may be because the Color0 attribute in the Surface Data section of the DirectX 11 shader is not set to the correct color set. By default, Maya names the first vertex color set you create as colorSet1.
The following are possible workarounds:
- Use the COLOR1 semantic in your .fx file. This corresponds to colorSet1. (COLOR0 semantic corresponds to colorSet.) However, this will only give the correct results if the .fx file is used in Maya. If the .fx file is used by another application, such as a game engine, you may experience unexpected results.
- In the Surface Data section of the DirectX 11 shader, set the Color 0 attribute to colorSet1.
- Modify the dx11Shader plug-in so that the COLOR0 semantic corresponds to colorSet1 (instead of colorSet).