Share via


RenderStateManager.ColorVertex Property (Microsoft.DirectX.Direct3D)

Retrieves or sets a value to enable or disable per-vertex color.

Definition

Visual Basic Public Property ColorVertex As Boolean
C# public bool ColorVertex { get; set; }
C++ public:
property bool ColorVertex {
        bool get();
        void set(bool value);
}
JScript public function get ColorVertex() : boolean
public function set ColorVertex(boolean);

Property Value

System.Boolean
Set to true to enable per-vertex color, or false to disable it.

This property is read/write. 

Remarks

The default value is true.

Enabling per-vertex color allows the system to include the color defined for individual vertices in its lighting calculations. For more information, see the following topics.