Cogl.Pipeline.prototype.set_ambient
function set_ambient(ambient: Cogl.Color): void {
// Gjs wrapper for cogl_pipeline_set_ambient()
}
Sets the pipeline's ambient color, in the standard OpenGL lighting model. 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)
Since 2.0
- ambient
The components of the desired ambient color