Previous | Up | Next |
M3setColorLight
Defines light parameters.Parameters
If one of the last three parameters is set to nil, the default value is used (see below).
I M3setColorLight ( S3d _session_ H3d _light_ I _type_ I _ambient_ I _diffuse_ I _specular_ I _angle_ I _const_ I _quadr_ )
Return value
_session_ 3D Session _light_ Colored light _type_ The type of light and the critical parameters are listed below :
LIGHT_AMBIENT ambient x LIGHT_PARA directional x y LIGHT_OMNI omni-directional x y d LIGHT_SPOT spot x y d _ambient_ Ambient color _diffuse_ Diffuse color _specular_ Specular color _angle_ Half angle at top of lighting cone _const_ 'Constant' attenuation value _quadr_ 'Quadratic' attenuation value
0 if successful, otherwise nil