fixed occlusion & lighting calculation,converted lists to arrays