lighttype
The type of the light. Use constans from const.pas. Can be LIGHT_Ambient or LIGHT_Directional. If directional then property direction gives the direction of the light source.
LIGHT_Ambient
Ambient light is effectively everywhere in a scene. You can think of it as a general level of light that fills an entire scene, regardless of the objects and their locations within that scene. Ambient light, being everywhere, has no position or direction, only color and intensity.
LIGHT_Directionl
Directional lights have only color and direction, not position. They give off parallel light, meaning that all light generated by it travels through scene in the same direction. You can imagine a directional light as a light source at near infinite distance, such as the sun.