PhongMaterial
Overview
PhongMaterial is a class in Aspose.3D FOSS for TypeScript.
Inherits from: LambertMaterial.
PhongMaterial.constructor creates a new PhongMaterial instance with the specified name.
This class declares 9 methods for PhongMaterial objects in TypeScript programs.
Available methods include: constructor, findProperty, getProperty, getTexture, removeProperty, setProperty, setTexture, toString.
Public members are accessible to any TypeScript application after installing the Aspose.3D FOSS for TypeScript package.
Properties: MAP_AMBIENT, MAP_DIFFUSE, MAP_EMISSIVE, MAP_NORMAL, MAP_SPECULAR, ambientColor, and 11 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
specularColor | Vector3 | null | Read/Write | Gets the specular color. |
specularFactor | number | Read/Write | Gets the specular factor. |
shininess | number | Read/Write | Gets the shininess. |
reflectionColor | Vector3 | null | Read/Write | Gets the reflection color. |
reflectionFactor | number | Read/Write | Gets the reflection factor. |
MAP_SPECULAR | `` | Read/Write | Gets or sets the map specular. |
MAP_DIFFUSE | `` | Read/Write | Gets or sets the map diffuse. |
MAP_EMISSIVE | `` | Read/Write | Gets or sets the map emissive. |
MAP_AMBIENT | `` | Read/Write | Gets or sets the map ambient. |
MAP_NORMAL | `` | Read/Write | Gets or sets the map normal. |
emissiveColor | Vector3 | null | Read/Write | Gets the emissive color. |
ambientColor | Vector3 | null | Read/Write | Gets the ambient color. |
diffuseColor | Vector3 | null | Read/Write | Gets the diffuse color. |
transparentColor | Vector3 | null | Read/Write | Gets the transparent color. |
transparency | number | Read/Write | Gets the transparency. |
name | string | Read/Write | Gets the name. |
properties | PropertyCollection | Read | Gets the properties. |
Methods
| Signature | Description |
|---|---|
constructor(name: string) | Creates a new PhongMaterial instance with the specified name |
constructor(name: string | null) | Calls constructor(name) on this PhongMaterial instance. |
getTexture(_slotName: string) → TextureBase | null | Calls getTexture(_slotName) on this PhongMaterial instance. |
setTexture(_slotName: string, _texture: TextureBase) | Sets the texture value. |
findProperty(propertyName: string) → Property | null | Calls findProperty(propertyName) on this PhongMaterial instance. |
getProperty(property: string) → any | Calls getProperty(property) on this PhongMaterial instance. |
setProperty(property: string, value: any) | Sets the property value. |
removeProperty(property: string | Property) → boolean | Calls removeProperty(property) on this PhongMaterial instance. |
toString() → string | Calls toString on this PhongMaterial instance. |