Lightmap generator raycaster first working version