Material — Aspose.3D FOSS for .NET
Namespace: Aspose.ThreeD.Shading
LambertMaterial
Material clássico apenas difuso com propriedades de superfície básicas.
Enumerations
| Enumerations | Enumerations | Enumerations | Enumerations |
|---|---|---|---|
Name | string | get/set | Nome do material |
Ambient | Vector4 | get/set | Cor ambiente |
Diffuse | Vector4 | get/set | Cor difusa |
Emissive | Vector4 | get/set | Cor emissiva |
Reflective | Vector4 | get/set | Cor reflexiva |
Reflectivity | float | obter/definir | Fator de refletividade |
Transparency | float | obter/definir | Fator de transparência |
IndexOfRefraction | float | obter/definir | Índice de refração |
Texture | string | obter/definir | Caminho do arquivo de textura |
using Aspose.ThreeD.Shading;
var material = new LambertMaterial("Wood");
material.Diffuse = new Vector4(0.6f, 0.4f, 0.2f, 1.0f);PhongMaterial
Enumerations LambertMaterial com realces especulares.
Propriedades adicionais
| Enumerations | Enumerations | Enumerations | Enumerations |
|---|---|---|---|
Specular | Vector4 | obter/definir | Cor do realce especular |
Shininess | float | obter/definir | Expoente de brilho |
SpecularPower | float | obter/definir | Potência especular |
var material = new PhongMaterial("Metal");
material.Specular = new Vector4(0.8f, 0.8f, 0.8f, 1.0f);
material.Shininess = 50.0f;PbrMaterial
Material de Renderização Baseada em Física usado por glTF 2.0 e outros formatos compatíveis com PBR.
Enumerations
| Enumerations | Enumerations | Enumerations | Enumerations |
|---|---|---|---|
Name | string | obter/definir | Nome do material |
BaseColor | Vector4 | obter/definir | Cor base (albedo) |
Metallic | float | obter/definir | Fator metálico (0–1) |
Roughness | float | obter/definir | Fator de rugosidade (0–1) |
Occlusion | float | obter/definir | Fator de oclusão ambiente |
BaseColorTexture | string | obter/definir | Caminho da textura de cor base |
MetallicRoughnessTexture | string | obter/definir | Textura combinada de metal/rugosidade |
NormalTexture | string | obter/definir | Caminho da textura do mapa normal |
EmissiveTexture | string | obter/definir | Caminho da textura emissiva |
OcclusionTexture | string | obter/definir | Caminho da textura de oclusão |
var material = new PbrMaterial("Gold");
material.BaseColor = new Vector4(1.0f, 0.8f, 0.2f, 1.0f);
material.Metallic = 0.9f;
material.Roughness = 0.1f;