Click or drag to resize
Ab4d.SharpEngine logo

VertexColorMaterial Properties

The VertexColorMaterial type exposes the following members.

Properties
 NameDescription
Public propertyHasTransparency Gets a boolean that specifies if any color in PositionColors has alpha value less than 1 (is semi-transparent) so the mesh needs to be alpha blended to be rendered correctly.
Public propertyIsPreMultipliedAlphaColor When IsPreMultipliedAlphaColor is true (false by default), then the PositionColors array contains pre-multiplied colors (color components multiplied with alpha value). Default value is false.
Public propertyPositionColors Gets or sets the Color4 array that specifies the colors for each position of the object. When the values in this array are changed after the material has already been initialized, then the UpdatePositionColors method must be called to update the VertexColorsBuffer. By default, the colors are not alpha pre-multiplied. To use alpha pre-multiplied colors, set the IsPreMultipliedAlphaColor property to true.
Public propertyVertexColorsBuffer Gets a GpuBuffer for an array of Color4 values where each value represents a color of one position (vertex).
Top
See Also