Class LineMaterialCore
- Namespace
- HelixToolkit.SharpDX.Model
- Assembly
- HelixToolkit.SharpDX.dll
[DataContract]
public class LineMaterialCore : MaterialCore, IMaterial, INotifyPropertyChanged, ILineRenderParams
- Inheritance
-
LineMaterialCore
- Implements
- Derived
- Inherited Members
- Extension Methods
Properties
AlphaThreshold
Gets or sets the alpha threshold. Pixel with color alpha value smaller than threshold will be set to transparent.
This is used to avoid sampler color interpolation effects.
public float AlphaThreshold { get; set; }
Property Value
- float
The alpha threshold
EnableDistanceFading
public bool EnableDistanceFading { get; set; }
Property Value
FadingFarDistance
public float FadingFarDistance { get; set; }
Property Value
FadingNearDistance
public float FadingNearDistance { get; set; }
Property Value
FixedSize
Gets or sets a value indicating whether [fixed size].
public bool FixedSize { get; set; }
Property Value
- bool
trueif [fixed size]; otherwise,false.
LineColor
Final Line Color = LineColor * PerVertexLineColor
public Color4 LineColor { get; set; }
Property Value
SamplerDescription
Billboard texture sampler description
public SamplerStateDescription SamplerDescription { get; set; }
Property Value
- SamplerStateDescription
Smoothness
public float Smoothness { get; set; }
Property Value
Texture
Gets or sets the texture.
public TextureModel? Texture { get; set; }
Property Value
- TextureModel
The texture.
TextureScale
Gets or sets the texture scale.
public float TextureScale { get; set; }
Property Value
- float
The texture scale.
Thickness
public float Thickness { get; set; }
Property Value
Methods
CreateMaterialVariables(IEffectsManager, IRenderTechnique)
Creates the material variables.
public override MaterialVariable? CreateMaterialVariables(IEffectsManager manager, IRenderTechnique technique)
Parameters
managerIEffectsManagerThe manager.
techniqueIRenderTechniqueThe technique.