Ejemplo n.º 1
0
        public Image Render(Mesh mesh)
        {
            BuildTree(mesh);

            rayProvider.Setup(camera);
            var image = new Image(ScreenHeight, ScreenWidth);

            stopwatch.Start();

            var renderParallelized = new ParallelizeRender();

            renderParallelized.Render(SetPixel, image);

            stopwatch.StopAndShow();

            return(image);
        }