Exemplo n.º 1
0
 public void Load(PersistentSettings settings)
 {
     writeSerialized   = settings.GetBool("WriteSerialized", true);
     rendererDirectory = settings.GetString("RendererDirectory", "");
     xres            = settings.GetInteger("XResolution", 1024);
     yres            = settings.GetInteger("YResolution", 768);
     pathLength      = settings.GetInteger("PathLength", 3);
     samplesPerPixel = settings.GetInteger("SamplesPerPixel", 4);
     integrator      = (Integrator)settings.GetInteger("Integrator",
                                                       (int)Integrator.EDirectIllumination);
 }