Table of Contents

Class ObjReader.MaterialDefinition

Namespace
HelixToolkit.Wpf
Assembly
HelixToolkit.Wpf.dll

A material definition.

public sealed class ObjReader.MaterialDefinition
Inheritance
ObjReader.MaterialDefinition
Inherited Members

Remarks

Constructors

MaterialDefinition(string)

Initializes a new instance of the ObjReader.MaterialDefinition class.

public MaterialDefinition(string name)

Parameters

name string

The name.

Properties

AlphaMap

Gets or sets the alpha map.

public string? AlphaMap { get; set; }

Property Value

string

The alpha map.

Ambient

Gets or sets the ambient color.

public Color Ambient { get; set; }

Property Value

Color

The ambient.

AmbientMap

Gets or sets the ambient map.

public string? AmbientMap { get; set; }

Property Value

string

The ambient map.

BumpMap

Gets or sets the bump map.

public string? BumpMap { get; set; }

Property Value

string

The bump map.

Diffuse

Gets or sets the diffuse color.

public Color Diffuse { get; set; }

Property Value

Color

The diffuse.

DiffuseMap

Gets or sets the diffuse map.

public string? DiffuseMap { get; set; }

Property Value

string

The diffuse map.

Dissolved

Gets or sets the opacity value.

public double Dissolved { get; set; }

Property Value

double

The opacity.

Remarks

0.0 is transparent, 1.0 is opaque.

Illumination

Gets or sets the illumination.

public int Illumination { get; set; }

Property Value

int

The illumination.

Material

Gets or sets the material.

public Material? Material { get; set; }

Property Value

Material

The material.

Name

Gets or sets the name of the material.

public string Name { get; set; }

Property Value

string

The name.

Specular

Gets or sets the specular color.

public Color Specular { get; set; }

Property Value

Color

The specular color.

SpecularCoefficient

Gets or sets the specular coefficient.

public double SpecularCoefficient { get; set; }

Property Value

double

The specular coefficient.

SpecularMap

Gets or sets the specular map.

public string? SpecularMap { get; set; }

Property Value

string

The specular map.

Methods

GetMaterial(string)

Gets the material from the specified path.

public Material GetMaterial(string texturePath)

Parameters

texturePath string

The texture path.

Returns

Material

The material.