Raytracing experiment in C#