Material — Aspose.3D FOSS for .NET

Vārdu telpa: Aspose.ThreeD.Shading

LambertMaterial

Klasisks tikai difūzs materiāls ar pamata virsmas īpašībām.

Methods

MethodsMethodsMethodsMethods
Namestringiegūt/iestatītMateriāla nosaukums
AmbientVector4iegūt/iestatītApkārtējā krāsa
DiffuseVector4iegūt/iestatītDifūzā krāsa
EmissiveVector4iegūt/iestatītEmisijas krāsa
ReflectiveVector4iegūt/iestatītAtspoguļojoša krāsa
Reflectivityfloatiegūt/iestatītAtspoguļošanas koeficients
Transparencyfloatiegūt/iestatītCaurspīdīguma koeficients
IndexOfRefractionfloatiegūt/iestatītRefrakcijas indekss
Texturestringiegūt/iestatītTekstūras faila ceļš
using Aspose.ThreeD.Shading;

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

PhongMaterial

Methods LambertMaterial ar spekulāriem spīdumiem.

Papildu īpašības

MethodsMethodsMethodsMethods
SpecularVector4iegūt/iestatītSpoguļgaismas krāsa
Shininessfloatiegūt/iestatītSpīdīguma eksponents
SpecularPowerfloatiegūt/iestatītSpoguļspēks
var material = new PhongMaterial("Metal");
material.Specular = new Vector4(0.8f, 0.8f, 0.8f, 1.0f);
material.Shininess = 50.0f;

PbrMaterial

Fiziski balstīta renderēšanas materiāls, ko izmanto glTF 2.0 un citi PBR spējīgi formāti.

Methods

MethodsMethodsMethodsMethods
Namestringiegūt/iestatītMateriāla nosaukums
BaseColorVector4iegūt/iestatītBāzes krāsa (albedo)
Metallicfloatiegūt/iestatītMetāla faktors (0–1)
Roughnessfloatiegūt/iestatītRaupjuma faktors (0–1)
Occlusionfloatiegūt/iestatītApkārtējās aptumšojuma koeficients
BaseColorTexturestringget/setPamatkrāsas tekstūras ceļš
MetallicRoughnessTexturestringget/setKombinētā metāla/raupjuma tekstūra
NormalTexturestringiegūt/iestatītNormālās kartes tekstūras ceļš
EmissiveTexturestringiegūt/iestatītIzstarojuma tekstūras ceļš
OcclusionTexturestringiegūt/iestatītAizsega tekstūras ceļš
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;

Skatīt arī

 Latviešu