Esempio n. 1
0
 public Sample(ISampler sampler, ISurfaceIntegrator surface, IVolumeIntegrator volume, Scene scene)
 {
     if (surface != null)
         surface.RequestSamples (sampler, this, scene);
     if (volume != null)
         volume.RequestSamples (sampler, this, scene);
     AllocateSampleMemory ();
 }
Esempio n. 2
0
 public static IRenderer CreateRenderer(string name, ISampler sampler, ICamera camera, ISurfaceIntegrator surfaceIntegrator, IVolumeIntegrator volumeIntegrator)
 {
     RendererPlugin plugin = new RendererPlugin (name);
     return plugin.CreateRenderer (sampler, camera, surfaceIntegrator, volumeIntegrator);
 }