SetMaterialColor()

Syntax

SetMaterialColor(#Material, Type, Color)
Description
Set the specified material color.

Parameters

#Material The material to use.
Type The color type to set. It can be one of the following values:
  #PB_Material_AmbientColor:  the color used by default, without other lighting.
  #PB_Material_DiffuseColor:  the color the material will reflect when it will be dynamically lighted. 
                               For example, using a full white color will result at normal lighting (all colors 
                               are reflected). If you use a red, then only the red colors of the material will be 
                               reflected, resulting as a full red material (or black one, if the material doesn't
                               contain any red color).
  #PB_Material_SpecularColor: the color the material will reflect when it will be dynamically lighted by a light 
                               which has a specular color value. For example, using a full white color will result at 
                               normal lighting (all colors are reflected). If you use a red, then only the red colors 
                               of the material will be reflected, resulting as a full red material (or black one, if 
                               the material doesn't contain any red color).                
  #PB_Material_SelfIlluminationColor: the color the material will emit even if no light reach it.
Color The RGB color value to set. A valid RGB value can be created with RGB().

Return value

None.

See Also

GetMaterialColor()

Supported OS

All

<- SetMaterialAttribute() - Material Index