ShaderMaterial class
ShaderMaterial class
A shader material allows to describe the material by external rendering engine or shader language.
ShaderMaterial
uses ShaderTechnique
to describe the concrete rendering details,
and the most suitable one will be used according to the final rendering platform.
For example, your ShaderMaterial
instance can have two technique, one is defined by HLSL, and another is defined by GLSL
Under non-window platform the GLSL should be used instead of HLSL
Inheritance: ShaderMaterial
→
Material
→
A3DObject
The ShaderMaterial type exposes the following members:
Constructors
Constructor | Description |
---|---|
init | Initializes a new instance of the ShaderMaterial class. |
init | Initializes a new instance of the ShaderMaterial class. |
Properties
Property | Description |
---|---|
name | Gets or sets the name. |
properties | Gets the collection of all properties. |
MAP_SPECULAR | Used in Material.set_texture to assign a specular texture mapping. |
MAP_DIFFUSE | Used in Material.set_texture to assign a diffuse texture mapping. |
MAP_EMISSIVE | Used in Material.set_texture to assign a emissive texture mapping. |
MAP_AMBIENT | Used in Material.set_texture to assign a ambient texture mapping. |
MAP_NORMAL | Used in Material.set_texture to assign a normal texture mapping. |
techniques | Gets all available techniques defined in this material. |
Methods
Method | Description |
---|---|
remove_property | Removes a dynamic property. |
remove_property | Remove the specified property identified by name |
get_property | Get the value of specified property |
set_property | Sets the value of specified property |
find_property | Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name) |
get_texture | Gets the texture from the specified slot, it can be material’s property name or shader’s parameter name |
set_texture | Sets the texture to specified slot |
See Also
- module
aspose.threed.shading
- class
A3DObject
- class
Material
- class
ShaderMaterial
- class
ShaderTechnique