Description
Defines a collection of colors.
Syntax
| [Visual Basic .NET] |
|---|
Public Sub SetPerVertexColors( _
ByRef Colors() As Variant _
)
|
Parameters
- Colors
- An array containing the numeric representation of colors for
each vertex in the mesh. There must be one color for each position
passed to the Triangle Mesh Primitive's
Setmethod. In .NET a Color should be translated to a number by calling itsToArgbmethod and casting the result as an unsigned integer.
Example
Shows the format of
the Colors parameter when setting per vertex colors.
| [C#] | Copy Code
|
|
|---|---|---|
|
||
Shows the format of
the Colors parameter when setting per vertex colors.
| [Visual Basic .NET] | Copy Code
|
|
|---|---|---|
|
||