shader-work for raycasting