Material.AmbientColor

This page contains reference documentation for the AmbientColor member.

Declaration

Color AmbientColor;

Examples

Examples are as follows:

Material editMaterial = new Material;

// Set Ambient Color parameter to dark gray.

editMaterial.AmbientColor.SetRGB ( 64, 64, 64 );

// Set Ambient Color parameter to brown.

editMaterial.AmbientColor.R ( 64 );
editMaterial.AmbientColor.G ( 32 );
editMaterial.AmbientColor.B ( 16 );

Working Sample Code

For sample code: