Previous Up Next

M3createColorLight
Creates a colored light.

H3d M3createColorLight (
S3d _session_
I _type_
I _ambient_
I _diffuse_
I _specular_
I _angle_
I _const_
I _quadr_
)
Parameters

_session_
3D Session
_type_
The types of light are listed below :
LIGHT_AMBIENT ambient
LIGHT_PARA directional
LIGHT_OMNI omni-directional
LIGHT_SPOT spot
_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
Return value

New colored light