Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 public virtual void InitPath(PathSampleProcessor renderer)
 {
     this.Processor = renderer;
     imageSample = renderer.GetImageSample();
 }
Esempio n. 4
0
 public void SetSamples(ImagePlaneSample[] smp)
 {
     this.Samples = smp;
     _pathRayProcessors.SetSamples(this.Samples);
 }
Esempio n. 5
0
 public void SetSamples(ImagePlaneSample[] imagePlaneSample)
 {
     this.Samples = imagePlaneSample;
     processedSamples = 0;
 }