C# raycasting renderer