MaterialAmbientColor()

Syntax

MaterialAmbientColor(#Material, Color)
Description
Changes the #Material ambient color. The ambient material color is the color the material gets by default, without other lighting.

A valid color can be easily obtained with the RGB() command. If 'Color' is set to #PB_Material_AmbientColors, then the color informations associated to each vertex (as specified in the mesh creation) are used.

Supported OS

Windows, Linux

<- IsMaterial() - Material Index - MaterialBlendingMode() ->