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 | get/set | 反射率係数 |
Transparency | float | get/set | 透明度係数 |
IndexOfRefraction | float | get/set | 屈折率 |
Texture | string | get/set | テクスチャファイルパス |
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 | get/set | 鏡面ハイライト色 |
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
glTF 2.0 やその他の PBR 対応フォーマットで使用される、物理ベースレンダリング(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 | 取得/設定 | 法線マップ テクスチャ パス |
EmissiveTexture | string | 取得/設定 | エミッシブ テクスチャ パス |
OcclusionTexture | string | 取得/設定 | オクルージョンテクスチャパス |
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;