Table of Contents

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

core DiffuseMaterialCore

Fields

DiffuseColorProperty

The diffuse color property

public static readonly DependencyProperty DiffuseColorProperty

Field Value

DependencyProperty

DiffuseMapProperty

public static readonly DependencyProperty DiffuseMapProperty

Field Value

DependencyProperty

DiffuseMapSamplerProperty

public static readonly DependencyProperty DiffuseMapSamplerProperty

Field Value

DependencyProperty

EnableFlatShadingProperty

public static readonly DependencyProperty EnableFlatShadingProperty

Field Value

DependencyProperty

EnableUnLitProperty

The enable un lit property

public static readonly DependencyProperty EnableUnLitProperty

Field Value

DependencyProperty

UVTransformProperty

The uv transform property

public static readonly DependencyProperty UVTransformProperty

Field Value

DependencyProperty

VertexColorBlendingFactorProperty

public static readonly DependencyProperty VertexColorBlendingFactorProperty

Field Value

DependencyProperty

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

Color4

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

true if [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

true if [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

DiffuseMaterial

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()

Returns

MaterialCore