added camera function, adding light points logic