D3d light define direction

Example
d3d_set_lighting(true); //Main light d3d_light_define_direction(1,0,1,0,c_white); d3d_light_enable(1,true); //Ambient lighting d3d_light_define_direction(2,0,-0.5,0,c_white); d3d_light_enable(2,true); d3d_light_define_direction(3,0.5,0,0,c_white); d3d_light_enable(3,true); d3d_light_define_direction(4,-0.5,0,0,c_white); d3d_light_enable(4,true); d3d_light_define_direction(5,0,0,0.5,c_white); d3d_light_enable(5,true); d3d_light_define_direction(6,0,0,-0.5,c_white); d3d_light_enable(6,true);

Remarks
Remember that a light must be enabled with d3d_light_enable(ind,enable).