GetMaterialAttribute()
语法
Result = GetMaterialAttribute(#Material, Attribute)概要
Get the specified material attribute.
参数
#Material The material to use. Attribute The attribute to get. It can be one of the following values: #PB_Material_Shininess : get the material shininess, as set with MaterialShininess(). #PB_Material_TextureRotate : get the material rotate value, in degree. #PB_Material_TextureUScale : get the material uscale value, see ScaleMaterial(). #PB_Material_TextureVScale : get the material vscale value, see ScaleMaterial(). #PB_Material_TextureUScroll: get the material uscroll value, see ScrollMaterial(). #PB_Material_TextureVScroll: get the material vscroll value, see ScrollMaterial(). #PB_Material_DepthCheck : get the material depth check state (enabled or disabled). #PB_Material_DepthWrite : get the material depth write state (enabled or disabled). #PB_Material_Lighting : get the material lightning value, as set with DisableMaterialLighting(). #PB_Material_ShadingMode : get the material shading mode value, as set with MaterialShadingMode(). #PB_Material_CullingMode : get the material culling mode value, as set with MaterialCullingMode().
返回值
The value of the specified attribute.
已支持操作系统
所有