Primitive | |
public class PrimitiveIdMaterial : Material, ITwoSidedMaterial
The PrimitiveIdMaterial type exposes the following members.
| Name | Description | |
|---|---|---|
| PrimitiveIdMaterial(String) | PrimitiveIdMaterial constructor. | |
| PrimitiveIdMaterial(Color4, String) | PrimitiveIdMaterial constructor with Color4 that is added to the color that is calculated from the primitive id |
| Name | Description | |
|---|---|---|
| AddedColor | 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. | |
| IsTwoSided | 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. |
| Name | Description | |
|---|---|---|
| CreateClone | (Overrides MaterialCreateClone) | |
| OnInitializeSceneResources |
Initializes resources with the specified Scene and GpuDevice.
This method can be overriden and is called from InitializeSceneResources(Scene) method.
(Overrides MaterialOnInitializeSceneResources(Scene, VulkanDevice)) |