Project

General

Profile

Previous Up Next

M3createLight
Creates a new WHITE light source (old style light).
The values are integers. The useful parameters (x, y or d) are specified for each type of light.

H3d M3createLight (
S3d _session_
I _type_
I _x_
I _y_
I _d_
I _unused_
I _unused_
)
Parameters

_session_
3D Session
_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
_x_
X parameter
_y_
Y parameter
_d_
D parameter
_unused_
Should be set to nil
_unused_
Should be set to nil
Return value

New WHITE light