This lightproblem is solved right now. But now the next problem:
function cam1()
{
camera.x = player.x -224;
camera.y = player.y +0;
camera.z = player.z +480;
camera.pan = player.pan -300;
}
...
function key_presses_cams()
{
on_f1 = cam1;
}
In the main function is "key_presses_cams" called. When I press F1 the engine shuts down with an error.