set_ambient
Description:
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 |
ambient |
The components of the desired ambient color |