Material
Vật liệu — Lớp Material. Kế thừa từ: A3DObject.
Methods: Aspose.ThreeD
Methods
Không có thuộc tính công khai nào được tài liệu hoá trong nguồn.
Methods
Không có phương thức công khai nào được tài liệu hoá trong nguồn.
Xem thêm
| Name | Type | Access | Description |
|---|---|---|---|
MapSpecular | string | Read | Gets the map specular. |
MapDiffuse | string | Read | Gets the map diffuse. |
MapEmissive | string | Read | Gets the map emissive. |
MapAmbient | string | Read | Gets the map ambient. |
MapNormal | string | Read | Gets the map normal. |
Name | string | Read/Write | Gets or sets the name. |
Properties | PropertyCollection | Read | Gets the properties. |
| Signature | Description |
|---|---|
Material() | Initializes a new material with the specified name |
Material(name: string) | |
GetTexture(slotName: string) | Gets the texture from the specified slot, it can be material’s property name or shader’s parameter name. |
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() | |
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. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name) |