public override ImagePlaneSample GetSample(int index) { var sample = new ImagePlaneSample { X = sampleIndex[index].Item1, Y = sampleIndex[index].Item2, Time = 0.5f, U = (float) Width/sampleIndex[index].Item1, V = (float) Height/sampleIndex[index].Item2 }; return sample; }
public override ImagePlaneSample GetSample(int index) { var sample = new ImagePlaneSample { X = Width * (1f - 2f * randomProvider.NextFloat()) + 0.5f, Y = Height * (1f - 2f * randomProvider.NextFloat()) + 0.5f, Time = randomProvider.NextFloat(), U = randomProvider.NextFloat(), V = randomProvider.NextFloat() }; return sample; }
public virtual void InitPath(PathSampleProcessor renderer) { this.Processor = renderer; imageSample = renderer.GetImageSample(); }
public void SetSamples(ImagePlaneSample[] smp) { this.Samples = smp; _pathRayProcessors.SetSamples(this.Samples); }
public void SetSamples(ImagePlaneSample[] imagePlaneSample) { this.Samples = imagePlaneSample; processedSamples = 0; }