LambertMaterial
Przegląd
LambertMaterial jest klasą w Aspose.3D FOSS dla TypeScript. Dziedziczy po: Material.
LambertMaterial.constructor tworzy instancję LambertMaterial, opcjonalnie przypisując nazwę.
Ta klasa deklaruje 9 metod dla obiektów LambertMaterial w programach TypeScript. Dostępne metody to: constructor, findProperty, getProperty, getTexture, removeProperty, setProperty, setTexture, toString. Publiczne członkowie są dostępni 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 6 dodatkowych.
Właściwości
| Nazwa | Typ | Dostęp | Opis |
|---|---|---|---|
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ę ambient. |
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 | null)` |
getTexture(_slotName: string) → `TextureBase | null` |
setTexture(_slotName: string, _texture: TextureBase) | Ustawia wartość tekstury. |
constructor(name: string) | Wywołuje konstruktor(name) na tej instancji LambertMaterial. |
findProperty(propertyName: string) → `Property | null` |
getProperty(property: string) → any | Wywołuje getProperty(property) na tej instancji LambertMaterial. |
setProperty(property: string, value: any) | Ustawia wartość właściwości. |
| `removeProperty(property: string | Property)→boolean` |
toString() → string | Wywołuje toString na tej instancji LambertMaterial. |