Class Material
Inheritance
System.Object
Material
Implements
System.IDisposable
Assembly: AxEngine.dll
Syntax
public class Material : SceneObject, IDisposable
Constructors
|
Improve this Doc
View Source
Material()
Declaration
Properties
|
Improve this Doc
View Source
Ambient
Declaration
public float Ambient { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
CastShadow
Declaration
public bool CastShadow { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Color
Declaration
public Vector4 Color { get; set; }
Property Value
Type |
Description |
OpenToolkit.Mathematics.Vector4 |
|
|
Improve this Doc
View Source
CubeShadowShader
Declaration
public Shader CubeShadowShader { get; set; }
Property Value
|
Improve this Doc
View Source
Default
Declaration
public static Material Default { get; }
Property Value
|
Improve this Doc
View Source
DefGeometryShader
Declaration
public Shader DefGeometryShader { get; set; }
Property Value
|
Improve this Doc
View Source
DiffuseTexture
Declaration
public Texture DiffuseTexture { get; set; }
Property Value
|
Improve this Doc
View Source
MaterialId
Declaration
public int MaterialId { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
PipelineType
Specifies what pipeline should be used for this material.
Declaration
public PipelineType PipelineType { get; set; }
Property Value
|
Improve this Doc
View Source
ReceiveShadow
Declaration
public bool ReceiveShadow { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Shader
Declaration
public Shader Shader { get; set; }
Property Value
|
Improve this Doc
View Source
ShadowShader
Declaration
public Shader ShadowShader { get; set; }
Property Value
|
Improve this Doc
View Source
Shininess
Declaration
public float Shininess { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
SpecularStrength
Declaration
public float SpecularStrength { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
SpecularTexture
Declaration
public Texture SpecularTexture { get; set; }
Property Value
|
Improve this Doc
View Source
UseTransparency
Declaration
public bool UseTransparency { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
UseVertexColor
Declaration
public bool UseVertexColor { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
|
Improve this Doc
View Source
AddParameter(Material.Parameter)
Declaration
public void AddParameter(Material.Parameter parameter)
Parameters
|
Improve this Doc
View Source
AddParameter(String, Texture)
Declaration
public void AddParameter(string name, Texture value)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Texture |
value |
|
|
Improve this Doc
View Source
Declaration
public void AddParameter(string name, Matrix3 value)
Parameters
Type |
Name |
Description |
System.String |
name |
|
OpenToolkit.Mathematics.Matrix3 |
value |
|
|
Improve this Doc
View Source
Declaration
public void AddParameter(string name, Matrix4 value)
Parameters
Type |
Name |
Description |
System.String |
name |
|
OpenToolkit.Mathematics.Matrix4 |
value |
|
|
Improve this Doc
View Source
Declaration
public void AddParameter(string name, Vector2 value)
Parameters
Type |
Name |
Description |
System.String |
name |
|
OpenToolkit.Mathematics.Vector2 |
value |
|
|
Improve this Doc
View Source
Declaration
public void AddParameter(string name, Vector3 value)
Parameters
Type |
Name |
Description |
System.String |
name |
|
OpenToolkit.Mathematics.Vector3 |
value |
|
|
Improve this Doc
View Source
Declaration
public void AddParameter(string name, Vector4 value)
Parameters
Type |
Name |
Description |
System.String |
name |
|
OpenToolkit.Mathematics.Vector4 |
value |
|
|
Improve this Doc
View Source
AddParameter(String, Boolean)
Declaration
public void AddParameter(string name, bool value)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Boolean |
value |
|
|
Improve this Doc
View Source
AddParameter(String, Int32)
Declaration
public void AddParameter(string name, int value)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Int32 |
value |
|
|
Improve this Doc
View Source
AddParameter(String, Single)
Declaration
public void AddParameter(string name, float value)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Single |
value |
|
|
Improve this Doc
View Source
AddTexture(Texture)
Declaration
public void AddTexture(Texture txt)
Parameters
|
Improve this Doc
View Source
RemoveTexture(Texture)
Declaration
public void RemoveTexture(Texture txt)
Parameters
|
Improve this Doc
View Source
SetDefine(String, String)
Declaration
public void SetDefine(string name, string value)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
value |
|
|
Improve this Doc
View Source
Visit<T>(Action<T>, Func<T, Boolean>)
Declaration
public override void Visit<T>(Action<T> action, Func<T, bool> visitChilds = null)
where T : SceneObject
Parameters
Type |
Name |
Description |
System.Action<T> |
action |
|
System.Func<T, System.Boolean> |
visitChilds |
|
Type Parameters
Overrides
Aximo.Engine.SceneObject.Visit<T>(System.Action<T>, System.Func<T, System.Boolean>)
Implements
System.IDisposable