PhongMaterial
Przegląd
PhongMaterial jest klasą w Aspose.3D FOSS dla TypeScript. Dziedziczy po: LambertMaterial.
PhongMaterial.constructor tworzy nową instancję PhongMaterial o podanej nazwie.
Ta klasa deklaruje 9 metod dla obiektów PhongMaterial w programach TypeScript. Dostępne metody to: constructor, findProperty, getProperty, getTexture, removeProperty, setProperty, setTexture, toString. Publiczne elementy są dostępne dla każdej aplikacji TypeScript po zainstalowaniu pakietu Aspose.3D FOSS dla TypeScript. Właściwości: MAP_AMBIENT, MAP_DIFFUSE, MAP_EMISSIVE, MAP_NORMAL, MAP_SPECULAR, ambientColor oraz 11 innych.
Właściwości
| Nazwa | Typ | Dostęp | Opis |
|---|---|---|---|
specularColor | `Vector3 | null` | Odczyt/zapis |
specularFactor | number | Odczyt/zapis | Pobiera czynnik odbicia. |
shininess | number | Odczyt/zapis | Pobiera połysk. |
reflectionColor | `Vector3 | null` | Odczyt/zapis |
reflectionFactor | number | Odczyt/zapis | Pobiera współczynnik odbicia. |
MAP_SPECULAR | `` | Odczyt/zapis | Pobiera lub ustawia mapę specular. |
MAP_DIFFUSE | `` | Odczyt/zapis | Pobiera lub ustawia mapę dyfuzyjną. |
MAP_EMISSIVE | `` | Odczyt/zapis | Pobiera lub ustawia mapę emisji. |
MAP_AMBIENT | `` | Odczyt/zapis | Pobiera lub ustawia mapę otoczenia. |
MAP_NORMAL | `` | Odczyt/zapis | Pobiera lub ustawia mapę normalną. |
emissiveColor | `Vector3 | null` | Odczyt/zapis |
ambientColor | `Vector3 | null` | Odczyt/zapis |
diffuseColor | `Vector3 | null` | Odczyt/zapis |
transparentColor | `Vector3 | null` | Odczyt/zapis |
transparency | number | Odczyt/zapis | Pobiera przezroczystość. |
name | string | Odczyt/zapis | Pobiera nazwę. |
properties | PropertyCollection | Odczyt | Pobiera właściwości. |
Metody
| Sygnatura | Opis |
|---|---|
constructor(name: string) | Tworzy nową instancję PhongMaterial o podanej nazwie |
| `constructor(name: string | null)` |
getTexture(_slotName: string) → `TextureBase | null` |
setTexture(_slotName: string, _texture: TextureBase) | Ustawia wartość tekstury. |
findProperty(propertyName: string) → `Property | null` |
getProperty(property: string) → any | Wywołuje getProperty(property) na tej instancji PhongMaterial. |
setProperty(property: string, value: any) | Ustawia wartość właściwości. |
| `removeProperty(property: string | Property)→boolean` |
toString() → string | Wywołuje toString na tej instancji PhongMaterial. |