LambertMaterial
Panoramica
LambertMaterial è una classe in Aspose.3D FOSS per TypeScript. Eredita da: Material.
LambertMaterial.constructor crea un’istanza LambertMaterial, assegnando facoltativamente un nome.
Questa classe dichiara 9 metodi per gli oggetti LambertMaterial nei programmi TypeScript. I metodi disponibili includono: constructor, findProperty, getProperty, getTexture, removeProperty, setProperty, setTexture, toString. I membri pubblici sono accessibili a qualsiasi applicazione TypeScript dopo l’installazione del pacchetto Aspose.3D FOSS per TypeScript. Proprietà: MAP_AMBIENT, MAP_DIFFUSE, MAP_EMISSIVE, MAP_NORMAL, MAP_SPECULAR, ambientColor, e altre 6.
Proprietà
| Nome | Tipo | Accesso | Descrizione |
|---|---|---|---|
MAP_SPECULAR | `` | Lettura/Scrittura | Ottiene o imposta la mappa speculare. |
MAP_DIFFUSE | `` | Lettura/Scrittura | Ottiene o imposta la mappa diffusa. |
MAP_EMISSIVE | `` | Lettura/Scrittura | Ottiene o imposta la mappa emissiva. |
MAP_AMBIENT | `` | Lettura/Scrittura | Ottiene o imposta la map ambient. |
MAP_NORMAL | `` | Lettura/Scrittura | Ottiene o imposta la mappa normale. |
emissiveColor | `Vector3 | null` | Lettura/Scrittura |
ambientColor | `Vector3 | null` | Lettura/Scrittura |
diffuseColor | `Vector3 | null` | Lettura/Scrittura |
transparentColor | `Vector3 | null` | Lettura/Scrittura |
transparency | number | Lettura/Scrittura | Ottiene la trasparenza. |
name | string | Lettura/Scrittura | Ottiene il nome. |
properties | PropertyCollection | Lettura | Ottiene le proprietà. |
Metodi
| Firma | Descrizione |
|---|---|
| `constructor(name: string | null)` |
getTexture(_slotName: string) → `TextureBase | null` |
setTexture(_slotName: string, _texture: TextureBase) | Imposta il valore della texture. |
constructor(name: string) | Chiama il costruttore(name) su questa istanza di LambertMaterial. |
findProperty(propertyName: string) → `Property | null` |
getProperty(property: string) → any | Chiama getProperty(property) su questa istanza di LambertMaterial. |
setProperty(property: string, value: any) | Imposta il valore della proprietà. |
| `removeProperty(property: string | Property)→boolean` |
toString() → string | Chiama toString su questa istanza di LambertMaterial. |