GetMaterialAttribute()

Syntax

Result = GetMaterialAttribute(#Material, Attribute)
Description
Get the specified material attribute.

Parameters

#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().

Return value

The value of the specified attribute.

Supported OS

All

<- FreeMaterial() - Material Index - GetMaterialColor() ->