Material — Aspose.3D FOSS for .NET

名前空間: Aspose.ThreeD.Shading

LambertMaterial

基本的な表面特性を備えた、古典的な拡散のみマテリアル。.

Example

ExampleExampleExampleExample
Namestring取得/設定マテリアル名
AmbientVector4取得/設定環境色
DiffuseVector4取得/設定拡散色
EmissiveVector4取得/設定発光色
ReflectiveVector4取得/設定反射色
Reflectivityfloatget/set反射率係数
Transparencyfloatget/set透明度係数
IndexOfRefractionfloatget/set屈折率
Texturestringget/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 鏡面ハイライト付き。.

追加プロパティ

ExampleExampleExampleExample
SpecularVector4get/set鏡面ハイライト色
Shininessfloat取得/設定光沢指数
SpecularPowerfloat取得/設定鏡面パワー
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

ExampleExampleExampleExample
Namestring取得/設定マテリアル名
BaseColorVector4取得/設定ベースカラー(アルベド)
Metallicfloat取得/設定金属度ファクター(0–1)
Roughnessfloat取得/設定ラフネス係数 (0–1)
Occlusionfloat取得/設定アンビエントオクルージョン係数
BaseColorTexturestring取得/設定ベースカラー テクスチャ パス
MetallicRoughnessTexturestring取得/設定合成メタリック/ラフネス テクスチャ
NormalTexturestring取得/設定法線マップ テクスチャ パス
EmissiveTexturestring取得/設定エミッシブ テクスチャ パス
OcclusionTexturestring取得/設定オクルージョンテクスチャパス
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;

参照

 日本語