MaterialShadingMode()

Syntax

MaterialShadingMode(#Material, Mode)
Description
Changes the #Material shading mode.

Parameters

#Material The material to use.
Mode It can be one of the following value:
  #PB_Material_Flat     : The material use the flat mode, the lighting is done face by face.
  #PB_Material_Gouraud  : Performs a shading using the Gouraud algorithm (default).
  #PB_Material_Phong    : Performs a shading using the Phong algorithm.
combined with one of the following value:
  #PB_Material_Solid    : The material will be rendered in solid, textured mode (default).
  #PB_Material_Wireframe: The material will be rendered in wireframe mode.
  #PB_Material_Point    : The material will be rendered using only edge points.

Return value

None.

Remarks

To get the current material shading mode, use GetMaterialAttribute().

See Also

GetMaterialAttribute()

Supported OS

All

<- MaterialID() - Material Index - MaterialShininess() ->