Line | |
public abstract class LineBaseMaterial : Material, ILineMaterial, ITransparentMaterial, IHiddenLineMaterial, ILineCapMaterial
The LineBaseMaterial type exposes the following members.
| Name | Description | |
|---|---|---|
| LineBaseMaterial(String) | Constructor | |
| LineBaseMaterial(Color3, String) | Constructor | |
| LineBaseMaterial(Color4, String) | Constructor | |
| LineBaseMaterial(Color3, Single, String) | Constructor | |
| LineBaseMaterial(Color4, Single, String) | Constructor |
| Name | Description | |
|---|---|---|
| DepthBias | Gets a float that specifies a bias that is used when doing a depth test. The value is subtracted from the depth value of the line. Subtracting the value moves the line closer to the camera. The depth values are in range from 0 (at the near camera plane) to 1 (at the far camera plane). Usually a 0.0005 is a good value for most of the cases. | |
| EndLineCap | Gets or sets the LineCap (shape) that is rendered at the end of the line. Default value is LineCap.Flat. | |
| HasTransparency | Gets a boolean that specifies if this material is semi-transparent and needs to be alpha blended with the scene. This is true when LineColor's Alpha value is less than 1. | |
| IsHiddenLine | Gets or sets a boolean that specifies if line with this material will be rendered when it is in front of other 3D objects (IsHiddenLine is false), or when the line is hidden - is behind other 3D objects (IsHiddenLine is true). | |
| LineColor | Gets or sets the color of the line that is determined from the WpfModel material. Default color is black. | |
| LineThickness | Gets or sets the thickness of the line in screen space units. This value is scaled with DPI scale factor. Default line thickness is 1. | |
| StartLineCap | Gets or sets the LineCap (shape) that is rendered at the start of the line. Default value is LineCap.Flat. |
| Name | Description | |
|---|---|---|
| GetDetailsText |
GetDetailsText adds string that writes details about this Material into the specified StringBuilder.
(Overrides MaterialGetDetailsText(StringBuilder, Boolean, Boolean, Boolean)) | |
| 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)) | |
| Update |
Update method is called before every rendering and updates the graphics buffers and states objects based on the current value of properties in this Material.
(Overrides MaterialUpdate) |