Пример #1
0
 public CorrectorRenderer(FrameConfiguration currentFrame, CorrectorImageFilm film)
 {
     this.film = film;
     this.currentFrame = currentFrame;
     this.ImagePlaneSampler = new RandomImagePlaneSampler(currentFrame.Width, currentFrame.Height);
     this.LightsourceSampler = new LightsourceSampler(currentFrame.Scene);
     this.GenerateImageSamples();
 }
Пример #2
0
 public PathSampleProcessor(int maxpaths, RayEngineScene rayEngineScene, CorrectorImageFilm pixelDevice, GlobalSamplingContext samplers)
 {
     this.maxPaths = maxpaths;
     this.rayEngineScene = rayEngineScene;
     this.pixelDevice = pixelDevice;
     this.samplers = samplers;
     this.sampleBuffer = pixelDevice.GetFreeSampleBuffer();
     this.paths = new List<PathSampler>(maxPaths);
 }