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
| Enumerations | Enumerations | Enumerations | Enumerations |
|---|---|---|---|
Name | string | pobierz/ustaw | Nazwa materiału |
Ambient | Vector4 | pobierz/ustaw | Kolor otoczenia |
Diffuse | Vector4 | pobierz/ustaw | Kolor rozproszenia |
Emissive | Vector4 | pobierz/ustaw | Kolor emisji |
Reflective | Vector4 | pobierz/ustaw | Kolor odbicia |
Reflectivity | float | pobierz/ustaw | Współczynnik odbicia |
Transparency | float | pobierz/ustaw | Współczynnik przezroczystości |
IndexOfRefraction | float | pobierz/ustaw | Współczynnik załamania |
Texture | string | pobierz/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
| Enumerations | Enumerations | Enumerations | Enumerations |
|---|---|---|---|
Specular | Vector4 | pobierz/ustaw | Kolor podświetlenia lustrzanego |
Shininess | float | pobierz/ustaw | wykładnik połysku |
SpecularPower | float | pobierz/ustaw | moc 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
| Enumerations | Enumerations | Enumerations | Enumerations |
|---|---|---|---|
Name | string | pobierz/ustaw | nazwa materiału |
BaseColor | Vector4 | pobierz/ustaw | kolor bazowy (albedo) |
Metallic | float | pobierz/ustaw | współczynnik metaliczności (0–1) |
Roughness | float | pobierz/ustaw | Współczynnik szorstkości (0–1) |
Occlusion | float | pobierz/ustaw | Współczynnik zacienienia otoczenia |
BaseColorTexture | string | pobierz/ustaw | Ścieżka tekstury bazowego koloru |
MetallicRoughnessTexture | string | pobierz/ustaw | Połączona tekstura metaliczności/szorstkości |
NormalTexture | string | pobierz/ustaw | Ścieżka tekstury mapy normalnej |
EmissiveTexture | string | pobierz/ustaw | Ścieżka tekstury emisji |
OcclusionTexture | string | get/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;