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(); }
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); }