Click or drag to resize
Ab4d.SharpEngine logo

PrimitiveIdMaterial Properties

The PrimitiveIdMaterial type exposes the following members.

Properties
 NameDescription
Public propertyAddedColor Gets or sets a Color4 that is added to the color that is calculated from the primitive id. Default value is (0, 0, 0, 0). It can be used when other objects are rendered to the same ID bitmap to distinguish the object with this material from other objects.
Public propertyIsTwoSided Gets or sets a Boolean that specifies if the material should be rendered on both front and back side. Note that when rendering semi-transparent objects and when alpha clipping is not used, it is better to set BackMaterial to the same material as Material instead of setting IsTwoSided to true because this correctly rendered the back side before the front side.
Top
See Also