![]() | |
Position |
public class PositionColoredLineMaterial : LineMaterial, IVertexColorMaterial, ITransparentMaterial
The PositionColoredLineMaterial type exposes the following members.
Name | Description | |
---|---|---|
![]() | PositionColoredLineMaterial(String) | Constructor |
![]() | PositionColoredLineMaterial(Color4, String) | Constructor |
Name | Description | |
---|---|---|
![]() | HasTransparency |
Gets a boolean that specifies if this material is semi-transparent and needs to be alpha blended with the scene.
(Overrides LineMaterialHasTransparency) |
![]() | PositionColors | Gets or sets the Color4 array that specifies the colors for each position of the object. |
![]() | VertexColorsBuffer | Gets a GpuBuffer for an array of Color4 values where each value represents a color of one position (vertex). |
Name | Description | |
---|---|---|
![]() | CreateClone | (Overrides MaterialCreateClone) |
![]() | Dispose |
Dispose
(Overrides MaterialDispose(Boolean)) |
![]() | OnEffectChanged |
OnEffectChanged is called after the effect is changed - overridden methods can return false to prevent the change of effect.
(Overrides MaterialOnEffectChanged(Effect, Effect)) |
![]() | OnInitializeSceneResources |
Initializes resources with the specified Scene and GpuDevice.
This method can be override and is called from InitializeSceneResources(Scene) method.
(Overrides LineMaterialOnInitializeSceneResources(Scene, VulkanDevice)) |
![]() | UpdatePositionColors | UpdatePositionColors must be called when the values in the PositionColors array are changed. |
![]() | UpdatePositionColorsTransparency | UpdatePositionColorsTransparency method check if any color in the PositionColors has Opacity value less then 1 and sets HasTransparency accordingly. |