set_ambient


Description:

public void set_ambient (Color ambient)

Sets the material's ambient color, in the standard OpenGL lighting model.

Note:

Use the CoglSnippet shader api for lighting

The ambient color affects the overall color of the object.

Since the diffuse color will be intense when the light hits the surface directly, the ambient will be most apparent where the light hits at a slant.

The default value is (0.2, 0.2, 0.2, 1.0)

Parameters:

this

A CoglMaterial object

ambient

The components of the desired ambient color