Material — Aspose.3D FOSS for .NET

Espai de noms: Aspose.ThreeD.Shading

LambertMaterial

Material clàssic només difús amb propietats bàsiques de la superfície.

Methods

MethodsMethodsMethodsMethods
Namestringobtenir/establirNom del material
AmbientVector4obtenir/establirColor ambient
DiffuseVector4obtenir/establirColor difús
EmissiveVector4obtenir/establirColor emissiu
ReflectiveVector4obtenir/establirColor reflectiu
Reflectivityfloatobté/estableixFactor de reflectivitat
Transparencyfloatobté/estableixFactor de transparència
IndexOfRefractionfloatobté/estableixíndex de refracció
Texturestringobté/estableixCamí del fitxer de textura
using Aspose.ThreeD.Shading;

var material = new LambertMaterial("Wood");
material.Diffuse = new Vector4(0.6f, 0.4f, 0.2f, 1.0f);

PhongMaterial

Methods LambertMaterial amb reflexos especulars.

Propietats addicionals

MethodsMethodsMethodsMethods
SpecularVector4obté/estableixColor del ressalt especular
Shininessfloatobtenir/establirexponent de brillantor
SpecularPowerfloatobtenir/establirpotè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 Physically Based Rendering utilitzat per glTF 2.0 i altres formats compatibles amb PBR.

Methods

MethodsMethodsMethodsMethods
Namestringobtenir/establirnom del material
BaseColorVector4obtenir/establircolor base (albedo)
Metallicfloatobtenir/establirfactor metàl·lic (0–1)
Roughnessfloatobtenir/establirFactor de rugositat (0–1)
Occlusionfloatobtenir/establirFactor d’occlusió ambiental
BaseColorTexturestringobtenir/establirCamí de la textura de color base
MetallicRoughnessTexturestringobtenir/establirTextura combinada de metall/rugositat
NormalTexturestringobtenir/establirCamí de la textura del mapa normal
EmissiveTexturestringobtenir/establirCamí de la textura emissiva
OcclusionTexturestringget/setCamí de la textura d’occlusió
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;

Vegeu també

 Català