Class Material
Class representing a 3D material and managing its properties.
Inherited Members
Namespace: Genesis.Graphics
Assembly: Genesis.dll
Syntax
public class Material
Constructors
Material()
Constructor for the Material class. Initializes properties and the dictionary for user-defined properties.
Declaration
public Material()
Properties
DiffuseColor
The diffuse color of the material.
Declaration
public Color DiffuseColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
DiffuseTexture
The path to the diffuse texture of the material.
Declaration
public string DiffuseTexture { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
NormalTexture
The path to the normal texture of the material.
Declaration
public string NormalTexture { get; set; }
Property Value
Type | Description |
---|---|
string |
Opacity
Gets or sets the opacity
Declaration
public float Opacity { get; set; }
Property Value
Type | Description |
---|---|
float |
Propeterys
A collection of user-defined properties.
Declaration
public Dictionary<string, object> Propeterys { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, object> |