Table of Contents

Class DiffuseMaterialCore

Namespace
HelixToolkit.SharpDX.Model
Assembly
HelixToolkit.SharpDX.dll
[DataContract]
public class DiffuseMaterialCore : MaterialCore, IMaterial, INotifyPropertyChanged
Inheritance
DiffuseMaterialCore
Implements
Derived
Inherited Members
Extension Methods

Properties

DiffuseColor

Gets or sets the color of the diffuse.

public Color4 DiffuseColor { get; set; }

Property Value

Color4

The color of the diffuse.

DiffuseMap

Gets or sets the diffuse map.

public TextureModel? DiffuseMap { get; set; }

Property Value

TextureModel

The diffuse map.

DiffuseMapFilePath

Gets or sets the diffuse map file path. Only for export

public string DiffuseMapFilePath { get; set; }

Property Value

string

The diffuse map file path.

DiffuseMapSampler

Gets or sets the DiffuseMapSampler.

public SamplerStateDescription DiffuseMapSampler { get; set; }

Property Value

SamplerStateDescription

DiffuseMapSampler

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 disable lighting. Directly render diffuse color and diffuse map

public bool EnableUnLit { get; set; }

Property Value

bool

true if [enable un lit]; otherwise, false.

RenderDiffuseMap

public bool RenderDiffuseMap { get; set; }

Property Value

bool

UVTransform

Gets or sets the uv transform.

public UVTransform UVTransform { get; set; }

Property Value

UVTransform

The uv transform.

VertexColorBlendingFactor

Gets or sets the vert color blending factor. Diffuse = (1- VertexColorBlendingFactor) * Diffuse + VertexColorBlendingFactor * Vertex Color

public float VertexColorBlendingFactor { get; set; }

Property Value

float

The vert color blending factor.

Methods

CreateMaterialVariables(IEffectsManager, IRenderTechnique)

Creates the material variables.

public override MaterialVariable CreateMaterialVariables(IEffectsManager manager, IRenderTechnique technique)

Parameters

manager IEffectsManager

The manager.

technique IRenderTechnique

The technique.

Returns

MaterialVariable