PhongMaterial
General
PhongMaterial is a class in Aspose.3D FOSS for .NET.
Inherits from: LambertMaterial.
PhongMaterial és una classe en Aspose.3D FOSS per a .NET. Hereta de: ゚LambertMaterial`.
PhongMaterial.Specular obté o fixa el color especular com a Vector4.
Propietats
| Name | Type | Access | Description |
|---|---|---|---|
SpecularColor | Vector3 | Read/Write | Gets or sets the specular color. |
SpecularFactor | double | Read/Write | Gets or sets the specular factor. |
Shininess | double | Read/Write | Gets or sets the shininess. |
ReflectionColor | Vector3 | Read/Write | Gets or sets the reflection color. |
ReflectionFactor | double | Read/Write | Gets or sets the reflection factor. |
EmissiveColor | Vector3 | Read/Write | Gets or sets the emissive color. |
AmbientColor | Vector3 | Read/Write | Gets or sets the ambient color. |
DiffuseColor | Vector3 | Read/Write | Gets or sets the diffuse color. |
TransparentColor | Vector3 | Read/Write | Gets or sets the transparent color. |
Transparency | double | Read/Write | Gets or sets the transparency. |
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. |
Mètodes
| Signature | Description |
|---|---|
PhongMaterial() | Creates a new material and assigns the given name |
PhongMaterial(name: string) | Material name |
LambertMaterial() | |
Material() | |
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) |
PhongMaterial(name: string) |