Class DiffuseMaterial
- Namespace
- HelixToolkit.Wpf.SharpDX
- Assembly
- HelixToolkit.Wpf.SharpDX.dll
public class DiffuseMaterial : Material
- Inheritance
-
DiffuseMaterial
- Inherited Members
- Extension Methods
Constructors
DiffuseMaterial()
public DiffuseMaterial()
DiffuseMaterial(DiffuseMaterialCore)
public DiffuseMaterial(DiffuseMaterialCore core)
Parameters
coreDiffuseMaterialCore
Fields
DiffuseColorProperty
The diffuse color property
public static readonly DependencyProperty DiffuseColorProperty
Field Value
DiffuseMapProperty
public static readonly DependencyProperty DiffuseMapProperty
Field Value
DiffuseMapSamplerProperty
public static readonly DependencyProperty DiffuseMapSamplerProperty
Field Value
EnableFlatShadingProperty
public static readonly DependencyProperty EnableFlatShadingProperty
Field Value
EnableUnLitProperty
The enable un lit property
public static readonly DependencyProperty EnableUnLitProperty
Field Value
UVTransformProperty
The uv transform property
public static readonly DependencyProperty UVTransformProperty
Field Value
VertexColorBlendingFactorProperty
public static readonly DependencyProperty VertexColorBlendingFactorProperty
Field Value
Properties
DiffuseColor
Gets or sets the diffuse color for the material. For details see: http://msdn.microsoft.com/en-us/library/windows/desktop/bb147175(v=vs.85).aspx
[TypeConverter(typeof(Color4Converter))]
public Color4 DiffuseColor { get; set; }
Property Value
DiffuseMap
Gets or sets the diffuse map.
public TextureModel? DiffuseMap { get; set; }
Property Value
- TextureModel
The diffuse map.
DiffuseMapSampler
public SamplerStateDescription DiffuseMapSampler { get; set; }
Property Value
- SamplerStateDescription
EnableFlatShading
Gets or sets a value indicating whether [enable flat shading].
public bool EnableFlatShading { get; set; }
Property Value
- bool
trueif [enable flat shading]; otherwise,false.
EnableUnLit
Gets or sets a value indicating whether whether disable lighting. Directly render diffuse color and diffuse map.
public bool EnableUnLit { get; set; }
Property Value
- bool
trueif [enable un lit]; otherwise,false.
UVTransform
Gets or sets the texture uv transform.
public UVTransform UVTransform { get; set; }
Property Value
- UVTransform
The uv transform.
VertexColorBlendingFactor
Gets or sets the vertex color blending factor. Final Diffuse Color = (1 - VertexColorBlendingFactor) * Diffuse + VertexColorBlendingFactor * Vertex Color
public double VertexColorBlendingFactor { get; set; }
Property Value
- double
The vertex color blending factor.
Methods
CloneMaterial()
public virtual DiffuseMaterial CloneMaterial()
Returns
CreateInstanceCore()
When implemented in a derived class, creates a new instance of the Freezable derived class.
protected override Freezable CreateInstanceCore()
Returns
- Freezable
The new instance.
OnCreateCore()
protected override MaterialCore OnCreateCore()