Material — Aspose.3D FOSS for .NET
מרחב שמות: Aspose.ThreeD.Shading
LambertMaterial
חומר קלאסי רק פיזור עם תכונות פני שטח בסיסיות.
Example
| Example | Example | Example | Example |
|---|---|---|---|
Name | string | קבל/הגדר | שם חומר |
Ambient | Vector4 | קבל/הגדר | צבע סביבתי |
Diffuse | Vector4 | קבל/הגדר | צבע פיזור |
Emissive | Vector4 | קבל/הגדר | צבע פולט |
Reflective | Vector4 | קבל/הגדר | צבע משקף |
Reflectivity | float | קבל/הגדר | גורם רפלקטיביות |
Transparency | float | קבל/הגדר | גורם שקיפות |
IndexOfRefraction | float | קבל/הגדר | מקדם שבירה |
Texture | string | קבל/הגדר | נתיב קובץ מרקם |
using Aspose.ThreeD.Shading;
var material = new LambertMaterial("Wood");
material.Diffuse = new Vector4(0.6f, 0.4f, 0.2f, 1.0f);PhongMaterial
Example LambertMaterial עם הבליטות המראה.
תכונות נוספות
| Example | Example | Example | Example |
|---|---|---|---|
Specular | Vector4 | קבל/הגדר | צבע הילה מראה |
Shininess | float | קבל/הגדר | מקדם ברק |
SpecularPower | float | קבל/הגדר | עוצמת מראה |
var material = new PhongMaterial("Metal");
material.Specular = new Vector4(0.8f, 0.8f, 0.8f, 1.0f);
material.Shininess = 50.0f;PbrMaterial
חומר Physically Based Rendering המשמש ב-glTF 2.0 ובפורמטים אחרים התומכים ב-PBR.
Example
| Example | Example | Example | Example |
|---|---|---|---|
Name | string | קבל/הגדר | שם חומר |
BaseColor | Vector4 | קבל/הגדר | צבע בסיס (אלבדו) |
Metallic | float | קבל/הגדר | גורם מתכתי (0–1) |
Roughness | float | קבל/הגדר | גורם משקעים (0–1) |
Occlusion | float | קבל/הגדר | גורם כיסוי סביבתי |
BaseColorTexture | string | קבל/הגדר | נתיב מרקם צבע בסיס |
MetallicRoughnessTexture | string | קבל/הגדר | מרקם מתכת/חספוס משולב |
NormalTexture | string | get/set | נתיב מרקם Normal map |
EmissiveTexture | string | get/set | נתיב מרקם Emissive |
OcclusionTexture | string | get/set | נתיב מרקם Occlusion |
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;