Adding functionality in LightingEngine for raycasting