PbrMaterial
Panoramica
PbrMaterial è una classe in Aspose.3D FOSS per TypeScript. Eredita da: Material.
PbrMaterial.constructor crea un nuovo PbrMaterial con un nome opzionale e il colore albedo di base.
Questa classe dichiara 11 metodi per oggetti PbrMaterial nei programmi TypeScript. I metodi disponibili includono: constructor, findProperty, fromMaterial, getProperty, getTexture, removeProperty, setProperty, setTexture, toString. I membri pubblici sono accessibili a qualsiasi applicazione TypeScript dopo aver installato il pacchetto Aspose.3D FOSS per TypeScript. Proprietà: MAP_AMBIENT, MAP_DIFFUSE, MAP_EMISSIVE, MAP_NORMAL, MAP_SPECULAR, albedo, e altre 12.
Proprietà
| Nome | Tipo | Accesso | Descrizione |
|---|---|---|---|
albedo | `Vector3 | null` | Lettura/Scrittura |
albedoTexture | `TextureBase | null` | Lettura/Scrittura |
normalTexture | `TextureBase | null` | Lettura/Scrittura |
metallicFactor | number | Lettura/Scrittura | Ottiene il fattore metallico. |
roughnessFactor | number | Lettura/Scrittura | Ottiene il fattore di rugosità. |
metallicRoughness | `TextureBase | null` | Lettura/Scrittura |
occlusionTexture | `TextureBase | null` | Lettura/Scrittura |
occlusionFactor | number | Lettura/Scrittura | Ottiene il fattore di occlusione. |
emissiveTexture | `TextureBase | null` | Lettura/Scrittura |
emissiveColor | `Vector3 | null` | Lettura/Scrittura |
transparency | number | Lettura/Scrittura | Ottiene la trasparenza. |
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 mappa ambientale. |
MAP_NORMAL | `` | Lettura/Scrittura | Ottiene o imposta la mappa normale. |
name | string | Lettura/Scrittura | Ottiene il nome. |
properties | PropertyCollection | Lettura | Ottiene le proprietà. |
Metodi
| Firma | Descrizione |
|---|---|
| `constructor(name: string | null, albedo: Vector3 |
fromMaterial(material: Material) → PbrMaterial | Restituisce un PbrMaterial inizializzato dalle proprietà di un Material esistente |
| `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 PbrMaterial. |
findProperty(propertyName: string) → `Property | null` |
getProperty(property: string) → any | Chiama getProperty(property) su questa istanza di PbrMaterial. |
setProperty(property: string, value: any) | Imposta il valore della proprietà. |
| `removeProperty(property: string | Property)→boolean` |
toString() → string | Chiama toString su questa istanza PbrMaterial. |