The function sets four ambient color components (red, green, blue, and alpha) for the light source.
Declaration:
Copy Code | |
---|---|
AT_ERRCOUNT ACCUAPI IG_vect_light_set_ambient(
HIG_VECT_LIGHTSOURCE hLightSource,
float* lpAmbient
);
|
Arguments:
Name | Type | Description |
hLightSource | HIG_VECT_LIGHTSOURCE | Light source handle. |
lpAmbient | float* | Buffer with four ambient color components to be set. Usually the component range is 0..1. |
Return Value:
Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.
Supported Raster Image Formats:
This function does not process image pixels.
Sample:
None