PhongMaterial

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个.

属性

NameTypeAccessDescription
SpecularColorVector3阅读/写作得到或设置镜子颜色.
SpecularFactordouble阅读/写作得到或设置了镜子因数.
Shininessdouble阅读/写作得到或设置光泽.
ReflectionColorVector3阅读/写作得到或设置反射颜色.
ReflectionFactordouble阅读/写作得到或设置反射因子.
EmissiveColorVector3阅读/写作得到或设置发射颜色.
AmbientColorVector3阅读/写作获取或设置环境颜色.
DiffuseColorVector3阅读/写作得到或设置了散发色.
TransparentColorVector3阅读/写作得到或设置透明色.
Transparencydouble阅读/写作获得或设置透明度.
MapSpecularstringRead得到地图的镜子.
MapDiffusestringRead让地图变得散.
MapEmissivestringRead让地图发射.
MapAmbientstringRead得到地图环境.
MapNormalstringRead得到地图正常.
Namestring阅读/写作得到或设置名字.
PropertiesPropertyCollectionRead得到了房地产.

方法

SignatureDescription
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创建) 或本地属的 ((以其名称识别)

另请参阅

 中文