Class ObjReader.MaterialDefinition
- Namespace
- HelixToolkit.SharpDX
- Assembly
- HelixToolkit.SharpDX.dll
A material definition.
public class ObjReader.MaterialDefinition
- Inheritance
-
ObjReader.MaterialDefinition
- Inherited Members
Remarks
The file format is documented in http://en.wikipedia.org/wiki/Material_Template_Library.
Constructors
MaterialDefinition()
Initializes a new instance of the ObjReader.MaterialDefinition class.
public MaterialDefinition()
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 PhongMaterialCore? Material { get; set; }
Property Value
- PhongMaterialCore
The material.
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 PhongMaterialCore GetMaterial(string texturePath)
Parameters
texturePathstringThe texture path.
Returns
- PhongMaterialCore
The material.