implemented lighting : needs major speedup : lighting thread disabled in main