PhongMaterial
概述
PhongMaterial 是一个类在Aspose.3D FOSS的.NET中. 继承人: LambertMaterial.
材料为盲阴影模型.
本类提供了在NET程序中与PhongMaterial对象工作的12种方法. 有的方法包括: A3DObject, FindProperty, GetEnumerator, GetProperty, GetTexture, LambertMaterial, Material, PhongMaterial, RemoveProperty, SetProperty, SetTexture, ToString. 所有公众成员在安装了Aspose.3D FOSS for .NET 包后,可以访问任何.NET应用程序. 特性: AmbientColor, DiffuseColor, EmissiveColor, MapAmbient, MapDiffuse, MapEmissive,另外还有11个.
属性
| Name | Type | Access | Description |
|---|---|---|---|
SpecularColor | Vector3 | 阅读/写作 | 得到或设置镜子颜色. |
SpecularFactor | double | 阅读/写作 | 得到或设置了镜子因数. |
Shininess | double | 阅读/写作 | 得到或设置光泽. |
ReflectionColor | Vector3 | 阅读/写作 | 得到或设置反射颜色. |
ReflectionFactor | double | 阅读/写作 | 得到或设置反射因子. |
EmissiveColor | Vector3 | 阅读/写作 | 得到或设置发射颜色. |
AmbientColor | Vector3 | 阅读/写作 | 获取或设置环境颜色. |
DiffuseColor | Vector3 | 阅读/写作 | 得到或设置了散发色. |
TransparentColor | Vector3 | 阅读/写作 | 得到或设置透明色. |
Transparency | double | 阅读/写作 | 获得或设置透明度. |
MapSpecular | string | Read | 得到地图的镜子. |
MapDiffuse | string | Read | 让地图变得散. |
MapEmissive | string | Read | 让地图发射. |
MapAmbient | string | Read | 得到地图环境. |
MapNormal | string | Read | 得到地图正常. |
Name | string | 阅读/写作 | 得到或设置名字. |
Properties | PropertyCollection | Read | 得到了房地产. |
方法
| Signature | Description |
|---|---|
PhongMaterial() | 创建一个新的材料并赋予给定的名称. |
PhongMaterial(name: string) | 材料名称 |
LambertMaterial() | |
Material() | |
GetTexture(slotName: string) | 得到了从指定插槽的纹理,它可以是材料属性名称或遮器参数名字. |
SetTexture(slotName: string, texture: TextureBase) | 设置质地到指定插槽. |
ToString() | 格式对字符串有异议. |
GetEnumerator() | 让计数器计算内部质量插槽. |
A3DObject() | |
RemoveProperty(property: Property) | 删除动态属性. |
GetProperty(property: string) | 获取指定属性的值. |
SetProperty(property: string, value: object?) | 设置指定属性的值 |
FindProperty(propertyName: string) | 找到属性. 它可以是动态属性的 (由 CreateDynamicProperty/SetProperty创建) 或本地属的 ((以其名称识别) |