This method of the Direct3dRMMeshBuilder Class sets the color source of a Direct3dRMMeshBuilder object.
public void setColorSource(int val);
val | The value of color source type that specifies the new color source to use. |
This method does not exhibit expected behavior under certain circumstances. If you use this method to set colors to faces, then it works as expected. But if you try to set colors for individual vertices, it wont, because face data is still used. To set vertice's colors, call the createMesh method and set individual vertex colors with the setVertex method.