API Reference Guide > Vector Component API Reference > Vector Component Functions Reference > Light Functions > IG_vect_light_set_attenuation |
This function sets the new constant, linear, and quadratic attenuation factors for the light source.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_vect_light_set_attenuation( HIG_VECT_LIGHTSOURCE hLightSource, float fConstant, float fLinear, float fQuadratic ); |
Name | Type | Description |
---|---|---|
hLightSource | HIG_VECT_LIGHTSOURCE | Light source handle. |
fConstant | float | New constant attenuation factor to be set. |
fLinear | float | New linear attenuation factor to be set. |
fQuadratic | float | New quadratic attenuation factor to be set. |
Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.
This function does not process image pixels.
None