set_ambient_and_diffuse


Description:

public void set_ambient_and_diffuse (Color color)

Conveniently sets the diffuse and ambient color of this at the same time.

Note:

Use the CoglSnippet shader api for lighting

See set_ambient and set_diffuse.

The default ambient color is (0.2, 0.2, 0.2, 1.0)

The default diffuse color is (0.8, 0.8, 0.8, 1.0)

Parameters:

this

A CoglMaterial object

color

The components of the desired ambient and diffuse colors




2022 vala-language.org