ShaderMaterial
Overview
ShaderMaterial is a class in Aspose.3D FOSS for .NET.
Inherits from: Material.
A shader material allows to describe the material by external rendering engine or shader language.
This class provides 11 methods for working with ShaderMaterial objects in .NET programs.
Available methods include: A3DObject, FindProperty, GetEnumerator, GetProperty, GetTexture, RemoveProperty, SetProperty, SetTexture, ShaderMaterial, ToString.
All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package.
Properties: MapAmbient, MapDiffuse, MapEmissive, MapNormal, MapSpecular, Name, and 2 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Techniques | IList<ShaderTechnique> | Read | Gets all available techniques defined in this material. |
MapSpecular | string | Read | Used in GetTexture/SetTexture to assign a specular texture mapping. |
MapDiffuse | string | Read | Used in GetTexture/SetTexture to assign a diffuse texture mapping. |
MapEmissive | string | Read | Used in GetTexture/SetTexture to assign a emissive texture mapping. |
MapAmbient | string | Read | Used in GetTexture/SetTexture to assign a ambient texture mapping. |
MapNormal | string | Read | Used in GetTexture/SetTexture to assign a normal texture mapping. |
Name | string | Read/Write | Gets or sets the name. |
Properties | PropertyCollection | Read | Gets the collection of all properties. |
Methods
| Signature | Description |
|---|---|
ShaderMaterial() | Initializes a new instance of the ShaderMaterial class. |
ShaderMaterial(name: string) | Initializes a new instance of the ShaderMaterial class. |
GetTexture(slotName: string) | /// |
SetTexture(slotName: string, texture: TextureBase) | Sets the texture to specified slot. |
ToString() | Formats object to string. |
GetEnumerator() | Gets the enumerator to enumerate internal texture slots. |
A3DObject() | Initializes a new instance of the A3DObject class with no name. |
RemoveProperty(property: Property) | Removes a dynamic property. |
GetProperty(property: string) | Get the value of specified property |
SetProperty(property: string, value: object?) | Sets the value of specified property |
FindProperty(propertyName: string) | Finds the property. |