light

This command set creates and controls the use of fixed function lighting, allowing directional, point and spot lights to be adjusted for colour, range, position and direction, amongst other properties.
    MAKE LIGHT : MAKE LIGHT Light Number
    DELETE LIGHT : DELETE LIGHT Light Number
    SHOW LIGHT : SHOW LIGHT Light Number
    HIDE LIGHT : HIDE LIGHT Light Number
    COLOR LIGHT : COLOR LIGHT Light Number, Color Value
    POSITION LIGHT : POSITION LIGHT Light Number, X, Y, Z
    ROTATE LIGHT : ROTATE LIGHT Light Number, XAngle, YAngle, ZAngle
    POINT LIGHT : POINT LIGHT Light Number, X, Y, Z

    SET DIRECTIONAL LIGHT : SET DIRECTIONAL LIGHT Light Number, NX, NY, NZ
    SET POINT LIGHT : SET POINT LIGHT Light Number, X, Y, Z
    SET SPOT LIGHT : SET SPOT LIGHT Light Number, Inner Angle, Outer Angle
    SET LIGHT RANGE : SET LIGHT RANGE Light Number, Distance
    SET LIGHT TO OBJECT POSITION : SET LIGHT TO OBJECT POSITION Light Number, Object Number
    SET LIGHT TO OBJECT ORIENTATION : SET LIGHT TO OBJECT ORIENTATION Light Number, Object Number
    SET VECTOR3 TO LIGHT POSITION : SET VECTOR3 TO LIGHT POSITION Vector, Light Number
    SET VECTOR3 TO LIGHT ROTATION : SET VECTOR3 TO LIGHT ROTATION Vector, Light Number
    SET NORMALIZATION ON : SET NORMALIZATION ON
    SET NORMALIZATION OFF : SET NORMALIZATION OFF

    FOG ON : FOG ON
    FOG OFF : FOG OFF
    FOG COLOR : FOG COLOR Color Value
    FOG DISTANCE : FOG DISTANCE Distance
    SET AMBIENT LIGHT : SET AMBIENT LIGHT Percentage
    COLOR AMBIENT LIGHT : COLOR AMBIENT LIGHT Color Value
    AMBIENT LIGHT : Return Integer=AMBIENT LIGHT()

    LIGHT EXIST : Return Integer=LIGHT EXIST(Light Number)
    LIGHT TYPE : Return Integer=LIGHT TYPE(Light Number)
    LIGHT VISIBLE : Return Integer=LIGHT VISIBLE(Light Number)
    LIGHT RANGE : Return Float=LIGHT RANGE(Light Number)
    LIGHT POSITION X : Return Float=LIGHT POSITION X(Light Number)
    LIGHT POSITION Y : Return Float=LIGHT POSITION Y(Light Number)
    LIGHT POSITION Z : Return Float=LIGHT POSITION Z(Light Number)
    LIGHT DIRECTION X : Return Float=LIGHT DIRECTION X(Light Number)
    LIGHT DIRECTION Y : Return Float=LIGHT DIRECTION Y(Light Number)
    LIGHT DIRECTION Z : Return Float=LIGHT DIRECTION Z(Light Number)