set_diffuse


Description:

public void set_diffuse (Color diffuse)

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

Note:

Use the CoglSnippet shader api for lighting

The diffuse color is most intense where the light hits the surface directly - perpendicular to the surface.

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

Parameters:

this

A CoglMaterial object

diffuse

The components of the desired diffuse color