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
| Methods | Methods | Methods | Methods |
|---|---|---|---|
Name | string | iegūt/iestatīt | Materiāla nosaukums |
Ambient | Vector4 | iegūt/iestatīt | Apkārtējā krāsa |
Diffuse | Vector4 | iegūt/iestatīt | Difūzā krāsa |
Emissive | Vector4 | iegūt/iestatīt | Emisijas krāsa |
Reflective | Vector4 | iegūt/iestatīt | Atspoguļojoša krāsa |
Reflectivity | float | iegūt/iestatīt | Atspoguļošanas koeficients |
Transparency | float | iegūt/iestatīt | Caurspīdīguma koeficients |
IndexOfRefraction | float | iegūt/iestatīt | Refrakcijas indekss |
Texture | string | iegūt/iestatīt | Tekstū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
| Methods | Methods | Methods | Methods |
|---|---|---|---|
Specular | Vector4 | iegūt/iestatīt | Spoguļgaismas krāsa |
Shininess | float | iegūt/iestatīt | Spīdīguma eksponents |
SpecularPower | float | iegūt/iestatīt | Spoguļ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
| Methods | Methods | Methods | Methods |
|---|---|---|---|
Name | string | iegūt/iestatīt | Materiāla nosaukums |
BaseColor | Vector4 | iegūt/iestatīt | Bāzes krāsa (albedo) |
Metallic | float | iegūt/iestatīt | Metāla faktors (0–1) |
Roughness | float | iegūt/iestatīt | Raupjuma faktors (0–1) |
Occlusion | float | iegūt/iestatīt | Apkārtējās aptumšojuma koeficients |
BaseColorTexture | string | get/set | Pamatkrāsas tekstūras ceļš |
MetallicRoughnessTexture | string | get/set | Kombinētā metāla/raupjuma tekstūra |
NormalTexture | string | iegūt/iestatīt | Normālās kartes tekstūras ceļš |
EmissiveTexture | string | iegūt/iestatīt | Izstarojuma tekstūras ceļš |
OcclusionTexture | string | iegūt/iestatīt | Aizsega 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;