示例#1
0
        public void takeScreenshot(string fileName, Camera camera, HitableList world)
        {
            RayTracer rayTracer = new RayTracer(600, 800, 1, 8, (int)camera.vfov, false);

            rayTracer.camera.origin = camera.origin;
            rayTracer.camera.lookAt = camera.lookAt;
            rayTracer.camera.updatePos();
            rayTracer.world = world;
            rayTracer.CreateBitmap(fileName, true, true);
        }