Material — Aspose.3D FOSS for .NET

Przestrzeń nazw: Aspose.ThreeD.Shading

LambertMaterial

Klasyczny materiał jedynie rozpraszający z podstawowymi właściwościami powierzchni.

Enumerations

EnumerationsEnumerationsEnumerationsEnumerations
Namestringpobierz/ustawNazwa materiału
AmbientVector4pobierz/ustawKolor otoczenia
DiffuseVector4pobierz/ustawKolor rozproszenia
EmissiveVector4pobierz/ustawKolor emisji
ReflectiveVector4pobierz/ustawKolor odbicia
Reflectivityfloatpobierz/ustawWspółczynnik odbicia
Transparencyfloatpobierz/ustawWspółczynnik przezroczystości
IndexOfRefractionfloatpobierz/ustawWspółczynnik załamania
Texturestringpobierz/ustawŚcieżka do pliku tekstury
using Aspose.ThreeD.Shading;

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

PhongMaterial

Enumerations LambertMaterial z podświetleniami lustrzanymi.

Dodatkowe właściwości

EnumerationsEnumerationsEnumerationsEnumerations
SpecularVector4pobierz/ustawKolor podświetlenia lustrzanego
Shininessfloatpobierz/ustawwykładnik połysku
SpecularPowerfloatpobierz/ustawmoc odbicia
var material = new PhongMaterial("Metal");
material.Specular = new Vector4(0.8f, 0.8f, 0.8f, 1.0f);
material.Shininess = 50.0f;

PbrMaterial

Materiał oparty na renderingu fizycznym używany w glTF 2.0 i innych formatach obsługujących PBR.

Enumerations

EnumerationsEnumerationsEnumerationsEnumerations
Namestringpobierz/ustawnazwa materiału
BaseColorVector4pobierz/ustawkolor bazowy (albedo)
Metallicfloatpobierz/ustawwspółczynnik metaliczności (0–1)
Roughnessfloatpobierz/ustawWspółczynnik szorstkości (0–1)
Occlusionfloatpobierz/ustawWspółczynnik zacienienia otoczenia
BaseColorTexturestringpobierz/ustawŚcieżka tekstury bazowego koloru
MetallicRoughnessTexturestringpobierz/ustawPołączona tekstura metaliczności/szorstkości
NormalTexturestringpobierz/ustawŚcieżka tekstury mapy normalnej
EmissiveTexturestringpobierz/ustawŚcieżka tekstury emisji
OcclusionTexturestringget/setŚcieżka tekstury zaciemnienia
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;

Zobacz także

 Polski