MaterialShadingMode()

Syntax

MaterialShadingMode(#Material, Mode)
Description
Changes the #Material shading mode. 'Mode' can take 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 algorithme.
  #PB_Material_Phong  : Performs a shading using the Phong algorithme.
When a material is created, the Gouraud shading is used by default.

Supported OS

Windows, Linux

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