Macaw OS C reference

Function gpu_ambient

#include <macawgpu.h>
void gpu_ambient(double a);

Sets the light that falls everywhere, even where no light reaches, so shadows aren't black.

Parameters

adouble
How much, from 0 (none) to 1 (fully lit). It starts at 0.35.

In Textures, light and fog, with gpu_bindtexture, gpu_light, gpu_lightoff, gpu_shademodel, gpu_material, gpu_fog, gpu_pointsize, gpu_stats.