Ejemplo n.º 1
0
        private static byte[] DepthOfField()
        {
            Raytracer raytracer = new Raytracer(Premade.DepthOfField.Camera(), Premade.DepthOfField.Scene())
            {
                SuperSampling = 512,
                ShadowSamples = 4
            };

            return(raytracer.CalculatePixelsByteArray(imageResolution, imageResolution));
        }
Ejemplo n.º 2
0
        private static byte[] Lab05()
        {
            Raytracer raytracer = new Raytracer(Premade.Lab05.Camera(), Premade.Lab05.Scene())
            {
                ShadowSamples = 5,
                SuperSampling = 50
            };

            return(raytracer.CalculatePixelsByteArray(imageResolution, imageResolution));
        }
Ejemplo n.º 3
0
        private static byte[] Lab04Textures()
        {
            Raytracer raytracer = new Raytracer(Premade.Lab04Textures.Camera(), Premade.Lab04Textures.Scene());

            return(raytracer.CalculatePixelsByteArray(imageResolution, imageResolution));
        }
Ejemplo n.º 4
0
        private static byte[] Lab04BVH()
        {
            Raytracer raytracer = new Raytracer(Premade.Lab04BVH.Camera(), Premade.Lab04BVH.Scene(Scene.AccelerationStructure.BVH));

            return(raytracer.CalculatePixelsByteArray(imageResolution, imageResolution));
        }